{"id":15775861,"url":"https://github.com/agentender/enderinput","last_synced_at":"2025-03-31T14:43:41.283Z","repository":{"id":78800450,"uuid":"79520933","full_name":"AgentEnder/EnderInput","owner":"AgentEnder","description":"A python input module created I created to speed up coursework.","archived":false,"fork":false,"pushed_at":"2017-01-20T03:43:44.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-11T17:08:49.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/AgentEnder.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}},"created_at":"2017-01-20T03:20:30.000Z","updated_at":"2017-01-20T03:22:10.000Z","dependencies_parsed_at":"2023-07-12T13:30:16.493Z","dependency_job_id":null,"html_url":"https://github.com/AgentEnder/EnderInput","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"021a80de86549eb8049ee0b4bb01df57b7b743ea"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentEnder%2FEnderInput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentEnder%2FEnderInput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentEnder%2FEnderInput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgentEnder%2FEnderInput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AgentEnder","download_url":"https://codeload.github.com/AgentEnder/EnderInput/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246484467,"owners_count":20785093,"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":[],"created_at":"2024-10-04T17:03:17.406Z","updated_at":"2025-03-31T14:43:41.261Z","avatar_url":"https://github.com/AgentEnder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# enderInput\n\nenderInput is a python module I created to aid in the gathering of information for my Intro to CS Class. The module allows custom prompts, and does not use eval, which was taught heavily in the class. Instead, I use proper casting to prevent security holes in and application which uses the module.\n\n## Installation\n\nInstallation is as simple as downloading the .py file, and moving it to the folder that contains the file you are working on.\n\n## Usage\n\nAny file which wants to use the methods should have \"include enderInput\" in the first couple of lines.\n\nEach method should be used as an assignment to work propery, e.g. x = enderInput.getInt()\n\nenderInput.getInt(min, max, prompt):\n  getInt takes 3 arguments, all of which are optional.\n  min defaults to zero, so if you expect negative numbers, you should set this.\n  max defaults to false. If you want to cap the numbers that will be accepted, you should set this.\n  prompt is set to a default prompt. This should be set to a custom prompt most times.\n\nenderInput.getListInt(prompt):\n  getListInt takes 1 argument, a prompt.\n  getListInt returns a list, which is created by spliting the input at each comma, and casting it to an int.\n  This method is not type-safe yet, and may fail if given unexpected data. This will come in the future.\n \nenderInput.getFloat(min, max, prompt):\n  see getInt as this is pretty much the same, except it casts to a float instead.\n  \n enderInput.getString(prompt):\n  getString accepts 1 argument, and this sets the prompt.\n  this method accepts \"exit\" as valid input, and will close the program should it be entered.\n\n enderInput.getChar(prompt):\n  getChar accepts 1 argument, and this sets the prompt.\n  getChar returns a character, and if given a string will return only the first character\n  this method accepts \"exit\" as valid input, and will close the program should it be entered.\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## History\n\nTODO: Write history\n\n## Credits\n\nProgramming: Me\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentender%2Fenderinput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentender%2Fenderinput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentender%2Fenderinput/lists"}