Skip to main content

Official command-line interface for supadef ⚡️

Project description

Supadef PyPi Package / CLI

Overview

The supadef python package lets you define how your Python functions run in the cloud using decorators like @task.

The supadef CLI tool allows you to interact with the Supadef platform. You can use it to manage projects, functions, and deployments.

Commands

supadef connect
  • Make a test connection with the platform. Verifies that your auth credentials saved at ~/.supadef/credentials.yml are configured correctly. Returns the email of the authenticated user.
supadef create [project]
  • Create a new project with the given name in your account. Project names must be unique across all Supadef projects.
supadef projects
  • List the projects in your account. Includes information on your project's deployment state.
supadef push [project] [path/to/code_dir]
  • Push the source code you specify to the cloud. Appropriately configured functions will be available to run on demand in the cloud. Source code directory must be a git repo. Anything in .gitignore will not be uploaded.
supadef run [project] 'your_function' '{ "arg1":  "drums", "arg2": [1, 2, 3, 4] }' [version]
  • Run a function in the cloud. [version] will soon be optional, or removed, to simplify the interface. Returns a task_id, for use with getting logs.
supadef logs [project] [task_id]
  • Get the logs for a particular function run.
supadef set_env [project] [~/path/to/.env]
  • Securely upload an environment file (.env) to your project
supadef destroy [project]
  • Destroy a project and all resources associated with it.

Distribution

PyPI Package: https://pypi.org/project/supadef/

Github Repo: https://github.com/supadef/cli

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

supadef-0.0.63.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

supadef-0.0.63-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file supadef-0.0.63.tar.gz.

File metadata

  • Download URL: supadef-0.0.63.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for supadef-0.0.63.tar.gz
Algorithm Hash digest
SHA256 31eecaaa1552f21bb8ebac3b3ad4c30cbb7dfa6bfa76b236cc1032b20e33b01d
MD5 41bc1edec76bef991fb9e9ccc9b94459
BLAKE2b-256 2031de74bb8ff53f4e62cd73cf3e1c89d9593d65efb103326336fb4bd008e82d

See more details on using hashes here.

File details

Details for the file supadef-0.0.63-py3-none-any.whl.

File metadata

  • Download URL: supadef-0.0.63-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for supadef-0.0.63-py3-none-any.whl
Algorithm Hash digest
SHA256 bf1189ec7effefb10930e0bde71c81c320e157b3909d8af601918049cbec1451
MD5 a77fd31a95023df15ec52c96d9527aa9
BLAKE2b-256 b652174edd0f543d6e9ecfbf4a18df4469b353fca0d323c1d03e30e5d9e40eed

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