Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Python utils for The Law Factory parsers

Project description

A few utilities for the-law-factory-parser project, shared by senapy and anpy.

  • A simple caching library:
from lawfactory_utils.urls import enable_requests_cache, download


resp = download(url)

The cached responses are stored in the directory where this lib is installed. You can use lawfactory_where_is_my_cache to print the path.

  • URL cleaning for senat/AN/legifrance/conseil-constit
>>> from lawfactory_utils.urls import clean_url
>>> clean_url('')
  • Parsing of National Assembly URLS
>>> from lawfactory_utils.urls import parse_national_assembly
>>> parse_national_assembly_url("")
(15, 'retablissement_confiance_action_publique')

Project details

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
lawfactory_utils-0.1.7.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

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