Never gonna give you up!
Project description
toml_cfg_tool
Table of Contents
Prerequisites
Description
A tool to create toml and cfg files for use in python projects, it can also simultaneously update aspects that are common between the two files.
Features
Arguments
The tool accepts the following arguments:
--show
: Show the current configuration. (only shows the options that can be updated)--author
: Update the project author.--name
: Update the project name.--version
: Update the project version.--description
: Update the project description.--requires-python
: Update the required Python version.--license
: Update the project license.--workflow_files
: Add GitHub Actions workflow files, and scripts.--create-templates
: Create template setup.cfg and pyproject.toml files if they do not exist.--backup
: Backup existing configuration files before making changes.--dry-run
: Show changes without writing to files.
Examples
- Show the current configuration:
toml_cfg_tool --show
- Create template configuration files:
toml_cfg_tool --create-templates
- Create the workflow files:
toml_cfg_tool --workflow_files
- Show changes without writing to files:
toml_cfg_tool --dry-run --name "New Project Name" --author "New Project Author" --version "1.0.0" --description "New Project Description" --requires-python ">=3.6" --license "MIT"
- Update the project version:
pip install toml_cfg_tool
- Update the project name:
toml_cfg_tool --name "New Project Name"
- Update the project author and backup existing files:
toml_cfg_tool --author "New Project Author" --backup path/to/backups.bak
- Create template configuration files and workflow files while updating the project name, author, and version:
toml_cfg_tool --create-templates --workflow_files --name "New Project Name" --author "New Project Author" --version "1.0.0"
Screenshots
- Show the current configuration (only shows the options that can be updated):
- Create template configuration files:
- Create the CONTRIBUTING.md file:
- Update all available fields:
Installation and Setup
To install the tool, run the following command:
pip install toml_cfg_tool
To check if the tool is installed, run the following command:
pip show toml_cfg_tool
or
toml_cfg_tool --help
Run the application:
Any of the arguments can be used or excluded from the command below. The tool will only update the specified fields. - Use dry-run to see changes without writing to files - Use backup to backup existing files before making changes - Use create-templates to create template configuration files - Use workflow_files to create GitHub Actions workflow files
toml_cfg_tool --name "New Project Name" --author "New Project Author" --version "1.0.0" --description "New Project Description" --requires-python ">=3.6" --license "MIT"
Contributing
License
This project is licensed under the MIT License. You can find the full text of the license in the LICENSE file.
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 toml_cfg_tool-0.0.9.tar.gz
.
File metadata
- Download URL: toml_cfg_tool-0.0.9.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b6ef2be90f09fb5f398207b7a8ef3c050550d39ef5c5bdc47036cd1c65db22e |
|
MD5 | 0bf37c2b99a7d2bbe448a13e1ac8bec3 |
|
BLAKE2b-256 | 4696adc5184abfb6897836951cb4f10249b8af696c30eff4dbdec881be9cc8bb |
File details
Details for the file toml_cfg_tool-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: toml_cfg_tool-0.0.9-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f17a65f46bd8d266357e6f0835ebdd3aef9062ed936ccdaf9d1f43b46f38e499 |
|
MD5 | 135ec21f116164fa45aefe326ee45e0e |
|
BLAKE2b-256 | 7eb64cf31b32926a68d2aa14f93eefb36befeccd430f6aa3e8754e0b68922197 |