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
Metadata
Release files for torchbuilder 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| torchbuilder-1.0.3.tar.gz | 8.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torchbuilder-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / torchbuilder-1.0.3.tar.gz
| Download URL | torchbuilder-1.0.3.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fe6b8f269112c0e913f35a1122f59f899f325de32c6d2240f0cc03585cc749a
|
|
BLAKE2b-256 checksum How to use checksums |
204d6cd040d1fedd90180e347a4806dfb631c872f48ae9389a0b6f153cca00e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|
Release files / torchbuilder-1.0.3-py3-none-any.whl
| Download URL | torchbuilder-1.0.3-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d83e3b0deaada0816375424cd15e32cac3fb3b79c8789e607554450e6303ddd1
|
|
BLAKE2b-256 checksum How to use checksums |
280ecc6369b575dd9b89bb4a513f3840fdc4d61aebf749f6ee228cebd10103e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.3
|
Security for torchbuilder 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.