Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Infoxchange Locations API Python client

A Python client for the Infoxchange Locations API, generated from its OpenAPI schema with openapi-python-client.

Requires Python 3.11+.

Installation

pip install ix-locations-api

Usage

Each API operation is a module under ix_locations_api.api with sync, sync_detailed, asyncio and asyncio_detailed functions. The *_detailed versions return the full response including the status code, the others return just the parsed body (or None if the request wasn't successful).

from ix_locations_api import AuthenticatedClient
from ix_locations_api.api.search import search_suburbs_list

client = AuthenticatedClient(base_url="https://locations-api.dev.ixapps.org", token="<access token>")

page = search_suburbs_list.sync(client=client, search="Abbotsford", state="VIC")
for suburb in page.results:
    print(suburb.name, suburb.postcode, suburb.centroid)

To get an access token with a username and password:

from ix_locations_api import AuthenticatedClient, Client
from ix_locations_api.api.token import token_create
from ix_locations_api.models import TokenObtainPairRequest

tokens = token_create.sync(
    client=Client(base_url="https://locations-api.dev.ixapps.org"),
    body=TokenObtainPairRequest(username="...", password="..."),
)
client = AuthenticatedClient(base_url="https://locations-api.dev.ixapps.org", token=tokens.access)

The API documentation is available on the home page of the API (e.g. https://locations-api.dev.ixapps.org/).

Development

The ix_locations_api package is generated from openapi.yaml at the root of this repo and isn't committed. To generate it and build the package:

./generate.sh
uv build

New versions are published to PyPI automatically when a release is tagged.

Metadata

Release files for ix-locations-api 0.0.0.dev38855854536

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

Source distribution (sdist)

Source distribution for ix-locations-api 0.0.0.dev38855854536
File Size Uploaded Provenance
ix_locations_api-0.0.0.dev38855854536.tar.gz 33.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ix-locations-api 0.0.0.dev38855854536
File Interpreter ABI Platform
ix_locations_api-0.0.0.dev38855854536-py3-none-any.whl Python 3 none any Details

Total release size: 215.2 kB

Release files / ix_locations_api-0.0.0.dev38855854536.tar.gz

Download URL ix_locations_api-0.0.0.dev38855854536.tar.gz
Size 33.8 kB
Tags Source
SHA-256 checksum
How to use checksums
746ddbf8caabfd6ee05877bf8a53b12708edbd2318b53ebef0a77df49bb86a75
BLAKE2b-256 checksum
How to use checksums
2771e5bb1388d4b0b6ca558cc36ff6d4d0cb67f928d0824d4fe442a67e58559b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / ix_locations_api-0.0.0.dev38855854536-py3-none-any.whl

Download URL ix_locations_api-0.0.0.dev38855854536-py3-none-any.whl
Size 181.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6e93e69c781a4dc8d1e2225372276e615672b35ed68e98c3b0286a510229457
BLAKE2b-256 checksum
How to use checksums
20fc95d37ef42e8f24839913c937ff5beb6c64e8bcb4230340fe9bd8a3838469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for ix-locations-api 0.0.0.dev38855854536

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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