Address parser
Simple address parser with localization support.
Note: This library is meant to be simple, light weight and easy to adapt. This is not the best and most optimized address parser out there. For state of the art parser you should probably look at https://github.com/openvenues/pypostal
- Documentation: https://gispocoding.github.io/addr-parser
- GitHub: https://github.com/gispocoding/addr-parser
- PyPI: https://pypi.org/project/addrparser/
- Free software: MIT
Supported countries
| Country | Description | Documentation |
|---|---|---|
| Suomi - Finland | Suomalaisten osoitteiden osoiteparseri | https://gispocoding.github.io/addr-parser/locales/fi |
Installation
pip install addrparser
Setting up a development environment
See instructions in CONTRIBUTING.md
Usage
Command line tool
$ addr-parse --help
Usage: addr-parse [OPTIONS] ADDRESS
Cli tool for parsing text addresses.
Args: address (str): address text
Options:
-l, --locale TEXT Country code in two-letter ISO 3166
--help Show this message and exit.
$ addr-parser "Iso Maantie 12b B 7"
{
"input": "Iso Maantie 12b B 7",
"result": {
"street_name": "Iso Maantie",
"house_number": "12b",
"entrance": "B",
"apartment": "7"
}
}
Library
>>> from addrparser import AddressParser
>>> parser = AddressParser('fi')
>>> address = parser.parse('Iso Maantie 12b B 7')
>>> address
Address(street_name='Iso Maantie', house_number='12b', entrance='B', apartment='7', post_office_box=None, zip_number=None, zip_name=None)
Credits
This project was created with inspiration from waynerv/cookiecutter-pypackage project template.
Metadata
Release files for addrparser 0.2.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 | |
|---|---|---|---|---|
| addrparser-0.2.0.tar.gz | 8.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| addrparser-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.5 kB
Release files / addrparser-0.2.0.tar.gz
| Download URL | addrparser-0.2.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b76a8241d87147475a6f6ed455af390b0144e0c4fe7273a0dcabf17e13c5cef4
|
|
BLAKE2b-256 checksum How to use checksums |
e13e33691870ebe4a2f1777b32a587d5de55a4872f15393f147df851bd6ffeb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / addrparser-0.2.0-py3-none-any.whl
| Download URL | addrparser-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
480eaba5cf1cb3a867cfc4260118db0e4917e2607d04be5dd5681195b64f3dd0
|
|
BLAKE2b-256 checksum How to use checksums |
85139e130e2373d927c7e10ef263b3d5aa761ba4e95022ef8bf4488d7a63d7ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Security for addrparser 0.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.