{"id":51159464,"url":"https://github.com/orpheric73/matheric","last_synced_at":"2026-06-26T12:31:35.468Z","repository":{"id":359271363,"uuid":"1245207438","full_name":"orpheric73/matheric","owner":"orpheric73","description":"A modular Python library for secure and flexible user input validation","archived":false,"fork":false,"pushed_at":"2026-05-21T05:13:25.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-21T11:57:37.450Z","etag":null,"topics":["input-validation","library","pip","pypi","python","python-package","secure-input"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orpheric73.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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-05-21T02:33:19.000Z","updated_at":"2026-05-21T05:13:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/orpheric73/matheric","commit_stats":null,"previous_names":["orpheric73/matheric"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/orpheric73/matheric","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orpheric73%2Fmatheric","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orpheric73%2Fmatheric/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orpheric73%2Fmatheric/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orpheric73%2Fmatheric/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orpheric73","download_url":"https://codeload.github.com/orpheric73/matheric/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orpheric73%2Fmatheric/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34817640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["input-validation","library","pip","pypi","python","python-package","secure-input"],"created_at":"2026-06-26T12:31:34.416Z","updated_at":"2026-06-26T12:31:35.455Z","avatar_url":"https://github.com/orpheric73.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Matheric\n\nA modular Python library designed to simplify secure and flexible user input.  \n\nMatheric provides advanced console input utilities with built-in validation, retry systems, type checking and optional confirmation protocols.\n\n## ✅ Features\n\n- Secure and validated user input\n- Automatic retry on invalid input\n- Built-in type verification\n- Integer and float range control\n- String length validation\n- Optional input confirmation system\n- Custom exception messages\n- Modular architecture\n\n## 📦 Installation\n\n```bash\nBash\n\npip install matheric\n```\n\n## 💡 Quick Example\n\n```Python\nPython\n\nfrom matheric import secureinput\n\nage = secureinput(\n    \"Enter your age: \",\n    type=\"int\",\n    min=0,\n    except_msg = Please enter a valid age\n)\n\nprint(age)\n```\n\n### Supported Types\n\nMatheric currently supports:\n\n- \"string\"\n- \"int\"\n- \"float\"\n\n### String Validation\n\n```Python\nPython\n\nname = secureinput(\n    \"Enter your name : \",\n    type=\"string\",\n    str_min=3,\n    str_max=20\n)\n```\n\nThe **msg** can be ommitted if it is placed first\n\n### Integer Validation\n\n```Python\nPython\n\nnumber = secureinput(\n    \"Enter a number : \",\n    type=\"int\",\n    min=1,\n    max=10\n)\n```\n\n### Float Validation\n\n```Python\nPython\n\nprice = secureinput(\n    msg=\"Enter the price : \",\n    type=\"float\",\n    min=0\n)\n```\n\n### Input Confirmation System\n\n```Python\nPython\n\npassword = secureinput(\n    msg=\"Enter password : \",\n    type=\"string\",\n    validation=True\n)\n```\n\nThe validation system allows the user to confirm the entered value before final submission.\n\n## ⚙️ Parameters\n\n| Parameter | type | Description | Default Value |\n| --- | --- | --- | --- |\n| `msg` | `string` | Message displayed before input | \"\" |\n| `type` | `string / int / float` | Expected input type (`string`, `int`, `float`) | string |\n| `max` | `int / float` | Maximum allowed numeric value | NotDefined |\n| `min` | `int / float` | Minimum allowed numeric value | NotDefined |\n| `str_length` | `int` | Exact required string length | Any |\n| `str_max` | `int` | Maximum allowed string length | NotDefined |\n| `str_min` | `int` | Minimum allowed string length | NotDefined |\n| `except_msg` | `string` | Message displayed on invalid input | Type ERROR |\n| `validation` | `bool` | Enables validation protocol | False |\n| `validation_msg` | `string` | Validation confirmation message | Enter 1 to confirm the input |\n| `validation_caractere` | `string / int / float` | Value required to validation input | 1 |\n| `language` | `EN / FR` | Output language used for automatic responses | EN |\n\n## 💡 Example With Validation\n\n```Python\nPython\n\nfrom matheric import secureinput\n\ncode = secureinput(\n    msg=\"Enter access code : \",\n    type=\"string\",\n    str_length=6,\n    validation=True,\n    validation_msg=\"Confirm the code [y/N] \"\n    validation_caractere=\"y\"\n)\n```\n\n## Project Structure\n\n```text\nmatheric/\n│\n├── pyproject.toml\n├── README.md\n├── LICENSE\n│\n└── src/\n    └── matheric/\n        ├── __init__.py\n        │\n        ├── secure_input/\n        │   ├── __init__.py\n        │   └── input.py\n        │\n        └── utils/\n            ├── __init__.py\n            └── helpers.py\n```\n\n## 🖥️ Command Line\n\nAfter installation:\n\n```bash\nBash\n\nmatheric\n```\n\nDisplays general information about the library.\n\n## 📜 License\n\nThis project is licensed under the [![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n\n## 👨‍💻 Author\n\nOrphéric SANGNIDJO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forpheric73%2Fmatheric","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forpheric73%2Fmatheric","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forpheric73%2Fmatheric/lists"}