[](https://travis-ci.org/regardscitoyens/cpc-api)
# CPC-API A python api for http://nosdeputes.fr and http://nossenateurs.fr
CPC is for Controle Parlementaire Citoyens.
See full API documentation here: https://github.com/regardscitoyens/nosdeputes.fr/blob/master/doc/api.md
## Examples
Députes
`python from cpc_api import CPCApi api = CPCApi(legislature='2012-2017') # synthese of legislature 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] # ... `
Metadata
Release files for cpc_api 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cpc_api-0.1.6.tar.gz | 2.8 kB | Without provenance | Details |
Release files / cpc_api-0.1.6.tar.gz
| Download URL | cpc_api-0.1.6.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1ced8cc5b86a523af73f0ad30662bb4575672a5ea5a1a7fe3dc5ff3402b6184
|
|
BLAKE2b-256 checksum How to use checksums |
ef399e9ef9ef3381a95cc00ee7de97f092b7d49c6ce5ec4d991c2e58f7db8ac6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cpc_api 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.