Skip to main content

Python api for nosdeputes.fr and nossenatures.fr

Project description

|Downloads| |Build Status| |Latest Version| |Supported Python versions|

# CPC-API
A python api for http://nosdeputes.fr and http://nossenateurs.fr

Project wiki is here http://cpc.regardscitoyens.org/trac/wiki.

CPC is for *Controle Parlementaire Citoyens*.

[![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
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='senateur', legislature='2007-2012')
morano = api.search_parlementaires('morano')[0][0]
# ...
```

Project details


Download files

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

Source Distribution

cpc_api-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

cpc_api-0.1.1-py2-none-any.whl (4.3 kB view details)

Uploaded Python 2

File details

Details for the file cpc_api-0.1.1.tar.gz.

File metadata

  • Download URL: cpc_api-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cpc_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b8805f89a83f1af31e43b8be8fb06f8df835135947f579fdbdceadb87f864150
MD5 c56005c2903a7c8106931a13f1131fac
BLAKE2b-256 78603f4205a5dbfe739c33825d6c6d526f6cee729f92078b07833caab58200a8

See more details on using hashes here.

Provenance

File details

Details for the file cpc_api-0.1.1-py2-none-any.whl.

File metadata

File hashes

Hashes for cpc_api-0.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 f5f5d5e7d934b7f0a54ec235ee56011c92f735f52d7a7f25fe76a640c7d0a2ac
MD5 ff7d9260f2d908d1a949a2dd2a8f0235
BLAKE2b-256 873e588b2b2daa1f1ad068dbc6a5e5c123058a00cb7feb868024a91a519ae9be

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