Skip to main content

Python api for nosdeputes.fr and nossenatures.fr

Project description

# CPC-API
A python api for http://nosdeputes.fr and http://nossenateurs.fr. Project wiki is here http://cpc.regardscitoyens.org/trac/wiki.

[![Build Status](https://travis-ci.org/fmassot/cpc-api.svg)](https://travis-ci.org/fmassot/cpc-api)

## Examples

* Députes

```python
from cpc_api import CPCApi
api = CPCApi()
# synthese of last 12 month
synthese = api.synthese()
# search for a depute
cope = api.search_parlementaires('Cope')[0][0]
# get all info of cope
all_info = api.parlementaire(cope['slug'])
```

* Sénateurs, legislature 2007-2012
```python
# do the same with senateurs
api = CPCApi(ptype='senateur')
print 'or with legislature 2007-2012'
api = CPCApi(ptype='senateur', legislature='2007-2012')
# ...
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

anpy-0.1.0dev-py2-none-any.whl (4.1 kB view details)

Uploaded Python 2

File details

Details for the file anpy-0.1.0dev-py2-none-any.whl.

File metadata

File hashes

Hashes for anpy-0.1.0dev-py2-none-any.whl
Algorithm Hash digest
SHA256 104092dcff425acc8333c4ed43c3fe92e00c6db81d837d45d86511bddf306eea
MD5 4f11263d35e4b431e9e39462fbc92d88
BLAKE2b-256 307fcba57fd9872a29203ce4d9872bb340e18ce22d9a5abe07702dfbf7b42841

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page