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')
# ...
```
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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file anpy-0.1.0dev-py2-none-any.whl
.
File metadata
- Download URL: anpy-0.1.0dev-py2-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 104092dcff425acc8333c4ed43c3fe92e00c6db81d837d45d86511bddf306eea |
|
MD5 | 4f11263d35e4b431e9e39462fbc92d88 |
|
BLAKE2b-256 | 307fcba57fd9872a29203ce4d9872bb340e18ce22d9a5abe07702dfbf7b42841 |