Skip to main content

Description

The addresshunt package gives you painless access to the addresshunt API’s. It performs requests against our API’s for

For further details, please visit:

Requirements

addresshunt-py is tested against Python 3.6, 3.7, 3.8 and 3.9, and PyPy3.6 and PyPy3.7.

Installation

To install from PyPI, simply use pip:

pip install addresshunt

Usage

Examples

import addresshunt

autocomplete_address = "11 NICHOLSON STREET"
match_address = "NICHOLSON STREET"
forward_geocode_address = "MELBOURNE MUSEUM, 11 NICHOLSON STREET, CARLTON, VIC, 3053"
reverse_geocode_address_latitude = "-37.803165"
reverse_geocode_address_longitude = "144.971802"
split_address = "MELBOURNE MUSEUM, 11 NICHOLSON STREET, CARLTON, VIC, 3053"
timezone_address = "MELBOURNE MUSEUM, 11 NICHOLSON STREET, CARLTON, VIC, 3053"
validate_address = "MELBOURNE MUSEUM, 11 NICHOLSON STREET, CARLTON, VIC, 3053"

client = addresshunt.Client(api_key='') # Specify your personal API key

autocomplete = client.autocomplete(autocomplete_address)
print("autocomplete: \n" + str(autocomplete) + str('\n'))

match = client.match(match_address)
print("match: \n" + str(match) + str('\n'))

forward_geocode = client.forward_geocode(forward_geocode_address)
print("forward_geocode: \n" + str(forward_geocode) + str('\n'))

reverse_geocode = client.reverse_geocode(reverse_geocode_address_latitude, reverse_geocode_address_longitude)
print("reverse_geocode: \n" + str(reverse_geocode) + str('\n'))

split = client.split(split_address)
print("split: \n" + str(split) + str('\n'))

timezone = client.timezone(timezone_address)
print("timezone: \n" + str(timezone) + str('\n'))

validate = client.validate(validate_address)
print("validate: \n" + str(validate) + str('\n'))

For convenience, all request performing module methods are wrapped inside the client class.

Dry run

Although errors in query creation should be handled quite decently, you can do a dry run to print the request and its parameters:

import addresshunt

autocomplete_address = "11 NICHOLSON STREET"

client = addresshunt.Client(api_key='') # Specify your personal API key
address_list = client.autocomplete(autocomplete_address, dry_run='true')

Support

For issues/bugs/enhancement suggestions, please use https://github.com/AddressHunt/addresshunt-py/issues.

Metadata

Release files for addresshunt 1.2

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

Source distribution (sdist)

Source distribution for addresshunt 1.2
File Size Uploaded Provenance
addresshunt-1.2.tar.gz 8.7 kB Without provenance Details

Release files / addresshunt-1.2.tar.gz

Download URL addresshunt-1.2.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
43c8d2490d262093be4351de7f90ad00851833fdde581a36a501fa11d008e23e
BLAKE2b-256 checksum
How to use checksums
0c0729475706b5a567acc82664eda989ffa95d8b7a7d5bd1cb0faaa249be1b7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.4

Security for addresshunt 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.

Release history Release notifications | RSS feed

This release

1.2 This release

1 release file No provenance

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