Python library for Apixu Weather API
apt update
apt install -y python python-pip git
apk update --no-cache
apk add python py-pip git
yum install -y epel-release
yum install -y python python-pip git
Choose the version you want to install from the releases page
or choose master
to install the latest updates.
pip install git+https://github.com/apixu/apixu-python.git@vX.X.X
or
pip install git+https://github.com/apixu/apixu-python.git@master
or without Git
pip install https://github.com/apixu/apixu-python/archive/vX.X.X.zip
Add to requirements.txt
git+https://github.com/apixu/apixu-python.git@vX.X.X
then
pip install -r requirements.txt
pip install requests setuptools
git clone https://github.com/apixu/apixu-python --branch vX.X.X --single-branch # or download repository
cd apixu-python
git checkout vX.X.X
python setup.py install
See the examples.
APIXUKEY=yourapikey python examples/<file>.py
You can use with Docker. See Makefile.
Run tests:
make test PYVERSION=3 APIXUKEY=yourapikey
Enter environment:
make env PYVERSION=3 APIXUKEY=yourapikey
python setup.py develop
pip install -r requirements-dev.txt
pytest apixu/tests/*.py
pylint apixu
Run example file:
make run PYVERSION=3 APIXUKEY=yourapikey FILE=examples/search.py