fedwrap
A Python package providing convenient wrappers for accessing and working with US federal datasets, including the American Community Survey and CDC PLACES.
Table of Contents
Overview
fedwrap simplifies access to federal datasets by providing Pythonic wrappers for public APIs and data downloads. The package is designed for researchers, analysts, and developers who need streamlined access to high-value US government data.
Features
- Easy access to the American Community Survey (ACS) and the CDC PLACES dataset
- Data returned as pandas DataFrames for easy analysis
Installation
pip install fedwrap
Quick Start
from fedwrap import get_acs_data, get_places_data, get_brfss_data
# Example: Fetch ACS data
acs_df = get_acs_data(
measureid="HOUSEHOLD_TYPE",
year=2022,
geography="county"
)
# Example: Fetch CDC PLACES data
places_df = get_places_data(
geo='county',
year='2022',
measureid='ARTHRITIS',
datavaluetypid='CrdPrv'
)
# Example: Fetch BRFSS data
brfss_df = get_brfss_data(geo="state",
measure="crude",
year=2023,
question_id="CHECKUP1",
break_out_category="Sex")
Widget
To browse data using a widget with dropdown menus
from fedwrap.widget import display_explorer
display_explorer()
Modules
- census_acs provides functions for accessing data from the American Community Survey API
- cdc_places provides functions for accessing data from the CDC PLACES dataset
- cdc_brfss provides functions for accessing data from the CDC BRFSS dataset
Dependencies
- pandas
- requests
- beautifulsoup4
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For any questions or suggestions, open an issue or contact Mark Aronson.
Metadata
Release files for fedwrap 1.1.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 | Actions |
|---|---|---|---|---|
| fedwrap-1.1.1.tar.gz | 36.6 kB | With provenance | Details for fedwrap-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fedwrap-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for fedwrap-1.1.1-py3-none-any.whl |
Total release size: 77.4 kB
Release files / fedwrap-1.1.1.tar.gz
| Download URL | fedwrap-1.1.1.tar.gz |
|---|---|
| Size | 36.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99ad83b8ee886aaff5e4a70964fe011f58fdfb2ae780b78fd10e336bc16f9357
|
|
BLAKE2b-256 checksum How to use checksums |
7c1c983fe9762662e0d6ee6c472e1d215f6dd322d04572b48ac51bbd3ce1635f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 22, 2026.
Transparency logRelease files / fedwrap-1.1.1-py3-none-any.whl
| Download URL | fedwrap-1.1.1-py3-none-any.whl |
|---|---|
| Size | 40.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2fd64180a513855b995a943fb93a9cc17d3aef72c50cad9ee85b2f0ec07f8326
|
|
BLAKE2b-256 checksum How to use checksums |
e01032a3a802048f8496226c5bf10f32b5c02a27ba470e7f93bcb06437393cdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 22, 2026.
Transparency logSecurity for fedwrap 1.1.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for fedwrap-1.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 22, 2026.
Transparency logA 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.