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.52.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

supadef-0.0.52-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: supadef-0.0.52.tar.gz
  • Upload date:
  • Size: 10.8 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.52.tar.gz
Algorithm Hash digest
SHA256 7cd401d26c11330ed934db12b2731ecf4a93b6becf9ef3e9ac17afd0707264f5
MD5 996f987c6f9aa415cfed6bd19a776c66
BLAKE2b-256 49b1a783f28da31eb82b3df6d7fcbcc040879fe513802d5398526a19c91d834b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: supadef-0.0.52-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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.52-py3-none-any.whl
Algorithm Hash digest
SHA256 45075a3835104823581a9597db4262f64bf9245fce7e9708e5d75b17decb98fe
MD5 75defd2848effae252e58edd26a14171
BLAKE2b-256 40fb0209a5323a5ea898e9eaffafe1eba14bfe7e9646f46381e7a4746ed357e8

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