us
US state meta information and other fun stuff
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and solves a common reference-data problem with a clean API. The unclear license treatment is a minor concern—review the BSD text if you have strict compliance requirements—but poses no practical barrier for most projects. Install it if you need reliable US state metadata or geographic lookups.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction installation with a single pure-Python runtime dependency (jellyfish).
- Actively maintained with recent commits and support for current Python versions (3.8–3.12).
License · maintenance · safety
(unclear) — License treatment is unclear; the package carries a BSD-style license from Sunlight Labs but lacks an SPDX identifier. Review the full license text before use in proprietary or copyleft projects.
last release 2024-07-22 (753 days) · last repo commit 2026-05-21 · 518 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,357,635 downloads/mo, #3,106 on PyPI
Alternatives
Verify before relying
pip install us
import us
state = us.states.lookup('maryland')
print(state.fips, state.abbr, state.name)- Whether the unclear license treatment poses a practical barrier for your project's license compliance requirements.
- Whether phonetic matching accuracy via jellyfish meets your tolerance for fuzzy state name lookups.
- Total number of US states and territories covered by the package.
What it is and what it does
The us package is a reference library for US state and territory data. It provides programmatic access to states and territories with their postal abbreviations, FIPS codes, capitals, statehood years, time zones, and geographic classifications (contiguous, continental). It includes a phonetic name lookup powered by jellyfish for fuzzy matching and generates URLs to 2010 Census Bureau shapefiles for various geographic regions (state, county, congressional district, census tract, block, etc.). The package also offers a command-line tool for quick lookups and a mapping function to generate dictionaries between any two state attributes.
It is designed for developers building applications that need authoritative US geographic metadata—data validation, address parsing, geographic analysis, or administrative dashboards. The library is pure Python with minimal dependencies, installs quickly, and has been maintained since its early releases with active support for modern Python versions. DC can optionally be included in state lists via an environment variable.
Use it for
- Validate and normalize US state abbreviations or FIPS codes in address or form-processing pipelines.
- Build geographic dashboards or reports that need state capitals, time zones, or contiguity information.
- Download Census Bureau shapefiles for mapping or GIS analysis by state or region.
- Implement fuzzy state name matching in user-facing search or autocomplete features.
- Generate lookup tables mapping between FIPS codes, postal abbreviations, and state names for data integration.
- Query state metadata (statehood year, time zone, AP abbreviation) for reference or display purposes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries no known vulnerabilities, and solves a common reference-data problem with a clean API. The unclear license treatment is a minor concern—review the BSD text if you have strict compliance requirements—but poses no practical barrier for most projects. Install it if you need reliable US state metadata or geographic lookups.
Install
us on PyPI
Before you install
Low friction installation with a single pure-Python runtime dependency (jellyfish). Actively maintained with recent commits and support for current Python versions (3.8–3.12).
License in practice
License treatment is unclear; the package carries a BSD-style license from Sunlight Labs but lacks an SPDX identifier. Review the full license text before use in proprietary or copyleft projects.
Quickstart
pip install us
import us
state = us.states.lookup('maryland')
print(state.fips, state.abbr, state.name)
Verify before relying
- Whether the unclear license treatment poses a practical barrier for your project's license compliance requirements.
- Whether phonetic matching accuracy via jellyfish meets your tolerance for fuzzy state name lookups.
- Total number of US states and territories covered by the package.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagejellyfish |
| Maintenance | Actively maintained 753 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,357,635 / month, #3,106 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: us-3.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “us state metadata lookup”
- usProvides structured access to US state and territory metadata…
- pyzipcodeProvides local lookup of US ZIP code information including city,…
- geonamescacheProvides Python dictionaries of geographic data including continents,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also geonamescache · google-i18n-address · census · pyzipcode · uszipcode · zipcodes · spm-calculator · nicknames · censusgeocode · phonetics