Skip to content

ndev100/knesset-data-python

 
 

Repository files navigation

knesset-data python module

Build Status

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

Installation

  • $ pip install knesset-data

Usage Example

  • $ python
  • from knesset_data.dataservice.committees import Committee

  • committees = list(Committee.get_all_active_committees())

  • len(committees)

  • 19
  • print committees[0].name

  • ועדת הכנסת

Contributing

See the contribution guide

Project Administration

Travis publishes to pypi automatically on every published release (or tag)

Publishing a release

Updating dependant projects

After publishing a release you probably want to update the dependency in dependant projects

In Open Knesset repository -

More details regarding travis publishing to pypi

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

About

python module that provides api to access Israeli Parliament (Knesset) data

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Classic ASP 48.8%
  • Python 44.8%
  • HTML 5.9%
  • Shell 0.5%