Skip to main content
Help us improve Python packaging – donate today!

Python client for website

Project Description

# ANpy
A python client of the "api" of website

[![Build Status](](

## Main goal
Retrieve painlessly json data from

## Install :
pip install anpy

## Search services
Currently, only two search services are provided :
* **AmendementSearchService** to search for amendements
* **QuestionSearchService** to search for questions

## Models
There is no real api provided by so there is no real data model exposed by the website.
It is sometimes hard to remember what you can get from the response, so I chose to declare all parsed data fields in models even if it's quite heavy just because it's easier to remember them...

Python classes used are *Amendement*, **AmendementSummary**, **AmendementSearchResult**, **QuestionSummary** and **QuestionSearchResult**.

## CLI
A script is installed with the package, it provides the following commands :

* Show an amendement given its url :
python show_amendement

* Show amendements summaries after a given date :
python show_amendements_summary --start-date 2014-06-01

* Print amendements order for a given id_dossier and id_examen :
python show_amendements_order 33299 4073

* Show a question
python show_question

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
anpy-0.1.8-py2.py3-none-any.whl (10.6 kB) Copy SHA256 hash SHA256 Wheel 2.7 Aug 8, 2016
anpy-0.1.8.tar.gz (6.8 kB) Copy SHA256 hash SHA256 Source None Aug 8, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page