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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80a9d4a6a7f53be69fdd5a03cda35c5b41955a00069eabdf8b14a6fc030390ee
|
|
| MD5 |
417e6895e14af8cb2890e51952ba02d0
|
|
| BLAKE2b-256 |
a6a43f0c6a74236efd78a1dffa2b85364c7223a90539eb4ddecb9bdd566a0cbe
|
Provenance
The following attestation bundles were made for 1dex_connector-0.1.2.tar.gz:
Publisher:
pypi-publish.yml on blipn/1dex-connector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
1dex_connector-0.1.2.tar.gz -
Subject digest:
80a9d4a6a7f53be69fdd5a03cda35c5b41955a00069eabdf8b14a6fc030390ee - Sigstore transparency entry: 1849981992
- Sigstore integration time:
-
Permalink:
blipn/1dex-connector@368cb3f07fe40b9f0e0f7050b266746da156f71e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/blipn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@368cb3f07fe40b9f0e0f7050b266746da156f71e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a888beb78c1da65c0bd4a7a7d150c26e92cf8431181b38ee64c26984286fd95
|
|
| MD5 |
95b54d3c2dafe45c5c76595689b1fca4
|
|
| BLAKE2b-256 |
690f11e27b566db0b67e752fb1feba2ac58471708c00a23130ac3a427c2986a9
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
1dex_connector-0.1.2-py3-none-any.whl -
Subject digest:
0a888beb78c1da65c0bd4a7a7d150c26e92cf8431181b38ee64c26984286fd95 - Sigstore transparency entry: 1849982109
- Sigstore integration time:
-
Permalink:
blipn/1dex-connector@368cb3f07fe40b9f0e0f7050b266746da156f71e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/blipn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@368cb3f07fe40b9f0e0f7050b266746da156f71e -
Trigger Event:
push
-
Statement type: