{"id":19093260,"url":"https://github.com/hexagoncore/input_num","last_synced_at":"2025-02-22T07:50:36.473Z","repository":{"id":57437937,"uuid":"383418815","full_name":"HexagonCore/input_num","owner":"HexagonCore","description":"Python package - input_num is like input but it only accepts numbers.","archived":false,"fork":false,"pushed_at":"2022-03-10T15:17:12.000Z","size":146,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-03T22:04:47.836Z","etag":null,"topics":["input-number","number","number-input","numbers","only-numbers","python","python-package","python-packages","terminal-based"],"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/HexagonCore.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}},"created_at":"2021-07-06T09:49:28.000Z","updated_at":"2024-05-02T14:53:52.000Z","dependencies_parsed_at":"2022-08-28T05:02:29.618Z","dependency_job_id":null,"html_url":"https://github.com/HexagonCore/input_num","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HexagonCore%2Finput_num","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HexagonCore%2Finput_num/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HexagonCore%2Finput_num/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HexagonCore%2Finput_num/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HexagonCore","download_url":"https://codeload.github.com/HexagonCore/input_num/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240142797,"owners_count":19754636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-number","number","number-input","numbers","only-numbers","python","python-package","python-packages","terminal-based"],"created_at":"2024-11-09T03:23:52.457Z","updated_at":"2025-02-22T07:50:36.454Z","avatar_url":"https://github.com/HexagonCore.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CodeFactor](https://www.codefactor.io/repository/github/hexagoncore/input_num/badge)](#/)\n[\u003cimg src=\"https://img.shields.io/github/license/HexagonCore/input_num\"\u003e](#/)\n[\u003cimg src=\"https://img.shields.io/github/stars/HexagonCore/input_num\"\u003e](#/)\n[\u003cimg src=\"https://img.shields.io/github/forks/HexagonCore/input_num\"\u003e](#/)\n[\u003cimg src=\"https://img.shields.io/github/issues/HexagonCore/input_num\"\u003e](#/)\n\n\n# input_num\nPython package - **input_num** is like input but it **only accepts numbers**\n___\n### ‎\n\n## Installation\n* ### Windows / macOS\n\tRun `python3 -m pip install input_num`\n\t\n* ### Linux\n\tRun `python3 -m pip install input_num`\n### ‎\n\n## Usage\n* ### Windows / macOS / Linux\n\tAdd this to your script: `import input_num` `input_num(\"Enter your age: \")`\n\t\n\t ‎\n    Command scheme: `input_num(\"Question: \", AllowNegativeNumbers, DoesPressingEnterReturnNothing)`\n\t\n\t ‎\n\t* First option:\n\t    If you want to allow only positive numbers (numbers WITHOUT **-** at the begining), use `input_num(\"Something\", False)`.\n\t    *False* just means **Allow negative numbers = False**\n\t    And it is **optional argument**\n\t    Default value is **True**\n\t\n\t* Second option:\n\t    There is also second option, does pressing enter return \"\" ? Set it to **False** to make pressing enter **ask you again**.\n\t    Example: `input_num(\"Try pressing enter: \", True, False)` - this allows negative numbers and disallows entering nothing.\n\t    It is **optional argument**\n\t    Default value is **True**\n\t\n\t ‎\n⚠️ **If you want to set only second option, set the first option too** ⚠️\n\t\n\n\tDo you want to be reminded to update the package?\n\tRun `input_num.allow_update()` RIGHT AFTER importing the package. \n\n### ‎\n\n## Uninstallation\n* ### Windows / macOS\n\tRun `python3 -m pip uninstall input_num`\n\t\n* ### Linux\n\tRun `python3 -m pip uninstall input_num`\n\n### ‎\n## FAQ\n* ### Question\n\tAnswer\n### ‎\n\n\nDo you like this? Hit that ⭐!                                \nUse the star button as way to show us, that it works              \nForks and pull requests are welcome of course\n \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexagoncore%2Finput_num","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexagoncore%2Finput_num","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexagoncore%2Finput_num/lists"}