Metadata-Version: 1.1
Name: cpc_api
Version: 0.1.0dev
Summary: Python api for nosdeputes.fr and nossenatures.fr
Home-page: https://github.com/fmassot/cpc-api
Author: François Massot
Author-email: francois.massot@gmail.com
License: MIT
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')
        # ...
        ```
Keywords: api nosdeputes.fr nossenateurs.fr
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
