courts-db
Database of Courts
Decision gist · record as of 2026-08-14
Yes. This is a stable, actively maintained package with zero dependencies, permissive licensing, and a clear use case for legal tech and research. Install it if you need reliable court name resolution or court metadata lookup. No known vulnerabilities and low friction make it a safe choice.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction installation with no runtime dependencies.
- Actively maintained with recent releases and a stable codebase.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause is a permissive license; you can use this package freely in commercial and private projects with minimal restrictions.
last release 2026-03-25 (142 days) · last repo commit 2026-08-13 · 110 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 395,270 downloads/mo, #6,982 on PyPI
Alternatives
Verify before relying
pip install courts_db
from courts_db import find_court, find_court_by_id
# Look up by ID
result = find_court_by_id("mass")
# Look up by name with filtering
from datetime import datetime as dt
result = find_court(
"District of Massachusetts",
bankruptcy=True,
date_found=dt.strptime("10/02/1975", "%m/%d/%Y")
)- Whether the court data is updated regularly and how currency is maintained
- Performance characteristics when searching against the full dataset
- Geographic coverage beyond US courts (if any)
What it is and what it does
Courts-DB is a curated open-source database of courts—current and historical—built by the Free Law Project from metadata across millions of case records. It provides two main functions: `find_court()` to look up court identifiers by name string, and `find_court_by_id()` to retrieve full court metadata. The database includes regex patterns for matching court name variations, historical date ranges, jurisdiction levels, case types, and citation strings.
You feed it a court name or identifier and get back structured data: the court's ID, full name, abbreviation, location, system (state/federal/tribal), level (trial/appellate/etc.), bankruptcy status, and URL. Filtering by date and bankruptcy flag lets you disambiguate when multiple courts share similar names—for example, distinguishing the Federal District Court of Massachusetts from its Bankruptcy Court. It has no external runtime dependencies and supports Python 3.9+.
Use it for
- Resolve ambiguous court names in legal documents or case filings to their canonical CourtListener identifiers
- Filter court results by historical date range to find the correct court for cases from specific time periods
- Identify whether a court reference is a bankruptcy court versus a general district court
- Build legal research tools that need to normalize and validate court names from user input
- Populate court metadata (URLs, abbreviations, citation strings) in case management systems
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a stable, actively maintained package with zero dependencies, permissive licensing, and a clear use case for legal tech and research. Install it if you need reliable court name resolution or court metadata lookup. No known vulnerabilities and low friction make it a safe choice.
Install
courts-db on PyPI
Before you install
Low friction installation with no runtime dependencies. Actively maintained with recent releases and a stable codebase.
License in practice
BSD-2-Clause is a permissive license; you can use this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install courts_db
from courts_db import find_court, find_court_by_id
# Look up by ID
result = find_court_by_id("mass")
# Look up by name with filtering
from datetime import datetime as dt
result = find_court(
"District of Massachusetts",
bankruptcy=True,
date_found=dt.strptime("10/02/1975", "%m/%d/%Y")
)
Verify before relying
- Whether the court data is updated regularly and how currency is maintained
- Performance characteristics when searching against the full dataset
- Geographic coverage beyond US courts (if any)
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 142 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 395,270 / month, #6,982 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules |
Evidence: courts_db-0.10.27-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 › “court lookup by name”
- courts-dbProvides a searchable database of current and historical courts with…
- reporters-dbProvides a comprehensive database of U.S. court reporters and legal…
- names-datasetLooks up demographic information about first and last names across…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules 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.
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.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also reporters-db · eyecite · followthemoney · fingerprints · commonregex · cleanco · nr-date · mkdocs-exclude · multiregex · datefinder