Skip to main content

A CLI-based python package that provides a suite of functionalities to perform end-to-end ML using PyTorch.

Project description

TorchBlaze

TorchBlaze

Link to Documentation

A CLI-based python package that provides a suite of functionalities to perform end-to-end ML using PyTorch.

The following are the set of functionalities provided by the tool:


  • Flask-API Template: Set up the basic PyTorch project sturcture and an easily tweakable flask-RESTful API with a single CLI command. Deploying your ML models has never been so easy.

  • Test ML API: Once you have set up your API, test all the API end-points to ensure you get the expected results before pushing your API to deployment.

  • Dockerizing: A simplified, single-command, easy dockerization for your ML API.

  • ML Model Test Suite: The package comes with a built-in test suite that evaluates your PyTorch models over a set of tests to look for any errors that otherwise might not be traceable easily.

Here are the available list of commands:


  • Setting-up the Template Project:
foo@bar:~$ torchblaze generate_template --project_name example
  • Building Docker Image (Requires Docker Installed):

First cd to the root project directory containing app.py file.

foo@bar:~$ torchblaze generate_docker --image_name example_image
  • Run Docker Image (Requires Docker Installed):
foo@bar:~$ torchblaze run_docker --image_name example
  • Performing API Tests:

First cd to the root project directory containing app.py file.

foo@bar:~$ torchblaze api_tests
  • Performing Model Testing:

Import the mltests package

import torchblaze.mltests as mls

Then use the variety of testing methods available in the mltests package. Run the following command to get the list of available methods.

dir(mls)

To check the documentation for any of the available tests, use the help method:

help(mls.<method_name>)

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

torchblaze-1.0.2.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

torchblaze-1.0.2-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file torchblaze-1.0.2.tar.gz.

File metadata

  • Download URL: torchblaze-1.0.2.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for torchblaze-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4f15e139ed66e5fc7e68cdc23b119144d076e6d12252c5335e137ae0f62711b9
MD5 f7c3803231a78d49d104dfde99d4db98
BLAKE2b-256 44576243a7dca3f43fb19a939199fdcd3a44029f5562697c1499898dd07fc766

See more details on using hashes here.

File details

Details for the file torchblaze-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: torchblaze-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1

File hashes

Hashes for torchblaze-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1492bd337135e80238674dcb9268d404648a05e6e4863a8d21e8fec84061a542
MD5 99c05e3f7e3a1a99c49ffc05a807a767
BLAKE2b-256 8ab17b8def89efe10554d3bcc36292f1908f5491a44fd37cc80ac5cebc2072be

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page