A tool for generating boilerplate for creating command-line tools
Project description
Tipytools
Tipytools is a Python library that simplifies the development of command-line tools by providing a collection of command-line tool templates and utilities. It offers features such as project setup, template-based file generation, logging, and integration with the fire library for creating user-friendly command-line interfaces.
Features
- Project setup made easy: Use the
setup
command to quickly set up your project by initializing the environment and generating the project structure for your command-line tool. - Template-based project structure: Tipytools provides a standardized project structure including essential files like README.md, setup.py, and template files for your tool's implementation.
- Logging utility: The library includes a logging module that allows easy printing of information, warnings, errors, and success messages with customizable colors.
- Cross-platform compatibility: Tipytools is designed to work seamlessly on Windows, Linux, and macOS, ensuring compatibility across different platforms.
- Integration with fire library: Tipytools integrates with the fire library to provide a user-friendly and intuitive command-line interface for your generated tools.
- Optional virtual environment: If you want to set up the project without a virtual environment, you can use the
maketool
command to generate only the folder structure without creating a virtual environment.
Folder Structure
The folder structure for Tipytools is as follows:
Tipytools/
├── package_test/
│ └── test.py
├── [tool_name]/
│ ├── init.py
│ ├── [tool_name].py
│ └── logger.py
├── README.md
└── setup.py
Installation:
pip install tipytool
You can install Tipytools directly from the GitHub repository:
pip install git+https://github.com/tipytools/tipytools.git
Usage
- Set up your project:
- To create a virtual environment and generate the project structure, run the
setup
command and specify the tool name and optional virtual environment name. - Example:
tipy setup tool=[toolname] [optional: env=[venvname]]
- To generate only the folder structure without a virtual environment, run the
maketool
command and specify the tool name. - Example:
tipy maketool [toolname]
- To create a virtual environment and generate the project structure, run the
- Implement your tool's logic within the generated files and customize as needed.
- Run your tool from the command line: Use the tool name followed by the desired command and arguments.
- Example:
[toolname] [command] [arguments]
- Example:
During the project setup, Tipytools will initialize the environment by creating a virtual environment using the specified name (or a default name derived from the tool name). It will then generate the project structure, including the necessary files and directories. After the setup is complete, you can start implementing your tool's functionality within the provided template files.
Please refer to the documentation available in the repository for more detailed information, usage examples, and customization options.
Contributions, bug reports, and feature requests are welcome! Feel free to submit issues and pull requests on GitHub to help improve Tipytools.
- version: 1.0.0
- author: Mauly dotDev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tipytool-1.0.3.tar.gz
.
File metadata
- Download URL: tipytool-1.0.3.tar.gz
- Upload date:
- Size: 56.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9224ee23027bdc7936ff81168508e1ea989965d38a18dc66669b9e9c4fb5bbd |
|
MD5 | 28e624a796d6493af4dd65500692af3b |
|
BLAKE2b-256 | e2ccc9190b2cb9915733e67d9299d4e8394394a1945e646f36ebc25b3d1f6477 |
File details
Details for the file tipytool-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: tipytool-1.0.3-py3-none-any.whl
- Upload date:
- Size: 112.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91f77d5504bbde672be90f3c9df7d885971c89b8ba783a07abfea64cb3d4ee79 |
|
MD5 | fa7426208965e2e652053e53c412b4a5 |
|
BLAKE2b-256 | bbbc2d88aaba331a99779deccea625dbe5b13517a0bc1256d926a4657556e9dd |