Skip to main content

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

torchbuilder-1.0.3.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

torchbuilder-1.0.3-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file torchbuilder-1.0.3.tar.gz.

File metadata

  • Download URL: torchbuilder-1.0.3.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for torchbuilder-1.0.3.tar.gz
Algorithm Hash digest
SHA256 5fe6b8f269112c0e913f35a1122f59f899f325de32c6d2240f0cc03585cc749a
MD5 65184c3c2d6527f80572760c0b06cd9d
BLAKE2b-256 204d6cd040d1fedd90180e347a4806dfb631c872f48ae9389a0b6f153cca00e7

See more details on using hashes here.

File details

Details for the file torchbuilder-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for torchbuilder-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d83e3b0deaada0816375424cd15e32cac3fb3b79c8789e607554450e6303ddd1
MD5 da2204e7e8a3cbd6b52ec785b41dff8a
BLAKE2b-256 280ecc6369b575dd9b89bb4a513f3840fdc4d61aebf749f6ee228cebd10103e2

See more details on using hashes here.

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