Skip to main content

Chile INE Python SDK (chile_ine_sdk)

PyPI version Python Versions License: MIT

A modern, type-safe, synchronous and asynchronous Python SDK for interacting with the web APIs of the Chilean National Institute of Statistics (INE - Instituto Nacional de Estadísticas).

This unified SDK provides access to both INE API services:

  1. Classifiers API (rapps.ine.cl): Machine Learning classification models for CIUO (Occupations) and CAENES (Economic Activities).
  2. SIMEL API (simel.gob.cl): Labor Market Information System statistics, indicators, dimensions, and time series data.

Features

  • Sync & Async Support: Seamless HTTP execution powered by httpx.
  • 🔒 Strong Type Safety: Full Pydantic v2 schemas and strict MyPy typing.
  • 🔁 Automatic Retries: Built-in exponential backoff for resilient API calls.
  • 📊 DataFrame Support: Export statistical series directly to Pandas or Polars.
  • 🌐 Multilingual Docs: Complete English documentation with Spanish translation support.

Installation

pip install chile-ine-sdk

Optional DataFrame support:

pip install "chile-ine-sdk[dataframe]"

Quickstart

from chile_ine_sdk import INEClient

# Initialize unified INE client
client = INEClient()

# 1. CIUO / CAENES Classification
prediction = client.classifiers.predict(
    text="uber manejar pasajeros",
    classification="ciuo",
    digits=1
)
print("Classification:", prediction)

# 2. SIMEL Labor Market Indicators
indicators = client.simel.list_indicators()
print("Available Indicators:", len(indicators))

Documentation

For full documentation, tutorials, and API reference, visit https://ezer-mackenzie.github.io/chile-ine-sdk/.


License

Distributed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chile_ine_sdk-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

chile_ine_sdk-0.1.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file chile_ine_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: chile_ine_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chile_ine_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 36946ac5cdb6a776b386bbd52606771825b1877b20d31cc3daeab3cb83be2b3b
MD5 a4c250b5aead0dcd12ccef2b3e3c0f33
BLAKE2b-256 cacf092543ec8c4c260fde52f2951431dfd94046ea33247be45c83b2f96a731d

See more details on using hashes here.

Provenance

The following attestation bundles were made for chile_ine_sdk-0.1.0.tar.gz:

Publisher: publish.yml on ezer-mackenzie/chile-ine-sdk

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

File details

Details for the file chile_ine_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: chile_ine_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for chile_ine_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de45d5c5260abc444dd6b1a3661a68dc03f58d4051a36540aedf31c3defd4966
MD5 cbc8c16cc0b5eaeb2c6720c80b083b8c
BLAKE2b-256 9606c3c043ef89842c431896db18d7c4c0e0a05a994f80bc61fcdc5870845318

See more details on using hashes here.

Provenance

The following attestation bundles were made for chile_ine_sdk-0.1.0-py3-none-any.whl:

Publisher: publish.yml on ezer-mackenzie/chile-ine-sdk

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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