Apptweak-io python3 library
push to pypi
- create the dist code
python3 setup.py sdist bdist_wheel
- Install twine
pip3 install twine --user
- Upload to pipy
twine upload dist/*
For each upload, the num version should be unique ! change the version in the setup.py file
To put it in prod mode instead of dev, remove tab_build in setup.cfg
code structure
__init__.py
Contains all the global variables
plateform.py
contains every end-point
ios.py
Redifine Ios specific end-point behaviour
android.py
Redifine Android specific end-point behaviour
ressource.py
Make the actual fetch and verify some parmas
install package locally
python3 setup.py install --user
tests
python3 -m unittest tests/plateform.py -v
python3 -m unittest tests/apptweak.py -v
python3 -m unittest tests/ressource.py -v