Easily build project templates
Project description
TorchBuilder
TorchBuilder is an easy-to-use tool designed to start project faster by writing all boilerplate code for you. In fact, you can create your own template or download existing template and simply initialize them in a new project with a single command.
The mission
Make the structuring process of project faster, easier and more organized. This way, organizations can all have the same template and improve consistency across projects. On the other hand, a single researcher or student can design its own template personalized to its needs and use it across all its projects in a single command. The installation includes a default template that I believe is great for most projects, so you do not have to create your own template.
How to use
Installation
UV
This is the recommended way to install TorchBuilder. You need to have UV installed first on your system. If you do not have it, I highly recommend you to install it, as it is a great tool to manage python projects:)
uv tool install torchbuilder
Pipx
This is an alternative to UV for people who prefer to use pipx. It is also a great tool to manage python tools.
pipx install torchbuilder
Pip
It is not recommended to install TorchBuilder with pip globally on your system without using a virtual environment. Having to activate a virtual environment every time you want to use TorchBuilder can be tedious. This is why it is not recommended to install TorchBuilder using pip. However, if you want to install TorchBuilder globally, you can do so with the following command:
pip install torchbuilder
Creating a project
It is as simple as:
torchbuilder new <project_name>
If you have multiple templates and want to use a specific one, you can specify it with the --tempplate option:
torchbuilder new <project_name> --template=<template_name>
For more information, run the help command:
torchbuilder new --help
Installing a template
You can create your own template in a folder. Make a .gitignore file in the root of the tempalte and those files will be ignored when you create a new project with this template. You can also upload your template on github and install it from a remote location.
torchbuilder install <path_or_git_url>
Local file example:
<<<<<<< HEAD
torchbuilder install /path/to/my/template
Remote git example:
torchbuilder install git+https://github.com/anthol42/tb-template_functional.git
Updating a template
If you have installed a template from a remote location, you can update it with the following command:
torchbuilder update <template_name>
Otherwise, you can update it with the following command:
torchbuilder update <template_name> <path_to_template>
Listing installed templates
You can list all installed templates with the following command:
torchbuilder ls
Removing a template
You can remove a template with the following command:
torchbuilder remove <template_name>
Additional help
For all available commands and options, you can add the --help flag to any command. For example:
torchbuilder install --help
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file torchbuilder-1.0.2.tar.gz.
File metadata
- Download URL: torchbuilder-1.0.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ebaacb4bf069876c17cca13f5f6ffce323821ed47c630dc4a8cb3d037b099ff
|
|
| MD5 |
f87bf0bbd61b3184dd8206d785315adc
|
|
| BLAKE2b-256 |
02f184ebf062070922c33eba6594831e58fa8fffaaff85bc6f5be9547682ae5b
|
File details
Details for the file torchbuilder-1.0.2-py3-none-any.whl.
File metadata
- Download URL: torchbuilder-1.0.2-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b36289dcf5315b23176c57f6eb9a7add8a15f6e68eb7b4132afff318dd092ab7
|
|
| MD5 |
0d0c6bab2a936d7a4dde0970eb82c913
|
|
| BLAKE2b-256 |
c0b4410be3580bbd699f00bc321f6eccf9f7153221a57169143ac323713342c2
|