Python api for nosdeputes.fr and nossenateurs.fr
Project description
[](https://travis-ci.org/fmassot/cpc-api)
# CPC-API A python api for http://nosdeputes.fr and http://nossenateurs.fr
CPC is for Controle Parlementaire Citoyens.
Project wiki is here : http://cpc.regardscitoyens.org/trac/wiki.
## 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 & députés legislature 2007-2012…
`python from cpc_api import CPCApi # do the same with senateurs api = CPCApi(ptype='senateur') larcher = api.search_parlementaires('larcher')[0][0] # 'or with legislature 2007-2012' api = CPCApi(ptype='depute', legislature='2007-2012') morano = api.search_parlementaires('morano')[0][0] # ... `
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cpc_api-0.1.2.tar.gz.
File metadata
- Download URL: cpc_api-0.1.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5de3b0e275fe953e578d845ced34fbda0754785d3d0d4beaab3e65da42bf8f75
|
|
| MD5 |
0a5ec763e2088b5b8d73bb059d6c5897
|
|
| BLAKE2b-256 |
2230faa29a5f57bd74894f1f1051be8bdbaa173367d68b3f559c30f1e9d0496e
|
File details
Details for the file cpc_api-0.1.2-py2-none-any.whl.
File metadata
- Download URL: cpc_api-0.1.2-py2-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
801b687b9f153dcc5901994a3438793351ef084cb1284aed861f2ffc3a2f4d24
|
|
| MD5 |
fbe83e50e7c955a367501d502d828887
|
|
| BLAKE2b-256 |
ffbbb2d640a92d586e219d094206cb79603237a2a510b4d35eb083aaf329d2a5
|