Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

addrx-0.1.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file addrx-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: addrx-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.7

File hashes

Hashes for addrx-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e46e48d565e361c7cc0424e725f76224f56e90e3a81edf091f51f515b94c7ba7
MD5 c0df4b5b8b6211f236862ad09252de6c
BLAKE2b-256 4a7eb82c211f4b96927f92fe076640e525ef8b9cd4d8f227132953f4e27f5859

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page