Skip to main content

A simple package for cleaning geolocation strings.

Project description

GeoAddressCleaner

A lightweight Python package for cleaning and standardizing US street addresses before geocoding or mapping.
It focuses on parsing, formatting, and basic validation of address strings.


Features

  • Parses US addresses from various formats (with or without commas)
  • Standardizes addresses to a consistent format:
    Street, City, State ZIP
  • Validates state abbreviations and basic address structure
  • Optional geocoding (requires geopy)

Installation

Install the package using pip:pip install geoaddresscleaner

Or, for development, install in editable mode from the project root:pip install -e .


Usage

from geoaddresscleaner.core import standardize_address, validate_address Standardize an address

print(standardize_address("123 main st, springfield, il 62704")) Output: "123 Main St, Springfield, IL 62704" Validate an address

print(validate_address("123 main st, springfield, il 62704")) Output: True


Contributing

Contributions are welcome!
Please open an issue or submit a pull request on GitHub.


License

MIT License

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

geocleaner-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

geocleaner-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file geocleaner-0.1.0.tar.gz.

File metadata

  • Download URL: geocleaner-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for geocleaner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1c4e918f8292511aa759e19a4facd0da94335de9b9fa8cfcdc184b32ec2c27ca
MD5 1dd21fd157c34d47c81691fff98657ce
BLAKE2b-256 1328941bfd35767e707356e59078792d0f9bdae3ec5d49a2dcddf0e59d359359

See more details on using hashes here.

File details

Details for the file geocleaner-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: geocleaner-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for geocleaner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d34526c9b01ab48e841111afba67377626cf966bb95cd48a8d8fdb74bd2d72f0
MD5 43c8c76fcd6daeab47ec4600b0afb985
BLAKE2b-256 64efb026806ece592a382265e0aeef397db92e883fa50d5436f3c7ade1ed4324

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