auto-py-input


Nameauto-py-input JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryInput autocompletion
upload_time2024-09-09 13:09:42
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## AutoPyInput

- For Windows
- Requires Python >= 3.10
- Autocomplete words while user input
- Use Tab or arrow keys to cycle through choices

## Usage

```
from autopyinput.word_complete import Wordcompleter
import autopyinput.utils as au

# Custom words
word_list = ['hello', 'world', 'word', 'hi']
wcompleter = Wordcompleter(word_list)
input_ = wcompleter.prompt(prompt_ = ">>")
```

```
# Clean up and use string
doc = '''
#hello world!
def main():
  print("hello world")
main()
'''

word_list = au.string_to_words(au.clean(doc))
wcompleter = Wordcompleter(word_list)
input_ = wcompleter.prompt(prompt_ = ">>")
```

```
# Clean up and use file data
doc = "example.txt"

word_list = au.file_to_words(doc)
wcompleter = Wordcompleter(word_list)
input_ = wcompleter.prompt(prompt_ = ">>")
```
Known issue: Displays nothing when the display is the same length as your terminal width, but input is saved so it is safe to click "Enter" and get input.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "auto-py-input",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Siddhanth_78 <siddhanth.lalgowdar@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a7/9d/7f82182b847f8283a5ce255d4a4ecd30a43ff0eb1ec1c33435a8aaab16a7/auto_py_input-0.0.1.tar.gz",
    "platform": null,
    "description": "## AutoPyInput\r\n\r\n- For Windows\r\n- Requires Python >= 3.10\r\n- Autocomplete words while user input\r\n- Use Tab or arrow keys to cycle through choices\r\n\r\n## Usage\r\n\r\n```\r\nfrom autopyinput.word_complete import Wordcompleter\r\nimport autopyinput.utils as au\r\n\r\n# Custom words\r\nword_list = ['hello', 'world', 'word', 'hi']\r\nwcompleter = Wordcompleter(word_list)\r\ninput_ = wcompleter.prompt(prompt_ = \">>\")\r\n```\r\n\r\n```\r\n# Clean up and use string\r\ndoc = '''\r\n#hello world!\r\ndef main():\r\n  print(\"hello world\")\r\nmain()\r\n'''\r\n\r\nword_list = au.string_to_words(au.clean(doc))\r\nwcompleter = Wordcompleter(word_list)\r\ninput_ = wcompleter.prompt(prompt_ = \">>\")\r\n```\r\n\r\n```\r\n# Clean up and use file data\r\ndoc = \"example.txt\"\r\n\r\nword_list = au.file_to_words(doc)\r\nwcompleter = Wordcompleter(word_list)\r\ninput_ = wcompleter.prompt(prompt_ = \">>\")\r\n```\r\nKnown issue: Displays nothing when the display is the same length as your terminal width, but input is saved so it is safe to click \"Enter\" and get input.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Input autocompletion",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/siddhanth78/autopyinput"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0d6294333ae4a40f5818a268319f96469f92e88381b113d0aac36d684cb335e",
                "md5": "6a96fe6b22052944d7ed05483b89634f",
                "sha256": "cf75da92e9aa7835467fb56838bd1da6f96c0a1af3f937336c1ef7eb8bdcce7d"
            },
            "downloads": -1,
            "filename": "auto_py_input-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6a96fe6b22052944d7ed05483b89634f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 4814,
            "upload_time": "2024-09-09T13:09:40",
            "upload_time_iso_8601": "2024-09-09T13:09:40.573409Z",
            "url": "https://files.pythonhosted.org/packages/f0/d6/294333ae4a40f5818a268319f96469f92e88381b113d0aac36d684cb335e/auto_py_input-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a79d7f82182b847f8283a5ce255d4a4ecd30a43ff0eb1ec1c33435a8aaab16a7",
                "md5": "3e937d351a6b4376f506113afa8ac22d",
                "sha256": "61f3a0b93e3bd7426ee9f109c0f89bb80f8841fb5d93b1f8e59372a5719f2ff6"
            },
            "downloads": -1,
            "filename": "auto_py_input-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "3e937d351a6b4376f506113afa8ac22d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 4330,
            "upload_time": "2024-09-09T13:09:42",
            "upload_time_iso_8601": "2024-09-09T13:09:42.253518Z",
            "url": "https://files.pythonhosted.org/packages/a7/9d/7f82182b847f8283a5ce255d4a4ecd30a43ff0eb1ec1c33435a8aaab16a7/auto_py_input-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-09 13:09:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "siddhanth78",
    "github_project": "autopyinput",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "auto-py-input"
}
        
Elapsed time: 0.59142s