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:

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.1.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.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: torchbuilder-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0e6c6349778f231b64be95c7fc9434927f9e3ff4cede4488b77db7a01db7e764
MD5 2c3261ca85ccdd87d5c4fbd628c74b84
BLAKE2b-256 350a3140e9a038ad78ac58d51369678f161094e2a53fc2af53bb11d10b25608f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for torchbuilder-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f752bd11f25d77cd7c3b69f1cc39a069222c466751750a44f592589754ecb30
MD5 feb126d1ebb03d5a851d33867796f8bc
BLAKE2b-256 2bcdaab62e78f6da7afe77913051fba923081f7883ec59f076ce50fdc12ee962

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