Federal Register Python API Client
Table of Contents
Overview
This library is used to grab federal documents from the United States Federal Register. Additionally, it will help simplify the process of building requests for the different fields that can be returned for specific documents.
Setup
Right now, the library is not hosted on PyPi so you will need to do a local install on your system if you plan to use it in other scrips you use.
First, clone this repo to your local system. After you clone the repo, make sure
to run the setup.py file, so you can install any dependencies you may need. To
run the setup.py file, run the following command in your terminal.
pip install federal-register
This will install all the dependencies listed in the setup.py file. Once done
you can use the library wherever you want.
Usage
Here is a simple example of using the federal_register library to grab a document
using the document number.
from pprint import pprint
from federal_register.client import FederalRegister
# Initialize the client.
federal_register_client = FederalRegister()
# Grab a specific document.
federal_document = federal_register_client.document_by_id(
document_id='2020-17469',
fields='all'
)
# Print it out.
pprint(federal_document)
Support These Projects
Patreon: Help support this project and future projects by donating to my Patreon Page . I'm always looking to add more content for individuals like yourself, unfortuantely some of the APIs I would require me to pay monthly fees.
YouTube: If you'd like to watch more of my content, feel free to visit my YouTube channel Sigma Coding.
Metadata
Release files for federal-register 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| federal-register-0.0.1.tar.gz | 20.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| federal_register-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.3 kB
Release files / federal-register-0.0.1.tar.gz
| Download URL | federal-register-0.0.1.tar.gz |
|---|---|
| Size | 20.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb23fe29f190a167f170331ca5c1d43b179138eb182f649f04fa3877d3ba2563
|
|
BLAKE2b-256 checksum How to use checksums |
613deff65f6f29d6b95154af92bad325b423f454d070b4ed35717b36986ca42e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
|
Release files / federal_register-0.0.1-py3-none-any.whl
| Download URL | federal_register-0.0.1-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b8df2eefe268b9df34a9e00f712306e041466679d80ba431e6507edd5c197d2
|
|
BLAKE2b-256 checksum How to use checksums |
ff91e14ee56ff8cb19d8bd7dac25c28c8c8ccce85093dbec36117650c2174c83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
|
Security for federal-register 0.0.1
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.