Skip to main content

Define a personnal app to deploy on DeepChain.bio

Project description

PyPI License Python 3.7 Code style: black Dependencies

Table of contents

deepchain-apps package documentation

This Package provide a cli for creating a personnal app to deploy on the DeepChain platform. More informations on app To leverage the apps capability, take a look at the bio-transformers and bio-datasets package, which provide functionnality to download biological dataset and easily use pre-trained transformers.

1. Installation

It is recommended to work with conda environnements in order to manage the specific dependencies of the package.

  conda create --name deepchain-env python=3.7 -y
  conda activate deepchain-env
  pip install deepchain-apps

2. CLI commands

The CLI provides 4 main commands:

  • login : you need to supply the token provide on the plateform (PAT: personnal access token).

    deepchain login
    
  • create : create a folder with a template app file

    deepchain create my_application
    
  • deploy : the code and checkpoint are deployed on the plateform, you can select your app in the interface on the plateform.

    • with checkpoint upload

      deepchain deploy my_application --checkpoint
      
    • Only the code

      deepchain deploy my_application
      
  • apps :

    • Get info on all local/upload apps

      deepchain apps --infos
      
    • Remove all local apps (files & config):

      deepchain apps --reset
      
    • Remove a specific application (files & config):

      deepchain apps --delete my_application
      

How generate token to login deepchain?

If you want to deploy biology app on deepchain, you should first create a personal account on deepchain and go to the user profile section. As you can see below, you will be able to generate a PAT (personal access token) that you can use with the CLI command:

deepchain login

3. Getting started with App

.
├── README.md # explain how to create an app
├── __init__.py # __init__ file to create python module
├── checkpoint
│   ├── __init__.py
│   └── Optionnal : model.pt # optional: model to be used in app must be placed there
├── examples
│   ├── app_with_checkpoint.py # example: app example with checkpoint   └── torch_classifier.py # example: show how to train a neural network with pre-trained embeddings
└── src
    ├── DESC.md # Desciption file of the application
    ├── __init__.py
    ├── app.py # main application script. Main class must be named App.
    └── tags.json # file to register the tags on the hub.

License

This source code is licensed under the Apache 2 license found in the LICENSE file in the root directory.

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

deepchain-apps-0.1.5.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

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

deepchain_apps-0.1.5-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file deepchain-apps-0.1.5.tar.gz.

File metadata

  • Download URL: deepchain-apps-0.1.5.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for deepchain-apps-0.1.5.tar.gz
Algorithm Hash digest
SHA256 31d15b3411ad83e0e8434fbd7e81de35a7291fc3282645de9fd0813cfad86519
MD5 584531c340d2c5a719d166359c841cc9
BLAKE2b-256 d0d9a2f92789067b2d39123bf2e5da81fb7875f5c8d58c1ba14646b69d442ec1

See more details on using hashes here.

File details

Details for the file deepchain_apps-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: deepchain_apps-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for deepchain_apps-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 476d95caac0aa04d6e9ff1a0ce30ba5bc081f9278bd8f950bbd10180eefa9a4f
MD5 3cd4322651cb93f0397f479847a74802
BLAKE2b-256 33308b0b861398fc48b40537006bf4fe3fbf68063e45bca2fcd515a217a798c2

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