doorplate
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.0). 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.k5has 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, aValueError; inparse_manythat element isNone. Anything else comes back withwarnings(what each one tells you, and how often it is wrong). default_stateis a lookup hint for input with no state; it never fillsstate. A value that is not a US state, DC or territory raisesValueError.
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_manyuses 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.Anonymizerkeeps 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.0 | 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 65,000 | about 9,300 |
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
- Documentation site: the key, warnings and how it works.
- Project README: what it does, the Rust library, the command-line tool.
- Examples: a notebook tour and a pipeline for each DataFrame library.
Licensed under either of MIT or Apache-2.0 at your option.
Metadata
Release files for doorplate 0.6.0
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 |
|---|---|---|---|---|
| doorplate-0.6.0.tar.gz | 977.2 kB | With provenance | Details for doorplate-0.6.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| doorplate-0.6.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for doorplate-0.6.0-cp310-abi3-win_amd64.whl |
| doorplate-0.6.0-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.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| doorplate-0.6.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.17+ ARM64 | Details for doorplate-0.6.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| doorplate-0.6.0-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 10.12+ x86-64, macOS 11.0+ ARM64 | Details for doorplate-0.6.0-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl |
Total release size: 11.4 MB
Release files / doorplate-0.6.0.tar.gz
| Download URL | doorplate-0.6.0.tar.gz |
|---|---|
| Size | 977.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56334bda62883b186a3d042d9b05684b66ca57b9a5d5e61c0d7cf2c03a1434d9
|
|
BLAKE2b-256 checksum How to use checksums |
3eb67d535d186e03086dc28b996e969bb9db6651d76f79c47f681ad3c7c18d75
|
| 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 12, 2026.
Transparency logRelease files / doorplate-0.6.0-cp310-abi3-win_amd64.whl
| Download URL | doorplate-0.6.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c468ecc18ae19d1f06a5a56d98466356ecc2855dad9303291f876a4ca0c1e8e1
|
|
BLAKE2b-256 checksum How to use checksums |
2794a236e99299df0270cb78641a8f15e5784c59656a227c2690a28975f34dc1
|
| 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 12, 2026.
Transparency logRelease files / doorplate-0.6.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | doorplate-0.6.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c18d7047c62f39abfc3f2ed999d9e30a36b6db2f4c5301066b002c8b4eb8977b
|
|
BLAKE2b-256 checksum How to use checksums |
53f0f8d85eb7920aacbb7b92fafbf27e385f6b9867f9c90b0a0684f7bd02d4c1
|
| 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 12, 2026.
Transparency logRelease files / doorplate-0.6.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | doorplate-0.6.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
cbe5f93107d38ec42313848d5e1f4199cc03d2d703a8cdc120b451dc7fe2ffac
|
|
BLAKE2b-256 checksum How to use checksums |
e59b8f8a43248082c1b2d5ad4f2e3c87861cf99d1b162a3f55c5ee0f6a50d36d
|
| 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 12, 2026.
Transparency logRelease files / doorplate-0.6.0-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
| Download URL | doorplate-0.6.0-cp310-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl |
|---|---|
| Size | 4.1 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 |
b408f7ccef9c6767d8b3a40608b0e86ac877477b4e64803e0f11e6ccc05c0a09
|
|
BLAKE2b-256 checksum How to use checksums |
f1f6d3618546f6d3a2abd1abcee7da70ef59fa86e2875b1d14b9ab3ec3a6f2e1
|
| 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 12, 2026.
Transparency logSecurity for doorplate 0.6.0
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.
Attestation for doorplate-0.6.0.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 12, 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.