A Python client for parsing address using Libpostal API service.
Project description
AddrX
Python client for parsing address using Libpostal API service.
AddrX is a Python-based client for parsing addresses using the libpostal API service. This service can be used to parse single addresses or a list of addresses both synchronously and asynchronously.
Features
- Parse single and multiple addresses in a list.
- Supports both synchronous and asynchronous execution.
- Inspired by the Dripostal service.
Installation
You can install AddrX via pip:
pip install addrx
API Methods
-
AddrX.single_parser(url: str, address: str, exclude_address_type: list[str] = None)-
Parse a single address.
-
Parameters:
url- The API endpoint for the libpostal service.address- Addresses to parse.exclude_address_type- A list of address type that is not required | default None Returns: Parsed address.
-
-
AddrX.parser(url: str, address: str, exclude_address_type: list[str] = None)-
Parses a list of addresses synchronously.
-
Parameters:
url- The API endpoint for the libpostal service.address_list- A list of addresses to parse.exclude_address_type- A list of address type that is not required | default None
-
Returns: List of parsed address.
-
-
AddrX.async_parser(url: str, address: str, exclude_address_type: list[str] = None)-
Parses a list of addresses asynchronously.
-
Parameters:
url- The API endpoint for the libpostal service.address_list- A list of addresses to parse.exclude_address_type- A list of address type that is not required | default None
-
Returns: List of parsed address.
-
License
This project is licensed under the MIT License.
AddrX is built to simplify address parsing using Libpostal while offering both synchronous and asynchronous capabilities.
Happy coding!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file addrx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: addrx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4b582b8aeadc86e94a0178b77542de2afe3e57bd4b2b1941c7c7967cf55b382
|
|
| MD5 |
c8336f6314c63153af414eb805db3c79
|
|
| BLAKE2b-256 |
640a917a0d8192160cd846143a185fccfb7b94d8432ee83eef561888b9a0123d
|