Skip to main content

Python client for senat.fr website

Project description

senapy

Build Status Coverage Status

A python client for senat.fr website.

Main goal

Retrieve painlessly JSON data from senat.fr.

Requirements

Python 3

Install:

  • from pip: pip3 install senapy
  • locally: pip3 install -e .

Dossiers Legislatifs

  • Parse one: senapy-cli parse URL_or_filepath
    • example: senapy-cli parse pjl16-537 (instead of the URL, you can just give the ID)
    • warning: for now the file must be in UTF-8
  • Get all the urls: senapy-cli doslegs_urls
  • Parse many: cat urls | senapy-cli parse_many output_dir

Search services

  • QuestionSearchService to search for questions

Tests:

  • pip3 install pytest
  • pytest
  • If you modify the output, there's an utility to make the tests reflect that: python tests/tools/regen_regressions_output.py

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

senapy-0.3.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

senapy-0.3.1-py2.py3-none-any.whl (22.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file senapy-0.3.1.tar.gz.

File metadata

  • Download URL: senapy-0.3.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for senapy-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0c610815510409d81bcf6dd075c4be2904fa98962c6c17cbd63062dbd163e670
MD5 8f83905e1e29363c753c9350f1754757
BLAKE2b-256 0488d0bcdb889d2bd5159b2c043b3bb8b14967e0fb450bc75e72ec70063af25a

See more details on using hashes here.

Provenance

File details

Details for the file senapy-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: senapy-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for senapy-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 59a42a2543be838610ec31023bd38a3205c120b92ebbf4a81b614e750a821c1d
MD5 14a372515515d92bd3656c1211e6d2b2
BLAKE2b-256 f49bc0f8ff2c1b05fe9cad0ceff9dfb96fde217c2bfdc41e6c32db66758be574

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