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
- $ pip install knesset-data
- $ python
-
from knesset_data.dataservice.committees import Committee
-
committees = list(Committee.get_all_active_committees())
-
len(committees)
- 19
-
print(committees[0].name)
- ועדת הכנסת
- Knesset blocking of some requests - this is a major problem, but it only affects specific cases, so you might not be affected by it. Please add a call to is_reblaze_content to check any content you get from knesset and detect whether it was blocked, or if there is a different problem. See this issue for some more details and possible fixes.
- what logic should knesset-data-python be responsible for?
See the contribution guide
Travis publishes to pypi automatically on every published release (or tag)
- merge some pull requests
- create or update the latest draft release (https://github.com/hasadna/knesset-data-python/releases)
- update the release notes, save draft
- test / update the release
- when ready, publish the release on GitHub
- travis will automatically publish to pypi
After publishing a release you probably want to update the dependency in dependant projects
In Open Knesset repository -
- edit Open-Knesset/requirements.txt
knesset-data==1.2.0
- test and open a pull request in Open Knesset
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