Skip to main content

Pyap is an MIT Licensed text processing library, written in Python, for detecting and parsing addresses. Currently it supports USA, Canadian and British addresses. This is a fork maintained by Beauhurst.

Project description

Pyap: Python address parser

Pyap is an MIT Licensed text processing library, written in Python, for detecting and parsing addresses. Currently it supports US 🇺🇸, Canadian 🇨🇦 and British 🇬🇧 addresses.

This fork is maintained by Beauhurst.

Installation

Install via pip:

pip install pyap_beauhurst

Usage

import pyap_beauhurst

# some text with an address in it
test_address = """
Lorem ipsum
225 E. John Carpenter Freeway,
Suite 1500 Irving, Texas 75062
Dorem sit amet
"""

# Parse the text for US addresses
addresses = pyap_beauhurst.parse(test_address, country='US')
for address in addresses:
    # shows found address
    print(address)
    # shows address parts
    print(address.model_dump())

Project details


Download files

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

Source Distribution

pyap_beauhurst-0.5.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

pyap_beauhurst-0.5.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file pyap_beauhurst-0.5.0.tar.gz.

File metadata

  • Download URL: pyap_beauhurst-0.5.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for pyap_beauhurst-0.5.0.tar.gz
Algorithm Hash digest
SHA256 57f0623d9e6b81afe59f5f138bc701dc29d154d81840d723f9715be6da86eb41
MD5 9e80b795bbf0bd60f5caa2cb5fa0d892
BLAKE2b-256 10a8a0aa2fc02304cd43582620c410f13309d762bffe8718ba0cdf757e69ce52

See more details on using hashes here.

File details

Details for the file pyap_beauhurst-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyap_beauhurst-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe911e9b363c02178b7ece633c23374b7ec36eb1f5449836bb8f3383c8d9cae7
MD5 1eac956636abf18c4bd213ce23ae9899
BLAKE2b-256 2d23a60eaa85c9229bc149802aa7b471b05d910ddfaa6c0173551d8db59f1095

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