Skip to main content

Python connector for the public 1dex API surface: overview, subscriber address details, autocomplete, score, preview, account usage, and map routes.

Project description

1dex-connector

Python connector for the public 1dex API surface. Use overview.address() for address cards, address.details() / address.unlock() for subscriber address flows, account.usage() for API usage, autocomplete.address() / communes.search() / score.addressSuggest() for search, score.* for public score routes, preview.byPath() for public page metadata, addressPages.state() for page access state, and map.* helpers for map-layer, viewport and focus calls on 1dex.fr.

Install the PyPI distribution with python -m pip install 1dex-connector; the Python import package remains onedex.

import os

from onedex import OneDexClient

client = OneDexClient(api_key=os.getenv("ONEDEX_API_KEY"))
overview = client.overview.address({
    "address": "10 rue des cordeliers aix",
    "dvf_radius_m": 600,
})

suggestions = client.autocomplete.address({
    "q": "10 rue des cordeliers aix",
    "limit": 5,
})

score = client.score.address({
    "items": [{"address": "10 rue des cordeliers aix"}],
})

viewport = client.map.viewport({
    "layers": "context,iris",
    "address": "10 rue des cordeliers aix",
})

details = client.address.details({
    "address": "10 rue des cordeliers aix",
    "fields": ["summary", "rail"],
})

If address.details() returns address_unlock_required, post the non-null normalized_address_key alone to address.unlock(), or post the returned unlock_request object when unlock_locator_kind is unlock_request.

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

1dex_connector-0.1.2.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

1dex_connector-0.1.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file 1dex_connector-0.1.2.tar.gz.

File metadata

  • Download URL: 1dex_connector-0.1.2.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for 1dex_connector-0.1.2.tar.gz
Algorithm Hash digest
SHA256 80a9d4a6a7f53be69fdd5a03cda35c5b41955a00069eabdf8b14a6fc030390ee
MD5 417e6895e14af8cb2890e51952ba02d0
BLAKE2b-256 a6a43f0c6a74236efd78a1dffa2b85364c7223a90539eb4ddecb9bdd566a0cbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for 1dex_connector-0.1.2.tar.gz:

Publisher: pypi-publish.yml on blipn/1dex-connector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file 1dex_connector-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: 1dex_connector-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for 1dex_connector-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a888beb78c1da65c0bd4a7a7d150c26e92cf8431181b38ee64c26984286fd95
MD5 95b54d3c2dafe45c5c76595689b1fca4
BLAKE2b-256 690f11e27b566db0b67e752fb1feba2ac58471708c00a23130ac3a427c2986a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for 1dex_connector-0.1.2-py3-none-any.whl:

Publisher: pypi-publish.yml on blipn/1dex-connector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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