Name | fr-toolbelt JSON |
Version |
0.1.2
JSON |
| download |
home_page | None |
Summary | Toolbelt of classes and functions written in Python to use with the Federal Register (FR) API. |
upload_time | 2024-06-07 18:42:29 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT License Copyright (c) 2024 GW Regulatory Studies Center Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
federal register
government
api
regulation
regulatory
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# fr-toolbelt
[![PyPI - Version](https://img.shields.io/pypi/v/fr-toolbelt?color=033C5A)](https://pypi.org/project/fr-toolbelt/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/fr-toolbelt?color=AA9868)](https://www.python.org/downloads/)
Toolbelt of classes and functions written in Python to use with the [Federal Register API](https://www.federalregister.gov/developers/documentation/api/v1). The Federal Register (FR) is the daily journal of the U.S. government, containing rules, proposed rules, notices, and presidential documents from federal agencies.
Name inspired by the [Requests Toolbelt](https://github.com/requests/toolbelt) package. "FR" is a common shorthand for the Federal Register, in part because document citations take the form of VOLUME FR STARTPAGE (e.g., [88 FR 21879](https://www.federalregister.gov/d/2023-07760)).
## Installation
Install using pip:
```bash
pip install fr-toolbelt
```
This package was developed with Python 3.12 and requires Python 3.10 or higher.
## Basic Usage
You can run the package as a module to get an illustration of how it processes documents:
```bash
python -m fr_toolbelt
```
Generally, you'll want to import specific classes or functions to meet your project's needs. More on what each module offers below.
The FR toolbelt package contains several modules:
- `api_requests` for requesting documents from the Federal Register API.
- `preprocessing` for processing Federal Register documents to further analyze.
- `utils` for providing utility classes and functions to the other modules
### fr_toolbelt.api_requests module
The `api_requests` module makes it easy to retrieve FR documents from the API by specifying a date range or providing a list of document numbers (`document_number` is the unique identifier for each document).
A simple request for documents published in January 2024 requires a start and end date and returns a tuple of the list of results and the count of retrieved documents.
```python
from fr_toolbelt.api_requests import get_documents_by_date
start = "2024-01-01"
end = "2024-01-31"
results, count = get_documents_by_date(start, end)
```
To only retrieve documents of a particular type (or types), pass the document_types parameter to the function call.
```python
start = "2024-01-01"
end = "2024-01-31"
types = ["RULE", "PRORULE"]
results, count = get_documents_by_date(start, end, document_types=types)
```
To deviate from the default set of fields, pass the fields parameter to the function call.
```python
start = "2024-01-01"
end = "2024-01-31"
fields = ["document_number", "publication_date", "raw_text_url"]
results, count = get_documents_by_date(start, end, fields=fields)
```
More customization is possible by examining the parameters and docstrings. Note that the `get_documents_by_date` function works around the FR API's maximum of 10,000 results per search by querying smaller subsets of documents and compiling them into a larger result set. So retrieving all [28,308 documents published in 2020](https://www.federalregister.gov/api/v1/documents.json?conditions[publication_date][year]=2020&per_page=1000) is now possible with a single function call.
To collect a particular set of documents, pass their document numbers as a parameter.
```python
from fr_toolbelt.api_requests import get_documents_by_number
document_numbers = ["2024-02204", "2023-28203", "2023-25797"]
results, count = get_documents_by_number(document_numbers)
```
The `api_requests` module may add support for endpoints other than the documents endpoint at a future point.
### fr_toolbelt.preprocessing module
The `preprocessing` module handles common tasks to process the API data in a usable format. Below is an example of what the raw API data look like for a single illustrative document. Notice how fields like "agencies" and "regulation_id_number_info" are nested data structures that are difficult to use in their raw form.
```JSON5
{'agencies': [{'id': 12,
'json_url': 'https://www.federalregister.gov/api/v1/agencies/12',
'name': 'Agriculture Department',
'parent_id': None,
'raw_name': 'DEPARTMENT OF AGRICULTURE',
'slug': 'agriculture-department',
'url': 'https://www.federalregister.gov/agencies/agriculture-department'},
{'id': 456,
'json_url': 'https://www.federalregister.gov/api/v1/agencies/456',
'name': 'Rural Business-Cooperative Service',
'parent_id': 12,
'raw_name': 'Rural Business-Cooperative Service',
'slug': 'rural-business-cooperative-service',
'url': 'https://www.federalregister.gov/agencies/rural-business-cooperative-service'}],
'agency_names': ['Agriculture Department',
'Rural Business-Cooperative Service'],
'docket_ids': ['DOCKET #: RBS-23-BUSINESS-0024'],
'dockets': [{'agency_name': 'RBS',
'documents': [{'allow_late_comments': None,
'comment_count': 1,
'comment_end_date': '2024-04-02',
'comment_start_date': '2024-01-02',
'comment_url': 'https://www.regulations.gov/commenton/RBS-23-BUSINESS-0024-0001',
'id': 'RBS-23-BUSINESS-0024-0001',
'regulations_dot_gov_open_for_comment': True,
'updated_at': '2024-01-22T00:04:26.978-05:00'}],
'id': 'RBS-23-BUSINESS-0024',
'supporting_documents': [],
'supporting_documents_count': 0,
'title': 'Notice of Funding Opportunity for the Rural Innovation '
'Stronger Economy (RISE) Grant Program for Fiscal Year '
'2024'}],
'document_number': '2023-26792',
'president': {'identifier': 'joe-biden', 'name': 'Joseph R. Biden Jr.'},
'publication_date': '2024-01-02',
'regulation_id_number_info': {},
'title': 'Notice of Solicitation of Applications for the Rural Innovation '
'Stronger Economy (RISE) Grant Program for Fiscal Year 2024',
'type': 'Notice'}
```
To preprocess the agency information in a set of documents, we would use the `AgencyMetadata` class to retrieve agency metadata from the API and then process the documents with the `AgencyData` class.
```python
from fr_toolbelt.preprocessing import AgencyMetadata, AgencyData
# first we collect metadata for processing the agency information
agency_metadata = AgencyMetadata()
metadata, schema = agency_metadata.get_agency_metadata()
# then we process the documents using the AgencyData class
agency_data = AgencyData(results, metadata, schema)
processed_agencies = agency_data.process_data(return_format="name")
```
Below, see how the illustrative document shown previously now contains new key: value pairs ("agency_slugs", "independent_reg_agency", "parent_name", "subagency_name") and removes the old ones ("agencies", "agency_names").
```JSON5
{'agency_slugs': ['rural-business-cooperative-service',
'agriculture-department'],
'docket_ids': ['DOCKET #: RBS-23-BUSINESS-0024'],
'dockets': [{'agency_name': 'RBS',
'documents': [{'allow_late_comments': None,
'comment_count': 1,
'comment_end_date': '2024-04-02',
'comment_start_date': '2024-01-02',
'comment_url': 'https://www.regulations.gov/commenton/RBS-23-BUSINESS-0024-0001',
'id': 'RBS-23-BUSINESS-0024-0001',
'regulations_dot_gov_open_for_comment': True,
'updated_at': '2024-01-22T00:04:26.978-05:00'}],
'id': 'RBS-23-BUSINESS-0024',
'supporting_documents': [],
'supporting_documents_count': 0,
'title': 'Notice of Funding Opportunity for the Rural Innovation '
'Stronger Economy (RISE) Grant Program for Fiscal Year '
'2024'}],
'document_number': '2023-26792',
'independent_reg_agency': False,
'parent_name': 'Agriculture Department',
'president': {'identifier': 'joe-biden', 'name': 'Joseph R. Biden Jr.'},
'publication_date': '2024-01-02',
'regulation_id_number_info': {},
'subagency_name': 'Rural Business-Cooperative Service',
'title': 'Notice of Solicitation of Applications for the Rural Innovation '
'Stronger Economy (RISE) Grant Program for Fiscal Year 2024',
'type': 'Notice'}
```
A similar series of commands accomplishes data processing for other fields. Classes are available for preprocessing "president" (`Presidents`), "regulation_id_number_info" (`RegInfoData`), and fields related to public commenting dockets (`Dockets` and `RegDotGovData`).
Alternatively, the `process_documents` function provides a simpler interface for combining these functionalities together.
```python
from fr_toolbelt.preprocessing import process_documents
# passing the del_keys parameter deletes those keys from the resulting dict
processed_docs = process_documents(results, del_keys=("type", "docket_ids"))
```
```JSON5
{'agency_slugs': ['rural-business-cooperative-service',
'agriculture-department'],
'docket_id': 'RBS-23-BUSINESS-0024',
'document_number': '2023-26792',
'independent_reg_agency': False,
'parent_slug': 'agriculture-department',
'president_id': 'joe-biden',
'publication_date': '2024-01-02',
'rin': None,
'rin_priority': None,
'subagency_slug': 'rural-business-cooperative-service',
'title': 'Notice of Solicitation of Applications for the Rural Innovation '
'Stronger Economy (RISE) Grant Program for Fiscal Year 2024'}
```
You can select which fields you want to process with this function too.
```python
from fr_toolbelt.preprocessing import process_documents
# passing the which parameter to select which fields to process
processed_docs = process_documents(results, which=("agencies", "presidents"), del_keys="docket_ids")
```
```JSON5
{'agency_slugs': ['rural-business-cooperative-service',
'agriculture-department'],
'dockets': [{'agency_name': 'RBS',
'documents': [{'allow_late_comments': None,
'comment_count': 1,
'comment_end_date': '2024-04-02',
'comment_start_date': '2024-01-02',
'comment_url': 'https://www.regulations.gov/commenton/RBS-23-BUSINESS-0024-0001',
'id': 'RBS-23-BUSINESS-0024-0001',
'regulations_dot_gov_open_for_comment': True,
'updated_at': '2024-01-22T00:04:26.978-05:00'}],
'id': 'RBS-23-BUSINESS-0024',
'supporting_documents': [],
'supporting_documents_count': 0,
'title': 'Notice of Funding Opportunity for the Rural Innovation '
'Stronger Economy (RISE) Grant Program for Fiscal Year '
'2024'}],
'document_number': '2023-26792',
'independent_reg_agency': False,
'parent_name': 'Agriculture Department',
'president_id': 'joe-biden',
'publication_date': '2024-01-02',
'regulation_id_number_info': {},
'subagency_name': 'Rural Business-Cooperative Service',
'title': 'Notice of Solicitation of Applications for the Rural Innovation '
'Stronger Economy (RISE) Grant Program for Fiscal Year 2024',
'type': 'Notice'}
```
### fr_toolbelt.utils module
These functions handle date formatting under the hood and provide functionality for identifying and removing duplicate entries (not a current bug in the FR API if passing the order=oldest or order=newest parameter in a request).
Raw data
{
"_id": null,
"home_page": null,
"name": "fr-toolbelt",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "Mark Febrizio <mfebrizio@gwu.edu>, GW Regulatory Studies Center <regulatorystudies@gwu.edu>",
"keywords": "Federal Register, government, api, regulation, regulatory",
"author": null,
"author_email": "Mark Febrizio <mfebrizio@gwu.edu>",
"download_url": "https://files.pythonhosted.org/packages/40/bb/56c4a5b5e89ab273f1760572cb134612095b532c4ed563e880ff5fad17cc/fr_toolbelt-0.1.2.tar.gz",
"platform": null,
"description": "# fr-toolbelt\r\n\r\n[![PyPI - Version](https://img.shields.io/pypi/v/fr-toolbelt?color=033C5A)](https://pypi.org/project/fr-toolbelt/)\r\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/fr-toolbelt?color=AA9868)](https://www.python.org/downloads/)\r\n\r\nToolbelt of classes and functions written in Python to use with the [Federal Register API](https://www.federalregister.gov/developers/documentation/api/v1). The Federal Register (FR) is the daily journal of the U.S. government, containing rules, proposed rules, notices, and presidential documents from federal agencies.\r\n\r\nName inspired by the [Requests Toolbelt](https://github.com/requests/toolbelt) package. \"FR\" is a common shorthand for the Federal Register, in part because document citations take the form of VOLUME FR STARTPAGE (e.g., [88 FR 21879](https://www.federalregister.gov/d/2023-07760)).\r\n\r\n## Installation\r\n\r\nInstall using pip:\r\n\r\n```bash\r\npip install fr-toolbelt\r\n```\r\n\r\nThis package was developed with Python 3.12 and requires Python 3.10 or higher.\r\n\r\n## Basic Usage\r\n\r\nYou can run the package as a module to get an illustration of how it processes documents:\r\n\r\n```bash\r\npython -m fr_toolbelt\r\n```\r\n\r\nGenerally, you'll want to import specific classes or functions to meet your project's needs. More on what each module offers below.\r\n\r\nThe FR toolbelt package contains several modules:\r\n\r\n- `api_requests` for requesting documents from the Federal Register API.\r\n- `preprocessing` for processing Federal Register documents to further analyze.\r\n- `utils` for providing utility classes and functions to the other modules\r\n\r\n### fr_toolbelt.api_requests module\r\n\r\nThe `api_requests` module makes it easy to retrieve FR documents from the API by specifying a date range or providing a list of document numbers (`document_number` is the unique identifier for each document).\r\n\r\nA simple request for documents published in January 2024 requires a start and end date and returns a tuple of the list of results and the count of retrieved documents.\r\n\r\n```python\r\nfrom fr_toolbelt.api_requests import get_documents_by_date\r\n\r\nstart = \"2024-01-01\"\r\nend = \"2024-01-31\"\r\nresults, count = get_documents_by_date(start, end)\r\n\r\n```\r\n\r\nTo only retrieve documents of a particular type (or types), pass the document_types parameter to the function call.\r\n\r\n```python\r\nstart = \"2024-01-01\"\r\nend = \"2024-01-31\"\r\ntypes = [\"RULE\", \"PRORULE\"]\r\nresults, count = get_documents_by_date(start, end, document_types=types)\r\n```\r\n\r\nTo deviate from the default set of fields, pass the fields parameter to the function call.\r\n\r\n```python\r\nstart = \"2024-01-01\"\r\nend = \"2024-01-31\"\r\nfields = [\"document_number\", \"publication_date\", \"raw_text_url\"]\r\nresults, count = get_documents_by_date(start, end, fields=fields)\r\n```\r\n\r\nMore customization is possible by examining the parameters and docstrings. Note that the `get_documents_by_date` function works around the FR API's maximum of 10,000 results per search by querying smaller subsets of documents and compiling them into a larger result set. So retrieving all [28,308 documents published in 2020](https://www.federalregister.gov/api/v1/documents.json?conditions[publication_date][year]=2020&per_page=1000) is now possible with a single function call.\r\n\r\nTo collect a particular set of documents, pass their document numbers as a parameter.\r\n\r\n```python\r\nfrom fr_toolbelt.api_requests import get_documents_by_number\r\n\r\ndocument_numbers = [\"2024-02204\", \"2023-28203\", \"2023-25797\"]\r\nresults, count = get_documents_by_number(document_numbers)\r\n```\r\n\r\nThe `api_requests` module may add support for endpoints other than the documents endpoint at a future point.\r\n\r\n### fr_toolbelt.preprocessing module\r\n\r\nThe `preprocessing` module handles common tasks to process the API data in a usable format. Below is an example of what the raw API data look like for a single illustrative document. Notice how fields like \"agencies\" and \"regulation_id_number_info\" are nested data structures that are difficult to use in their raw form.\r\n\r\n```JSON5\r\n{'agencies': [{'id': 12,\r\n 'json_url': 'https://www.federalregister.gov/api/v1/agencies/12',\r\n 'name': 'Agriculture Department',\r\n 'parent_id': None,\r\n 'raw_name': 'DEPARTMENT OF AGRICULTURE',\r\n 'slug': 'agriculture-department',\r\n 'url': 'https://www.federalregister.gov/agencies/agriculture-department'},\r\n {'id': 456,\r\n 'json_url': 'https://www.federalregister.gov/api/v1/agencies/456',\r\n 'name': 'Rural Business-Cooperative Service',\r\n 'parent_id': 12,\r\n 'raw_name': 'Rural Business-Cooperative Service',\r\n 'slug': 'rural-business-cooperative-service',\r\n 'url': 'https://www.federalregister.gov/agencies/rural-business-cooperative-service'}],\r\n 'agency_names': ['Agriculture Department',\r\n 'Rural Business-Cooperative Service'],\r\n 'docket_ids': ['DOCKET #: RBS-23-BUSINESS-0024'],\r\n 'dockets': [{'agency_name': 'RBS',\r\n 'documents': [{'allow_late_comments': None,\r\n 'comment_count': 1,\r\n 'comment_end_date': '2024-04-02',\r\n 'comment_start_date': '2024-01-02',\r\n 'comment_url': 'https://www.regulations.gov/commenton/RBS-23-BUSINESS-0024-0001',\r\n 'id': 'RBS-23-BUSINESS-0024-0001',\r\n 'regulations_dot_gov_open_for_comment': True,\r\n 'updated_at': '2024-01-22T00:04:26.978-05:00'}],\r\n 'id': 'RBS-23-BUSINESS-0024',\r\n 'supporting_documents': [],\r\n 'supporting_documents_count': 0,\r\n 'title': 'Notice of Funding Opportunity for the Rural Innovation '\r\n 'Stronger Economy (RISE) Grant Program for Fiscal Year '\r\n '2024'}],\r\n 'document_number': '2023-26792',\r\n 'president': {'identifier': 'joe-biden', 'name': 'Joseph R. Biden Jr.'},\r\n 'publication_date': '2024-01-02',\r\n 'regulation_id_number_info': {},\r\n 'title': 'Notice of Solicitation of Applications for the Rural Innovation '\r\n 'Stronger Economy (RISE) Grant Program for Fiscal Year 2024',\r\n 'type': 'Notice'}\r\n```\r\n\r\nTo preprocess the agency information in a set of documents, we would use the `AgencyMetadata` class to retrieve agency metadata from the API and then process the documents with the `AgencyData` class.\r\n\r\n```python\r\nfrom fr_toolbelt.preprocessing import AgencyMetadata, AgencyData\r\n\r\n# first we collect metadata for processing the agency information\r\nagency_metadata = AgencyMetadata()\r\nmetadata, schema = agency_metadata.get_agency_metadata()\r\n\r\n# then we process the documents using the AgencyData class\r\nagency_data = AgencyData(results, metadata, schema)\r\nprocessed_agencies = agency_data.process_data(return_format=\"name\")\r\n```\r\n\r\nBelow, see how the illustrative document shown previously now contains new key: value pairs (\"agency_slugs\", \"independent_reg_agency\", \"parent_name\", \"subagency_name\") and removes the old ones (\"agencies\", \"agency_names\").\r\n\r\n```JSON5\r\n{'agency_slugs': ['rural-business-cooperative-service',\r\n 'agriculture-department'],\r\n 'docket_ids': ['DOCKET #: RBS-23-BUSINESS-0024'],\r\n 'dockets': [{'agency_name': 'RBS',\r\n 'documents': [{'allow_late_comments': None,\r\n 'comment_count': 1,\r\n 'comment_end_date': '2024-04-02',\r\n 'comment_start_date': '2024-01-02',\r\n 'comment_url': 'https://www.regulations.gov/commenton/RBS-23-BUSINESS-0024-0001',\r\n 'id': 'RBS-23-BUSINESS-0024-0001',\r\n 'regulations_dot_gov_open_for_comment': True,\r\n 'updated_at': '2024-01-22T00:04:26.978-05:00'}],\r\n 'id': 'RBS-23-BUSINESS-0024',\r\n 'supporting_documents': [],\r\n 'supporting_documents_count': 0,\r\n 'title': 'Notice of Funding Opportunity for the Rural Innovation '\r\n 'Stronger Economy (RISE) Grant Program for Fiscal Year '\r\n '2024'}],\r\n 'document_number': '2023-26792',\r\n 'independent_reg_agency': False,\r\n 'parent_name': 'Agriculture Department',\r\n 'president': {'identifier': 'joe-biden', 'name': 'Joseph R. Biden Jr.'},\r\n 'publication_date': '2024-01-02',\r\n 'regulation_id_number_info': {},\r\n 'subagency_name': 'Rural Business-Cooperative Service',\r\n 'title': 'Notice of Solicitation of Applications for the Rural Innovation '\r\n 'Stronger Economy (RISE) Grant Program for Fiscal Year 2024',\r\n 'type': 'Notice'}\r\n```\r\n\r\nA similar series of commands accomplishes data processing for other fields. Classes are available for preprocessing \"president\" (`Presidents`), \"regulation_id_number_info\" (`RegInfoData`), and fields related to public commenting dockets (`Dockets` and `RegDotGovData`).\r\n\r\nAlternatively, the `process_documents` function provides a simpler interface for combining these functionalities together.\r\n\r\n```python\r\nfrom fr_toolbelt.preprocessing import process_documents\r\n\r\n# passing the del_keys parameter deletes those keys from the resulting dict\r\nprocessed_docs = process_documents(results, del_keys=(\"type\", \"docket_ids\"))\r\n```\r\n\r\n```JSON5\r\n{'agency_slugs': ['rural-business-cooperative-service',\r\n 'agriculture-department'],\r\n 'docket_id': 'RBS-23-BUSINESS-0024',\r\n 'document_number': '2023-26792',\r\n 'independent_reg_agency': False,\r\n 'parent_slug': 'agriculture-department',\r\n 'president_id': 'joe-biden',\r\n 'publication_date': '2024-01-02',\r\n 'rin': None,\r\n 'rin_priority': None,\r\n 'subagency_slug': 'rural-business-cooperative-service',\r\n 'title': 'Notice of Solicitation of Applications for the Rural Innovation '\r\n 'Stronger Economy (RISE) Grant Program for Fiscal Year 2024'}\r\n```\r\n\r\nYou can select which fields you want to process with this function too.\r\n\r\n```python\r\nfrom fr_toolbelt.preprocessing import process_documents\r\n\r\n# passing the which parameter to select which fields to process\r\nprocessed_docs = process_documents(results, which=(\"agencies\", \"presidents\"), del_keys=\"docket_ids\")\r\n```\r\n\r\n```JSON5\r\n{'agency_slugs': ['rural-business-cooperative-service',\r\n 'agriculture-department'],\r\n 'dockets': [{'agency_name': 'RBS',\r\n 'documents': [{'allow_late_comments': None,\r\n 'comment_count': 1,\r\n 'comment_end_date': '2024-04-02',\r\n 'comment_start_date': '2024-01-02',\r\n 'comment_url': 'https://www.regulations.gov/commenton/RBS-23-BUSINESS-0024-0001',\r\n 'id': 'RBS-23-BUSINESS-0024-0001',\r\n 'regulations_dot_gov_open_for_comment': True,\r\n 'updated_at': '2024-01-22T00:04:26.978-05:00'}],\r\n 'id': 'RBS-23-BUSINESS-0024',\r\n 'supporting_documents': [],\r\n 'supporting_documents_count': 0,\r\n 'title': 'Notice of Funding Opportunity for the Rural Innovation '\r\n 'Stronger Economy (RISE) Grant Program for Fiscal Year '\r\n '2024'}],\r\n 'document_number': '2023-26792',\r\n 'independent_reg_agency': False,\r\n 'parent_name': 'Agriculture Department',\r\n 'president_id': 'joe-biden',\r\n 'publication_date': '2024-01-02',\r\n 'regulation_id_number_info': {},\r\n 'subagency_name': 'Rural Business-Cooperative Service',\r\n 'title': 'Notice of Solicitation of Applications for the Rural Innovation '\r\n 'Stronger Economy (RISE) Grant Program for Fiscal Year 2024',\r\n 'type': 'Notice'}\r\n```\r\n\r\n### fr_toolbelt.utils module\r\n\r\nThese functions handle date formatting under the hood and provide functionality for identifying and removing duplicate entries (not a current bug in the FR API if passing the order=oldest or order=newest parameter in a request).\r\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 GW Regulatory Studies Center Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Toolbelt of classes and functions written in Python to use with the Federal Register (FR) API.",
"version": "0.1.2",
"project_urls": {
"Issues": "https://github.com/regulatorystudies/fr-toolbelt/issues",
"Repository": "https://github.com/regulatorystudies/fr-toolbelt.git"
},
"split_keywords": [
"federal register",
" government",
" api",
" regulation",
" regulatory"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "433639fae80bcdcc85c5998488b709b7422f602a73da6d6cb490b88a6fcf9493",
"md5": "8f69377b78f2b75087854ece51a9cd2b",
"sha256": "5cc500a2deb3438aadbc7bd3bed75cb4bc1285888a0730d42d79ddccdec9b19d"
},
"downloads": -1,
"filename": "fr_toolbelt-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8f69377b78f2b75087854ece51a9cd2b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 25331,
"upload_time": "2024-06-07T18:42:27",
"upload_time_iso_8601": "2024-06-07T18:42:27.645505Z",
"url": "https://files.pythonhosted.org/packages/43/36/39fae80bcdcc85c5998488b709b7422f602a73da6d6cb490b88a6fcf9493/fr_toolbelt-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "40bb56c4a5b5e89ab273f1760572cb134612095b532c4ed563e880ff5fad17cc",
"md5": "8f92c8aaa4772bcc29b44b8730dae17e",
"sha256": "9d79360477432c8daea0e77bd0dc82ec7e4d0de0ca88a80a377ffd4bfd98613f"
},
"downloads": -1,
"filename": "fr_toolbelt-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "8f92c8aaa4772bcc29b44b8730dae17e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 27886,
"upload_time": "2024-06-07T18:42:29",
"upload_time_iso_8601": "2024-06-07T18:42:29.055823Z",
"url": "https://files.pythonhosted.org/packages/40/bb/56c4a5b5e89ab273f1760572cb134612095b532c4ed563e880ff5fad17cc/fr_toolbelt-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-07 18:42:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "regulatorystudies",
"github_project": "fr-toolbelt",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "fr-toolbelt"
}