Python api for nosdeputes.fr and nossenateurs.fr
Project description
[![Build Status](https://travis-ci.org/fmassot/cpc-api.svg)](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
File details
Details for the file cpc_api-0.1.4.tar.gz
.
File metadata
- Download URL: cpc_api-0.1.4.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeabcc41fbf6750e12bf5538a3163077d5b67d4519a7528eda1906177b2c9dd7 |
|
MD5 | d854fcc9154d6b0d27e54028275dbbd1 |
|
BLAKE2b-256 | dbcb72935a475774db28dcaa0fc30f4782b5e45fc48358755b1d75fb9003a9de |
Provenance
File details
Details for the file cpc_api-0.1.4-py2-none-any.whl
.
File metadata
- Download URL: cpc_api-0.1.4-py2-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5d527262b8227746d0bb7fe728c6dc5ff45b4ada4754a6e4f51ca9bc5a93e80 |
|
MD5 | 314b60d5ca298786b02c89551cfd370a |
|
BLAKE2b-256 | cc92674349bf49479e16ad00a40dab0974e9530479be9927bfc3f574e6729db6 |