{"id":44206500,"url":"https://github.com/mschiaff/cl-forge","last_synced_at":"2026-02-16T21:02:13.689Z","repository":{"id":333497688,"uuid":"1137528465","full_name":"mschiaff/cl-forge","owner":"mschiaff","description":"Simple yet powerful Chilean and other tools written in Rust and Python.","archived":false,"fork":false,"pushed_at":"2026-02-09T21:38:01.000Z","size":978,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-10T01:07:32.621Z","etag":null,"topics":["api-client","chile","chilean-rut","cmf","license-plate","public-market","python","rust","tools","utils","validation"],"latest_commit_sha":null,"homepage":"https://mschiaff.github.io/cl-forge/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mschiaff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-19T13:41:57.000Z","updated_at":"2026-02-09T21:37:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"49ebb480-d2da-433b-8707-4b23b555c6dc","html_url":"https://github.com/mschiaff/cl-forge","commit_stats":null,"previous_names":["mschiaff/cl-forge"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/mschiaff/cl-forge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschiaff%2Fcl-forge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschiaff%2Fcl-forge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschiaff%2Fcl-forge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschiaff%2Fcl-forge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mschiaff","download_url":"https://codeload.github.com/mschiaff/cl-forge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mschiaff%2Fcl-forge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29518598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","chile","chilean-rut","cmf","license-plate","public-market","python","rust","tools","utils","validation"],"created_at":"2026-02-09T23:09:03.551Z","updated_at":"2026-02-16T21:02:13.684Z","avatar_url":"https://github.com/mschiaff.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to CL Forge!\n\n\u003cimg src=\"https://github.com/mschiaff/cl-forge/blob/main/docs/assets/banner.png?raw=true\" align=\"center\" style=\"border-radius: 25px;\" alt=\"banner\"/\u003e\n\n\u003ch2 align=\"center\"\u003eSimple yet powerful Chilean tools written in Rust and Python.\u003c/h2\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![PyPI - Version](https://img.shields.io/pypi/v/cl-forge)](https://pypi.org/project/cl-forge/)\n[![GitHub Release](https://img.shields.io/github/v/release/mschiaff/cl-forge)](https://github.com/mschiaff/cl-forge/releases/latest)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/cl-forge)](https://pypi.org/project/cl-forge/)\n[![GH Pages - Docs](https://img.shields.io/badge/Pages-Docs-blue?logo=github)](https://mschiaff.github.io/cl-forge/)\n\n![PyPI - Status](https://img.shields.io/pypi/status/cl-forge)\n![PyPI - Types](https://img.shields.io/pypi/types/cl-forge)\n[![GitHub License](https://img.shields.io/github/license/mschiaff/cl-forge)](https://github.com/mschiaff/cl-forge/blob/main/LICENSE)\n\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/mschiaff/cl-forge/python-package.yml?logo=github\u0026label=Tests)](https://github.com/mschiaff/cl-forge/actions/workflows/python-package.yml)\n[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/mschiaff/cl-forge/release-python.yml?logo=github\u0026label=Release)](https://github.com/mschiaff/cl-forge/actions/workflows/release-python.yml)\n[![pages-build-deployment](https://github.com/mschiaff/cl-forge/actions/workflows/pages/pages-build-deployment/badge.svg?branch=gh-pages)](https://github.com/mschiaff/cl-forge/actions/workflows/pages/pages-build-deployment)\n\n\u003c/div\u003e\n\n`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.\n\n## Features\n\n- **High Performance**: Core logic written in Rust.\n- **Verify**: Efficiently validate Chilean RUT/RUN and PPU (License Plates).\n- **API Integrations**: Simple clients to interact with the [CMF](https://api.cmfchile.cl) and [Public Market](https://api.mercadopublico.cl) APIs.\n- **Type Safety**: Full type hints and `.pyi` stubs for excellent IDE support.\n\n## Examples\n\n### Validate\n\nYou can validate if a verifier digit is correct for a given numeric part of a RUT/RUN.\n\n```python\nfrom cl_forge import verify\n\nis_valid = verify.validate_rut(8750720, \"3\")\n\nprint(f\"RUT is valid: {is_valid}\")\n# RUT is valid: True\n```\n\n... Or you can calculate the verifier digit yourself.\n\n```python\nfrom cl_forge import verify\n\ndv = verify.calculate_verifier(8750720)\n\nprint(f\"Verifier digit: {dv}\")\n# Verifier digit: 3\n```\n\n### Generate\n\nNeed 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.\n\n```python\nfrom cl_forge import verify\n\nruts = verify.generate(\n   n=100,\n   min=1_000_000,\n   max=20_000_000,\n   seed=42\n)\n\nprint(ruts)\n# [{'correlative': 8750720, 'verifier': '3'}, ...]\n```\n\n### API Clients\n\nThe CMF API client allows you to easily interact with the [CMF](https://api.cmfchile.cl) API.\n\n```python\nfrom cl_forge.cmf import CmfClient\n\nclient = CmfClient(api_key=\"your-api-key\")\n\n# Get latest IPC data\nipc_data = client.get(path=\"/ipc\")\n\nprint(ipc_data)\n# {'IPCs': [{'Valor': '-0,2', 'Fecha': '2025-12-01'}]}\n```\n\n\u003e [!IMPORTANT]\n\u003e To use the CMF API, you need an API key. You can request one at [Contact CMF](https://api.cmfchile.cl/api_cmf/contactanos.jsp).\n\nSee the [API Reference](https://mschiaff.github.io/cl-forge/api/cmf/base_client/) for endpoint-specific clients, and the [CMF API documentation](https://api.cmfchile.cl/documentacion/index.html) for details about all the available endpoints.\n\nThe Public Market API client also allows you to easily interact with the [Mercado Público](https://api.mercadopublico.cl) API.\n\n```python\nfrom cl_forge.market import MarketClient\n\nclient = MarketClient(ticket='your-api-ticket')\n\ntenders_data = client.get(path=\"/licitaciones\")\n\nprint(tenders_data)\n#{'Cantidad': 463,\n# 'FechaCreacion': '2026-02-12T16:07:58.813315Z',\n# 'Version': 'v1',\n# 'Listado': [{'CodigoExterno': '1057049-30-B226',\n#   'Nombre': 'CSP- SERVICIO DE INMUNOHISTOQUÍMICA Y CISH',\n#   'CodigoEstado': 5,\n#   'FechaCierre': '2026-02-23T15:30:00'},\n#  {'CodigoExterno': '1057374-8-L126',\n# ...}\n```\n\n\u003e [!IMPORTANT]\n\u003e To use the Mercado Público API, you need an API ticket. You can request one at [Contact Mercado Público](https://api.mercadopublico.cl/modules/IniciarSesion.aspx). To request this API ticket, you will also have to request and activate your [ClaveÚnica](https://claveunica.gob.cl).\n\nSee the [Mercado Público API documentation](https://api.mercadopublico.cl/modules/api.aspx) for details about all the available endpoints. **Endpoint-specific clients coming soon in future updates.**\n\n## Contributing\n\nPull requests are welcome. For changes and reporting bugs, please open an issue first to discuss it. Read our [Contributing Guide](CONTRIBUTING.md) for more details.\n\n## License\n\nThis project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmschiaff%2Fcl-forge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmschiaff%2Fcl-forge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmschiaff%2Fcl-forge/lists"}