Skip to main content

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_list: list[str], exclude_address_type: list[str])

    • 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_list: list[str], exclude_address_type: list[str])

    • 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!

Metadata

Release files for addrx 0.1.2

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

Built distribution (wheel)

Table of built distributions (wheels) for addrx 0.1.2
File Interpreter ABI Platform
addrx-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / addrx-0.1.2-py3-none-any.whl

Download URL addrx-0.1.2-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e46e48d565e361c7cc0424e725f76224f56e90e3a81edf091f51f515b94c7ba7
BLAKE2b-256 checksum
How to use checksums
4a7eb82c211f4b96927f92fe076640e525ef8b9cd4d8f227132953f4e27f5859
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Security for addrx 0.1.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.

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.

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