A python module that provides api to available Israeli Parliament (Knesset) data
This module provides low-level APIs to support other higher-level modules from the Knesset data project
from knesset_data.dataservice.committees import Committee
committees = list(Committee.get_all_active_committees())
len(committees)
print(committees[0].name)
See the contribution guide
Travis publishes to pypi automatically on every published release (or tag)
After publishing a release you probably want to update the dependency in dependant projects
In Open Knesset repository -
knesset-data==1.2.0
The .travis.yml file contains encrypted variables, you add them using the travis cli client:
$ git config --local travis.slug hasadna/knesset-data-python
$ travis encrypt TRAVIS_PYPI_USER=(YOUR_PYPI_USER) TRAVIS_PYPI_PASS=(YOUR_PYPI_PASSWORD) --add
$ history -c
add the secure env var to .travis.yml
Check out .travis/after_success.sh to see how the publishing to pypi works