pyinegi
A typed Python client for querying indicators and metadata from the INEGI Indicators API.
Installation
pip install pyinegi
Quick start
Set your API token outside source code, then query an indicator:
export INEGI_TOKEN="your-token"
from pyinegi import InegiClient
series = InegiClient().get_indicator("1002000001", geography="00")
for observation in series[0].observations:
print(observation.period, observation.value)
Install pyinegi[pandas] to use pyinegi.pandas.to_dataframe.
Metadata catalogs
Retrieve indicator metadata or another documented catalog with get_catalog:
entries = InegiClient().get_catalog("CL_INDICATOR", "1002000001")
print(entries[0].description)
Pass record_id=None to retrieve every record in a supported catalog.
Development
See CONTRIBUTING.md. The project uses protected-main pull requests, English Conventional Commits, pre-commit hooks, and GitHub Actions quality gates.
License
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 pyinegi-0.1.0.tar.gz.
File metadata
- Download URL: pyinegi-0.1.0.tar.gz
- Upload date:
- Size: 129.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0da5a4dd77bcec2ab8e27bf22a3e7b159fb81b746c127653b1f7e21f9ce73172
|
|
| MD5 |
b349cc7e24d6810dcbb2d8b9c04f3193
|
|
| BLAKE2b-256 |
1b5cbb5d0d6cff0a6df4fe3792a7db237c5cdf0e39f3688c256c591e4e9b583e
|
Provenance
The following attestation bundles were made for pyinegi-0.1.0.tar.gz:
Publisher:
release.yml on guadaloop-07/pyinegi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyinegi-0.1.0.tar.gz -
Subject digest:
0da5a4dd77bcec2ab8e27bf22a3e7b159fb81b746c127653b1f7e21f9ce73172 - Sigstore transparency entry: 2668325461
- Sigstore integration time:
-
Permalink:
guadaloop-07/pyinegi@c058b362620066b0e26d48458c5e78fdbd095df4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/guadaloop-07
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c058b362620066b0e26d48458c5e78fdbd095df4 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pyinegi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyinegi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17cc75436802ea6d69bd61008db99564e6602eaf704464d152baadc08f0e3c42
|
|
| MD5 |
227f61e6df3e3894c529be3dae3717ff
|
|
| BLAKE2b-256 |
8a6a98cc0ae4b119069986b00f54628569b17e37e27b39711e3466f7f5259746
|
Provenance
The following attestation bundles were made for pyinegi-0.1.0-py3-none-any.whl:
Publisher:
release.yml on guadaloop-07/pyinegi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyinegi-0.1.0-py3-none-any.whl -
Subject digest:
17cc75436802ea6d69bd61008db99564e6602eaf704464d152baadc08f0e3c42 - Sigstore transparency entry: 2668325522
- Sigstore integration time:
-
Permalink:
guadaloop-07/pyinegi@c058b362620066b0e26d48458c5e78fdbd095df4 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/guadaloop-07
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c058b362620066b0e26d48458c5e78fdbd095df4 -
Trigger Event:
workflow_dispatch
-
Statement type: