{"id":13501011,"url":"https://github.com/cassiobotaro/awesome-python-modules-as-script","last_synced_at":"2025-02-25T22:45:18.214Z","repository":{"id":41117508,"uuid":"63567117","full_name":"cassiobotaro/awesome-python-modules-as-script","owner":"cassiobotaro","description":":neckbeard: Catalogue of useful python modules that run as script.","archived":false,"fork":false,"pushed_at":"2023-10-03T19:54:05.000Z","size":61,"stargazers_count":159,"open_issues_count":1,"forks_count":15,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-05-22T18:07:16.181Z","etag":null,"topics":["catalogue","python-modules"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cassiobotaro.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}},"created_at":"2016-07-18T03:23:20.000Z","updated_at":"2024-05-08T22:23:20.000Z","dependencies_parsed_at":"2024-01-16T10:22:25.557Z","dependency_job_id":"860b4aed-3cc4-49cf-aa17-e8dc41b1ba88","html_url":"https://github.com/cassiobotaro/awesome-python-modules-as-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassiobotaro%2Fawesome-python-modules-as-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassiobotaro%2Fawesome-python-modules-as-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassiobotaro%2Fawesome-python-modules-as-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cassiobotaro%2Fawesome-python-modules-as-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cassiobotaro","download_url":"https://codeload.github.com/cassiobotaro/awesome-python-modules-as-script/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240531096,"owners_count":19816298,"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":["catalogue","python-modules"],"created_at":"2024-07-31T22:01:22.585Z","updated_at":"2025-02-25T22:45:18.146Z","avatar_url":"https://github.com/cassiobotaro.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# Awesome Python modules as script\n\nCatalogue of useful python modules that run as script.\n\n## Requirements:\n\n- Python 3\n\n## How to use?\n\nYou have to type: `python -m \u003cname\u003e`.\n\nYou can access help for some modules through: `python -m \u003cname\u003e --help` or `python -m \u003cname\u003e -h`.\n\n## Standard Library\n\n| Name             | Description                                        | Example                                         |\n| :--------------- | :------------------------------------------------- | :---------------------------------------------- |\n| __hello__        | Hello world!                                       | python -m __hello__                             |\n| ast              | Parse abstract syntax tree for a Python module     | python -m ast myfile.py                         |\n| asyncio          | Asyncio REPL                                       | python -m asyncio                               |\n| antigravity      | Open browser with http://xkcd.com/353              | python -m antigravity                           |\n| base64           | Encode and decode base64                           | echo 'message' \\| python -m base64 -e           |\n| cProfile         | Profiling your code                                | python -m cProfile module.py                    |\n| calendar         | Pretty print a calendar                            | python -m calendar                              |\n| code             | Closely emulate the interactive Python interpreter | python -m code                                  |\n| compileall       | Compile Python source files in a directory tree    | python -m compileall                            |\n| dis              | Print bytecode generated by a file                 | python -m dis some_module.py                    |\n| doctest          | Run doctests in a file                             | python -m doctest myfile.py                     |\n| encodings.rot_13 | ROT-13 encoder/decoder                             | echo 'message' \\| python -m encodings.rot_13    |\n| ensurepip        | Bootstrap pip if it was skipped or uninstalled     | python -m ensurepip                             |\n| filecmp          | Compare two directories content                    | python -m filecmp dir_a dir_b                   |\n| ftplib           | Simple ftp client                                  | python -m ftplib [host]                         |\n| gzip             | Compress and decompress files                      | python -m gzip [file]                           |\n| http.server      | Simple HTTP Server                                 | python -m http.server 5000                      |\n| idlelib          | Launch IDLE prompt                                 | python -m idlelib                               |\n| imaplib          | Like using curl to read email                      | python -m imaplib [imap4 host]                  |\n| inspect          | Inspect a object.                                  | python -m inspect \"collections:OrderedDict\"     |\n| json.tool        | Validate and pretty-print JSON                     | echo '{ 1.2:3.4}' \\| python -m json.tool        |\n| lib2to3          | Automated Python 2 to 3 code translation           | python -m lib2to3 -w [python file]              |\n| locale           | Show O.S Locale information                        | python -m locale                                |\n| mimetypes        | MIME type/extension database                       | python -m mimetypes -e application/json         |\n| pdb              | Automatic post-mortem debugging                    | python -m pdb myscript.py                       |\n| pickle           | Display contents of the pickle files               | python -m pickle [pickle files]                 |\n| pickletools      | Disassemble one or more pickle files               | python -m pickletools [pickle file]             |\n| pip              | Python package manager                             | python -m pip install requests                  |\n| platform         | Show current platform                              | python -m platform                              |\n| poplib           | List POP3 mailbox                                  | python -m poplib [server] [username] [password] |\n| profile          | Profiling your code                                | python -m profile some_module.py                |\n| pstats           | Print profiling statistics                         | python -m pstats [file generated by profile]    |\n| pyclbr           | Extract classes and methods from a module          | python -m pyclbr [module]                       |\n| pydoc            | Consult the documentation                          | python -m pydoc -b                              |\n| quopri           | Encode and decode MIME quoted-printable data       | echo 'message' \\| python -m quopri              |\n| runpy            | Run a Python module as a script                    | python -m runpy __hello__                       |\n| site             | List your current path                             | python -m site                                  |\n| sqlite3          | SQLite shell                                       | python -m sqlite3                               |\n| smtplib          | Send a mail message(to localhost)                  | python -m smtplib                               |\n| sysconfig        | Shows paths and Python internal variables          | python -m sysconfig                             |\n| tabnanny         | Check file for mixed tabs \u0026 spaces                 | python -m tabnanny [python file]                |\n| tarfile          | Read and write tar files                           | python -m tarfile -e myfile.tar                 |\n| telnetlib        | Telnet client                                      | python -m telnetlib towel.blinkenlights.nl      |\n| this             | Zen of python                                      | python -m this                                  |\n| timeit           | Measuring execution time of small code snippets    | python -m timeit 'sorted(range(100))'           |\n| tokenize         | Show how python tokenize a file                    | python -m tokenize some_module.py               |\n| turtledemo       | Educational demos for turtle module                | python -m turtledemo                            |\n| unittest         | Run tests using unittest                           | python -m unittest .                            |\n| uu               | Encode and decode uuencode files                   | echo 'message' \\| python -m uu                  |\n| uuid             | Generate a random UUID                             | python -m uuid                                  |\n| venv             | Create a virtual enviroment                        | python -m venv myproject                        |\n| webbrowser       | Open a web browser                                 | python -m webbrowser http://httpbin.org         |\n| zipapp           | Create an executable ZIP file from Python code     | python -m zipapp mydir -m \"module:main\"         |\n| zipfile          | Zip operations like create, test or extract        | python -m zipfile -e zipfile.zip target         |\n\n## Third party packages\n\nThey can be installed through: `python -m pip install [module name]`.\n\n| Name   | Description                       | Example                            |\n| :----- | :-------------------------------- | :--------------------------------- |\n| black  | The uncompromising code formatter | python -m black .                  |\n| flake8 | Tool For Style Guide Enforcement  | python -m flake8 path/to/code/     |\n| pytest | Run tests using pytest            | python -m pytest -s path/to/tests/ |\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcassiobotaro%2Fawesome-python-modules-as-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcassiobotaro%2Fawesome-python-modules-as-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcassiobotaro%2Fawesome-python-modules-as-script/lists"}