Skip to main content

Simple yet powerful Chilean and other tools written in Rust and Python.

Project description

Welcome to CL Forge!

banner

Simple yet powerful Chilean tools written in Rust and Python.



cl-forge provides a collection of high-performance utilities for common Chilean data formats and API integrations. The core logic is implemented in Rust for maximum speed, with a clean and easy-to-use Python interface.

Features

  • High Performance: Core logic written in Rust.
  • Verify: Efficiently validate Chilean RUT/RUN and PPU (License Plates).
  • API Integrations: Simple clients to interact with the CMF and Public Market APIs.
  • Type Safety: Full type hints and .pyi stubs for excellent IDE support.

Examples

Validate

You can validate if a verifier digit is correct for a given numeric part of a RUT/RUN.

from cl_forge import verify

is_valid = verify.validate_rut(8750720, "3")

print(f"RUT is valid: {is_valid}")
# RUT is valid: True

... Or you can calculate the verifier digit yourself.

from cl_forge import verify

dv = verify.calculate_verifier(8750720)

print(f"Verifier digit: {dv}")
# Verifier digit: 3

Generate

Need to generate a bunch of random, unique and valid RUTs? No problem! And you can even specify a random seed, so you can reproduce the same results every time.

from cl_forge import verify

ruts = verify.generate(
   n=100,
   min=1_000_000,
   max=20_000_000,
   seed=42
)

print(ruts)
# [{'correlative': 8750720, 'verifier': '3'}, ...]

API Clients

The CMF API client allows you to easily interact with the CMF API.

from cl_forge.cmf import CmfClient

client = CmfClient(api_key="your-api-key")

# Get latest IPC data
ipc_data = client.get(path="/ipc")

print(ipc_data)
# {'IPCs': [{'Valor': '-0,2', 'Fecha': '2025-12-01'}]}

[!NOTE] To use the CMF API, you need an API key. You can request one at CMF Chile.

See the CMF API documentation for details about the available endpoints.

Contributing

Pull requests are welcome. For changes and reporting bugs, please open an issue first to discuss it. Read our Contributing Guide for more details.

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

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

cl_forge-1.0.0.tar.gz (46.5 kB view details)

Uploaded Source

Built Distributions

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

cl_forge-1.0.0-cp314-cp314-win_arm64.whl (2.6 MB view details)

Uploaded CPython 3.14Windows ARM64

cl_forge-1.0.0-cp314-cp314-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.14Windows x86-64

cl_forge-1.0.0-cp314-cp314-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

cl_forge-1.0.0-cp314-cp314-macosx_10_12_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.14macOS 10.12+ x86-64

cl_forge-1.0.0-cp313-cp313-win_arm64.whl (2.6 MB view details)

Uploaded CPython 3.13Windows ARM64

cl_forge-1.0.0-cp313-cp313-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.13Windows x86-64

cl_forge-1.0.0-cp313-cp313-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

cl_forge-1.0.0-cp313-cp313-macosx_10_12_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

cl_forge-1.0.0-cp312-cp312-win_arm64.whl (2.6 MB view details)

Uploaded CPython 3.12Windows ARM64

cl_forge-1.0.0-cp312-cp312-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.12Windows x86-64

cl_forge-1.0.0-cp312-cp312-macosx_11_0_arm64.whl (3.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

cl_forge-1.0.0-cp312-cp312-macosx_10_12_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

cl_forge-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

cl_forge-1.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

File details

Details for the file cl_forge-1.0.0.tar.gz.

File metadata

  • Download URL: cl_forge-1.0.0.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fa1ecb2e147cc66e17a925b7e1ca1f952d79dd4205415ad983a1ccefcafdd475
MD5 b757e8bf8e1287db168a13836cfbffd2
BLAKE2b-256 574992ff1f79e57548342951a0af53bfd7f613f9120ab90492f68d342b668969

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp314-cp314-win_arm64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp314-cp314-win_arm64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: CPython 3.14, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp314-cp314-win_arm64.whl
Algorithm Hash digest
SHA256 b19232904eb7322f251f40f3f0b428da8d78d4844d2f591705f433c95301506f
MD5 f6cc17a428ed235e10dc3bf3d863dbf7
BLAKE2b-256 1862bb54e20cfd704adc06e7b1f6fdaf344c169d5c9e009082626664efc33272

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 c2616e467602bcea4037581eaee46660b6308bd13e4c1635d88f14b7746c46a3
MD5 3f182c055f3c44a2d47d9541162a8c67
BLAKE2b-256 3e27c958c6d0d563b822fe646e769a889f91dc9e1196b8505c52ffe6c35774a1

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp314-cp314-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.14, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad0d631f9ef368973f61f1ceb42b0926ccfdd1504e26b7f3d83344c35aa6018b
MD5 2eb563abc4a874497a68e18c6751a8e9
BLAKE2b-256 2a76b0d72bf033e925a7d4680103e5dba497baacbef1f352edfcb7972ed2ea0e

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp314-cp314-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp314-cp314-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: CPython 3.14, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp314-cp314-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2ba78409839dfffad8fe9f1f3d6dc12bde6302f44b7574d9f9404b2de74f3bd6
MD5 7a5815096cc0156b866d8d99fbcb33b0
BLAKE2b-256 cef412b37ec57f0dab5dd232de96fd4b97207f55b1abbd2dbe72cdad67ac3a0a

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp313-cp313-win_arm64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp313-cp313-win_arm64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: CPython 3.13, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp313-cp313-win_arm64.whl
Algorithm Hash digest
SHA256 19a79962c5ffb7f65314a1cc5577d63bc9e394175ccdc0c2772a0b872a342fcc
MD5 843b8b5193d33e27e16e3ba1b1cf6d91
BLAKE2b-256 98cd742dff0b51fccf252efe924c6b70a4dd94522249c8e64fea0ad1afaf704c

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 20b87ced8640a3fc079197a382574788fdbe2ad72011bfa29f7b805c98d2c4c6
MD5 7206f954c039b563eea9b507b5de686a
BLAKE2b-256 c9d3829d148d86469cf8b998033fb4617757590b150741c1b56c63d9bc5cb0f7

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp313-cp313-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.13, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9d529b389e773015095e05064589071307c938c156acf1ce76019338c3cf2ba7
MD5 5e2cb827df7c5a37b3ccc34723e0740c
BLAKE2b-256 7701e637d1646683c30e15e97aa47b7868737997fe8e241e79405e2c57642210

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp313-cp313-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: CPython 3.13, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8fb482302722ebd4d63bb64c808d3aa50093ff257102b93bcc9a6e2bae5566af
MD5 0cb267a97c6cc4cc2ded8c14a5a895d8
BLAKE2b-256 a9e5f74e2f89c300061fead48ac8c3dc70bb9759bf79a1850ce843fbb9604a49

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp312-cp312-win_arm64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp312-cp312-win_arm64.whl
  • Upload date:
  • Size: 2.6 MB
  • Tags: CPython 3.12, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp312-cp312-win_arm64.whl
Algorithm Hash digest
SHA256 cb8aa46ba74c48efd221ac47d41cfc260831800775001559a2862fe169d71438
MD5 78a5d6fd52f4ac12041eb148d20b58f4
BLAKE2b-256 6c3f1076976ca21b55cc3e90f8f164c86000d216235ee5c529a05ed1d61c6b62

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 10d2570f1352ada0f8978f1385fc56eb2af9a9bdf2ae8079caaf5f3968e090ab
MD5 3fa7d5427e1fa0dc8c837ebe5468574e
BLAKE2b-256 5938194f919aeb52fb610d033e33acbf017e7f809b2a9759cfd670ba9383c69b

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.12, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43c959a0ba80f72abdaa034051dcb455ec89e4a9a0c9913da2afe4700b3fd6b2
MD5 ffd62da5778c293612eeac91f8285017
BLAKE2b-256 eb5c7020f438c58f9aa63bc091ff801249739f7c016d926c50114a0cfa791d92

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp312-cp312-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 3.1 MB
  • Tags: CPython 3.12, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7d96a42614e63872dea025f8b9b8097ba9f9ba4fc0ef2c33b95b0820436cb20c
MD5 86ff983620d88d96c5ca230d13954e8c
BLAKE2b-256 0b510215b440602268d1ee743d5a513d274edaa0effa8a9c537aee1348993e92

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 132e02eb80946215f5b90c341969ccf8216edbb44305648423ca5817dcde347c
MD5 d1de5cde551dceacd35682dd52a10a3e
BLAKE2b-256 99bf54a2fe5052c0aeeb5340fdcd41357eb9959bba3a81865ef5852d1a78eae6

See more details on using hashes here.

File details

Details for the file cl_forge-1.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

  • Download URL: cl_forge-1.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.8, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cl_forge-1.0.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 13970732973f60dc0567840be73e6841b559616b711a2d9e1331f9644411ce55
MD5 b5c30d310ea11229bfd3c10a87591e01
BLAKE2b-256 3e89d53a817147ecef38422fa6c1e29145d1e6b66fe7b669a5582388376eb873

See more details on using hashes here.

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