Skip to main content

Python command line application framework

Project description

Command Line Tools with... ease.

Introduction

Termkit is a Python framework designed for building command line interface applications using functions and type hints [PEP 484]. Solely written using Python Standard Library and will always be to ensure minimal dependency footprint within your project.

Features

  • Build CLI Tools from functional code
  • Create fast prototypes using implicit arguments
  • Compatible with argcomplete for autocompletion

Usage

To get started, follow these steps:

1. Install Termkit using pip

$ pip install termkit

2. Test it with given example

# app.py
from termkit import Termkit

app = Termkit()

@app.command()
def greet(name, count=2):
    for _ in range(count):
        print(name)

if __name__ == "__main__":
    app()
$ python3 ./app.py "Hello Termkit" --count 3
Hello Termkit
Hello Termkit
Hello Termkit

Work in Progress Disclaimer

🛠️ Please Note: This documentation is a work in progress. 🛠️

Termkit is constantly evolving, and we are actively working on expanding and improving this documentation. Some sections may be incomplete or subject to change. We appreciate your patience and understanding as we continue to enhance this resource.

If you have any questions or encounter any issues while using Termkit, please feel free to reach me at contact@tmahe.dev.

Thank you for being a part of Termkit journey! 🌟

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

termkit-0.3.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

termkit-0.3.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file termkit-0.3.0.tar.gz.

File metadata

  • Download URL: termkit-0.3.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.12.3 Linux/6.17.0-14-generic

File hashes

Hashes for termkit-0.3.0.tar.gz
Algorithm Hash digest
SHA256 20536f50c1c41c3bbf8a59e6c4c54bcde806ec0e86f8ee6f27607119094114fa
MD5 61486e6c5974d20e68f489935f3cb5c6
BLAKE2b-256 a68db5f0f2f4c35d122701c934703304b5f6124e4f2c279698ac61a1f23b8b82

See more details on using hashes here.

File details

Details for the file termkit-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: termkit-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.12.3 Linux/6.17.0-14-generic

File hashes

Hashes for termkit-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5675df4d210854d49d7aea263867f8dec3c8312cbc2d2e0a2582bb0905b29297
MD5 67be2521c2057fd92de1ef2c3c14d1d9
BLAKE2b-256 24c3f8c5cb24326e18f0f6a809802c749999e18b2e0e724f0f6f01fbad3c9e93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page