Skip to main content

doorplate

CI PyPI Python versions PyPI downloads License: MIT OR Apache-2.0

Parse US addresses into components, with USPS Publication 28 and RESO output, a match key, a URL-safe slug, and diagnostics. A Rust library with Python bindings (PyO3, abi3 wheels for Python 3.10 and later); no runtime dependencies and no data to download.

This library formats and parses; it does not validate that an address exists or can receive mail.

Alpha release (0.6.2). Expect rough edges; names in the API and the warning codes may still change before 1.0. The match key is versioned (k5:) and later versions will probably change it, so store the prefix with your keys and plan to re-key. k5 has only been checked on the project's own data (public records). Accuracy and speed are measurements on a few datasets, not guarantees.

Help wanted: messy addresses. If it parses your addresses badly (odd abbreviations, typos, cut-off lines, units in strange places, county or mailing-list exports), please open an issue with a sample. I want to fix them. Private data can be anonymized first (how).

Quickstart

pip install doorplate
import doorplate as dp

a = dp.parse("123 north main street apt 4, Miami FL 33101")
a.street_name, a.unit_number   # ("MAIN", "4")
a.to_usps()["line1"]           # "123 N MAIN ST APT 4"
a.key()                        # "k5:S|123|N|MAIN|ST||FL|33101"
a.slug()                       # "123-n-main-st-apt-4-miami-fl-33101"
a.warnings                     # []

dp.parse_fields(line1="THE COVE", line2="1111 ASBURY WAY", city="Orlando", state="FL", zip="32801")
dp.parse_many(["1 Main St, Miami FL", "PO Box 5, Tampa FL"])  # GIL released
dp.parse("281 EVELYN DR DOTHAN", default_state="AL").city     # "DOTHAN"
  • Unusable input (no address text at all) raises ParseError, a ValueError; in parse_many that element is None. Anything else comes back with warnings (what each one tells you, and how often it is wrong).
  • default_state is a lookup hint for input with no state; it never fills state. A value that is not a US state, DC or territory raises ValueError.

Install

pip install doorplate                  # the parser
pip install "doorplate[pandas]"        # plus the pandas helper
pip install "doorplate[polars]"        # plus the Polars helper
pip install "doorplate[duckdb]"        # plus the DuckDB functions (DuckDB and PyArrow)

Python 3.10 or later. Wheels are built for Linux (x86_64, aarch64), macOS (universal2) and Windows (x64), and tested on Python 3.10 and 3.13. To build from source (Rust 1.83 or later):

pip install maturin
cd crates/doorplate-py
maturin develop --release      # builds the extension into your virtualenv
pytest tests

Guides

  • Python guide (the tour) and Python reference (every function and class).
  • pandas, Polars and DuckDB: a column, split fields, a table or a CSV file, one call per shape. parse_many uses every core with the GIL released.
  • Custom layers: doorplate.load_layer("DIR") adds your own spellings, words, places and ZIPs; a layer can change a key, so every parse reports it.
  • Anonymizing data: doorplate.Anonymizer keeps the shape and loses names and numbers. Obfuscation, not anonymity: read the output before you share it.
  • Coming from usaddress: import doorplate.compat as usaddress (label compatibility, not identical output).

Accuracy and speed

0.6.2 doorplate usaddress
Whole address right, benchmark suite, natural stratum (16,001 addresses written in five styles) 98.7% 96.1%
Whole address right, geocode benchmark dev split (60,522 one-line addresses) 94.4% 88.1%
Addresses per second from Python, one thread (suite inputs, 4 CPUs) about 99,000 about 9,200

Measured against the Python library usaddress on a few data sets, not promises for yours; every figure by build, the caveats and how to rerun them: benchmarks and speed, size and memory.

Disclaimer

doorplate is provided "as is", without warranty of any kind, under the MIT or Apache-2.0 license at your option; the license text is what governs. In plain terms: use it at your own risk. Nothing here guarantees that a parse, a warning, a match key or a figure is correct, complete or fit for your purpose. Accuracy and speed numbers are measurements on particular datasets, not promises for yours. doorplate parses and formats addresses; it does not validate that an address exists or can receive mail, and Pub 28 formatting is not certified validation. Check its output before you rely on it for anything with legal, financial, safety or delivery consequences.

doorplate is an independent project. It is not affiliated with, endorsed by or certified by the US Postal Service, RESO, DataMade (the authors of usaddress) or any data source it cites; those names are used only to say what the output follows or is compared with.

More

Licensed under either of MIT or Apache-2.0 at your option.

Metadata

Release files for doorplate 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doorplate 0.6.2
File Size Uploaded Provenance Actions
doorplate-0.6.2.tar.gz 988.2 kB With provenance Details for doorplate-0.6.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for doorplate 0.6.2
File Actions
doorplate-0.6.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for doorplate-0.6.2-cp310-abi3-win_amd64.whl
doorplate-0.6.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for doorplate-0.6.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
doorplate-0.6.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for doorplate-0.6.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
doorplate-0.6.2-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64, macOS 10.12+ x86-64 Details for doorplate-0.6.2-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 13.4 MB

Release files / doorplate-0.6.2.tar.gz

Download URL doorplate-0.6.2.tar.gz
Size 988.2 kB
Tags Source
SHA-256 checksum
How to use checksums
45ba589046bfd2e415139ff47c6c80f517b2648ff2ebf21309b27e83a506a50b
BLAKE2b-256 checksum
How to use checksums
8edc97417268407b1e6c9752febf0e5454e751ec4d8f116e6ee0862e9059da72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Release files / doorplate-0.6.2-cp310-abi3-win_amd64.whl

Download URL doorplate-0.6.2-cp310-abi3-win_amd64.whl
Size 2.5 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
899017742cac4fc278fde66c94d88c6d5af1d15c9c402c2a8903243a62bb6dba
BLAKE2b-256 checksum
How to use checksums
e13973f0798b84de3c50463d4716c89588c319ee014babd224cdf08321d64b21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Release files / doorplate-0.6.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL doorplate-0.6.2-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.5 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
7209a5d8542df2669ba8fa67e5ca9bde2b4866ded148c57651879a03f2e84cd5
BLAKE2b-256 checksum
How to use checksums
08e1d0a43dad2f40e503a56ed90c7fdf3ce984b18f90b3990f47f6ae07a4b597
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Release files / doorplate-0.6.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL doorplate-0.6.2-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.5 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
cb7aa7774e55d4dddb0d625bfcf98182a56769c3f0d952f9a86019a042a0a27b
BLAKE2b-256 checksum
How to use checksums
df97e59c62481fdca9f6aee710097321eb4be8206305f881982978082ca36f9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Release files / doorplate-0.6.2-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL doorplate-0.6.2-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 4.9 MB
Tags CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b94a4e0bf9089cc296fd2142c749e1f7a39f349c1d1c610ac8049d68e8949494
BLAKE2b-256 checksum
How to use checksums
0a5c71281932eb280c22ea8251adcd33186dc8b294566c08c8cc39a6a96ba18d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 14, 2026.

Transparency log

Security for doorplate 0.6.2

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 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for doorplate-0.6.2.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 Nov 14, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page