{"id":34029697,"url":"https://github.com/caizhengxin/interact-cli","last_synced_at":"2026-03-17T22:38:41.716Z","repository":{"id":62571236,"uuid":"227627372","full_name":"caizhengxin/interact-cli","owner":"caizhengxin","description":"Interact cli","archived":false,"fork":false,"pushed_at":"2020-01-17T06:42:17.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T06:29:15.862Z","etag":null,"topics":["cli","command-line-tool","interact","interact-cli","interact-input","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caizhengxin.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","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":"2019-12-12T14:37:09.000Z","updated_at":"2024-07-11T10:54:55.000Z","dependencies_parsed_at":"2022-11-03T18:26:07.865Z","dependency_job_id":null,"html_url":"https://github.com/caizhengxin/interact-cli","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/caizhengxin/interact-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caizhengxin%2Finteract-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caizhengxin%2Finteract-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caizhengxin%2Finteract-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caizhengxin%2Finteract-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caizhengxin","download_url":"https://codeload.github.com/caizhengxin/interact-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caizhengxin%2Finteract-cli/sbom","scorecard":{"id":262306,"data":{"date":"2025-08-11","repo":{"name":"github.com/caizhengxin/interact-cli","commit":"712f840d63894d6ef63f180ed6a7b2da08dc428d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T11:06:38.936Z","repository_id":62571236,"created_at":"2025-08-17T11:06:38.936Z","updated_at":"2025-08-17T11:06:38.936Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30633522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","response_time":56,"last_error":"SSL_read: 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":["cli","command-line-tool","interact","interact-cli","interact-input","python"],"created_at":"2025-12-13T17:49:35.146Z","updated_at":"2026-03-17T22:38:41.708Z","avatar_url":"https://github.com/caizhengxin.png","language":"Python","readme":"============\nInteract cli\n============\n\n.. image:: https://img.shields.io/pypi/v/interact-cli.svg?branch=master\u0026color=blue\n        :target: https://pypi.python.org/pypi/interact-cli\n        :alt: PyPI\n\n.. image:: https://img.shields.io/pypi/pyversions/interact-cli.svg?branch=master\u0026color=blue\n        :target: https://pypi.python.org/pypi/interact-cli\n\n.. image:: https://img.shields.io/pypi/dm/interact-cli.svg?branch=master\u0026color=blue\n        :target: https://pypi.python.org/pypi/interact-cli\n\n.. image:: https://api.travis-ci.com/caizhengxin/interact-cli.svg?branch=master\u0026color=blue\n        :target: https://travis-ci.org/caizhengxin/interact-cli/?branch=master\n\n.. image:: https://readthedocs.org/projects/interact-cli/badge/?version=latest\n        :target: https://interact-cli.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n.. image:: https://img.shields.io/github/languages/code-size/caizhengxin/interact-cli.svg?branch=master\n        :target: https://github.com/caizhengxin/interact-cli\n\n.. image:: https://img.shields.io/pypi/l/interact-cli.svg\n        :target: https://github.com/caizhengxin/interact-cli/blob/master/LICENSE\n\nInteractive command line tool.\n\n* Github repo: https://github.com/caizhengxin/interact-cli\n* Documentation: https://interact-cli.readthedocs.io\n* Free software: BSD\n\nFeatures\n--------\n\n* Interact input\n* Supports multiple data types\n* Support input check\n* Support regex, see network.json_\n\nSupport type\n------------\n\n* boolean\n* string\n* int\n* float\n* list\n* choice\n* mac\n* ipv4\n* cidr, eg: ``192.168.1.1/24``\n* hex\n\nInstallation\n------------\n\nTo install interact-cli, run this command in your terminal:\n\n.. code-block:: console\n\n    $ pip3 install interact-cli\n\nor:\n\n.. code-block:: console\n\n    $ git clone https://github.com/caizhengxin/interact-cli.git\n    $ cd interact-cli\n    $ pip3 install -e .\n\nUsage\n-----\n\nSee interact.json_\n\nstring:\n\n.. code:: python\n\n    from interact import interacts\n\n\n    config = {\n        \"name\": {\n            \"type\": \"string\",\n            \"default\": \"jankinca\",\n            \"max_length\": 10,\n            \"min_length\": 1,\n            \"description\": \"Your name\"\n        }\n    }\n\n\n    if __name__ == \"__main__\":\n        \"\"\"\n        Your name [jankinca]: sssssssssssss\n        Error: Invalided `sssssssssssss`\n        Your name [jankinca]: jankincai\n        \"\"\"\n\n        print(interacts(config).name)\n\nregex:\n\n.. code:: python\n\n    from interact import interacts\n\n\n    config = {\n        \"ipv4\": {\n            \"type\": \"string\",\n            \"regex\": r\"^\\d{1,3}.\\d{1,3}.\\d{1,3}.\\d{1,3}$\",\n            \"default\": \"192.168.166.12\",\n            \"description\": \"IPv4 address\"\n        }\n    }\n\n\n    if __name__ == \"__main__\":\n        \"\"\"\n        IPv4 address [192.168.166.12]: 22\n        Error: Invalided `22`\n        IPv4 address [192.168.166.12]: 192.168.166.2\n        \"\"\"\n\n        print(interacts(config).ipv4)\n\nwhen:\n\n.. code:: python\n\n    from interact import interacts\n\n\n    config = {\n        \"use_code_hosting\": {\n            \"type\": \"boolean\",\n            \"default\": True,\n            \"description\": \"Use code hosting platform\"\n        },\n        \"code_hosting\": {\n            \"type\": \"choice\",\n            \"default\": 1,\n            \"choice\": [\n                \"github\",\n                \"gitee\",\n                \"gitlab\"\n            ],\n            \"description\": \"Code hosting\",\n            \"when\": \"use_code_hosting == true\"\n        },\n        \"code_hosting_username\": {\n            \"type\": \"string\",\n            \"default\": \"jankincai\",\n            \"description\": \"Your code hosting username\",\n            \"when\": \"use_code_hosting == true\"\n        }\n    }\n\n\n    if __name__ == \"__main__\":\n        \"\"\"\n        Use code hosting platform [y]: y\n        Select code hosting:\n        1 - github\n        2 - gitee\n        3 - gitlab\n        Choose from [1]:\n        Your code hosting username [jankincai]: jankincai\n\n        {'use_code_hosting': True, 'code_hosting': 'github', 'code_hosting_username': 'jankincai'}\n        \"\"\"\n\n        \"\"\"\n        Use code hosting platform [y]: n\n        {'use_code_hosting': False, 'code_hosting': None, 'code_hosting_username': None}\n        \"\"\"\n\n        print(interacts(config).get_interact_data())\n\nSee demo_\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the `caizhengxin/cookiecutter-package`_ project template.\n\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`caizhengxin/cookiecutter-package`: https://github.com/caizhengxin/cookiecutter-package\n.. _demo: ./demo\n.. _interact.json: ./demo/interact.json\n.. _network.json: ./demo/network.json\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaizhengxin%2Finteract-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaizhengxin%2Finteract-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaizhengxin%2Finteract-cli/lists"}