Skip to main content

A library of API wrappers for US Federal Government datasets.

Project description

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 census_acs, cdc_places

# Example: Fetch ACS data
acs_df = census_acs.get_education_data(year=2022, geography="county")

# Example: Fetch CDC PLACES data
places_df = data = get_places_data(
    geo='county',
    year='2022',
    measureid='ARTHRITIS',
    datavaluetypid='CrdPrv'
)

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fedwrap-0.0.8.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fedwrap-0.0.8-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file fedwrap-0.0.8.tar.gz.

File metadata

  • Download URL: fedwrap-0.0.8.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for fedwrap-0.0.8.tar.gz
Algorithm Hash digest
SHA256 eb54386e4ef5426b474edcc5531848c3427b946e23d0b911495c0d1e9d4ae473
MD5 63f189d7877bc2b8c01a1b57b6020ba8
BLAKE2b-256 36febadf73b3fba0814a130f1d9171fbf581962d26ba24480a20f0198bf55d8b

See more details on using hashes here.

File details

Details for the file fedwrap-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: fedwrap-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for fedwrap-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 29721ee41a910cff2af4fcbe6fab007c0c8c725fa8a8e0d72f9317a99a671dc7
MD5 53df23af728d24314dc511ac5e3f212b
BLAKE2b-256 ae8d5a64d33b4435214766d163d4f569a1aee5ae6938c3924451aa184550c8d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page