Skip to main content

MCP Server, Typer CLI and vscode tasks in one, provides an easy way to configure your own DevTools and python scripts in a project.

Project description

Toolit

MCP Server and Typer CLI in one, provides an easy way to configure your own DevTools in a project.

Installation

To get started with Toolit, install the package via pip:

pip install toolit

Usage

Add a folder called devtools to your project root. Create python modules, you decide the name, in this folder. Add the tool decorator to functions you want to expose as commands.

from toolit import tool
@tool
def my_command(to_print: str = "Hello, World!") -> None:
    """This is a command that can be run from the CLI."""
    print(to_print)

Toolit will automatically discover these modules and make them available as commands.

Now you can run your command from the command line:

toolit --help  # To see available commands
toolit my-command --to_print "Hello, Toolit!"  # To run your command

Create the VS code tasks.json file

You can automatically create a tasks.json file for Visual Studio Code to run your ToolIt commands directly from the editor. This is useful for integrating your development tools into your workflow.

To create the .vscode/tasks.json file, run the following command in your terminal:

python -m toolit.create_tasks_json

NOTE: THIS WILL OVERWRITE YOUR EXISTING .vscode/tasks.json FILE IF IT EXISTS!

Contributing

We welcome contributions to ToolIt! If you have ideas for new features, improvements, or bug fixes, please open an issue or submit a pull request on our GitHub repository. We appreciate your feedback and support in making ToolIt even better for the community.

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

toolit-0.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

toolit-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file toolit-0.1.0.tar.gz.

File metadata

  • Download URL: toolit-0.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for toolit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3766ce6cf5231f36c345ba01b832b15174c82662d376ff4cb266eafde19d3d21
MD5 49787ee03dff18e4b76e87ee082a08a8
BLAKE2b-256 a13edd2a53dbf4f713f71fb5901d03c88a643605badb1cf36d9aafde2240c193

See more details on using hashes here.

Provenance

The following attestation bundles were made for toolit-0.1.0.tar.gz:

Publisher: release.yaml on martinmoldrup/toolit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file toolit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: toolit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for toolit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edcaa0a449564b22765c6e23febe4296d667fa9e103adbd9dca078f73074af53
MD5 5138e0988818e2fa9e7d86dc1af188c0
BLAKE2b-256 c10df1f3d80ad1c8874f452a00c2bafce13ad60cb0ff28a6d838bf612cb7c0e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for toolit-0.1.0-py3-none-any.whl:

Publisher: release.yaml on martinmoldrup/toolit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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