Skip to main content

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

Metadata

Release files for senapy 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for senapy 0.3.2
File Size Uploaded Provenance Actions
senapy-0.3.2.tar.gz 15.7 kB Without provenance Details for senapy-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for senapy 0.3.2
File Interpreter ABI Platform Actions
senapy-0.3.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for senapy-0.3.2-py2.py3-none-any.whl

Total release size: 38.2 kB

Release files / senapy-0.3.2.tar.gz

Download URL senapy-0.3.2.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
86614a765328ef9be2ef38acd1b09981a1a197d0f2e0b063148c562c669afbc3
BLAKE2b-256 checksum
How to use checksums
f62a3cbf4796abc88fb8c07a3fddee2c689af54e46772676849ec0a8a5e4394e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / senapy-0.3.2-py2.py3-none-any.whl

Download URL senapy-0.3.2-py2.py3-none-any.whl
Size 22.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6849bddcef305a6d3fa4a248fa09528968471cd0b4af02c217b7c0d4198a9f50
BLAKE2b-256 checksum
How to use checksums
b9ae5cce9bde5f660441b0598dc5d801781d179c3c3873e625be436e62ea666e
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for senapy 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page