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 5 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
      
    • List all public apps:

      deepchain apps --public
      
  • download :

    • Download locally an app deployed on deepchain hub
      deepchain download user.name@mail.com/AppName AppName
    

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.8.tar.gz (26.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.8-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deepchain-apps-0.1.8.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10

File hashes

Hashes for deepchain-apps-0.1.8.tar.gz
Algorithm Hash digest
SHA256 d98a3647bcee4a069cf5456f21e6ab6fe396bd777a6a5d5bd01ffb0d261e9d8f
MD5 4edebc1571b21c536da43ce300fffe9b
BLAKE2b-256 c82dda3ed7a6626d938714026af122a1642a03fcee5614fe57043d2bb1465fc2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deepchain_apps-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10

File hashes

Hashes for deepchain_apps-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3688b3af00d645c30fe6419ba22b194b16c74fd7464ed6316248b674c4bb775d
MD5 a3584a0426d5d26720bec1d815c53c8c
BLAKE2b-256 9fa0ea50770ccec1251d05e0167e9ea0f930997d781e831aa9e5f65aa2a011fc

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