Skip to main content

The Python SDK for the EV Cloud.

Project description

Daft Cloud SDK

Usage

# Initialize a project
ev init

# Run a workflow
ev run my_module.py

# Configure a profile e.g. staging with endpoint overrides
ev configure

Installation

The CLI is installed in the project's virtualenv. It can also be added to a project's pyproject.toml with ev-sdk = { path = "../ev-cloud/ev-sdk", editable = true }. You can also run CLI with uv via uv run ev <command>.

dependencies = [ "ev-sdk" ]

[tool.uv.sources]
ev-sdk = { path = "../ev-cloud/ev-sdk", editable = true }

Configuration

The configuration uses profiles and is located at ~/.ev/config.toml (or $EV_HOME/config.toml).

[default]
profile = "default"

[profiles.default]
endpoint_url = "https://api.daft.ai"
dashboard_url = "https://cloud.daft.ai"

[profiles.development]
endpoint_url = "http://localhost:3000"
dashboard_url = "http://localhost:3003"

[profiles.staging]
endpoint_url = "https://staging.api.daft.ai"
dashboard_url = "https://staging.cloud.daft.ai"

Configuration Fields

  • endpoint_url: API endpoint URL (defaults to https://api.daft.ai if not specified)
  • dashboard_url: Dashboard UI URL for run links (defaults to https://cloud.daft.ai if not specified)

Manual Configuration

While ev configure sets up profile configuration, you can manually edit your config file to:

  • Add custom endpoint_url and dashboard_url values for different environments
  • Create multiple profiles for testing, staging, and production
  • Switch between local development and hosted environments

Commands

# Interactive configuration wizard
ev configure

# Initialize project in current repository
ev init [--template TEMPLATE]

# Run python scripts on Daft Cloud
ev run script.py                    # Python file
ev run module                       # Python module
ev run module:function --key=value  # Function with args

# List resources
ev list projects

# Use specific profile
ev --profile work run script.py

Provider

The Daft Provider is a simple implementation of the Provider interface with a set of known implementations that are resolved against our control plane.

We can move this into open source post launch, but it doesn't make a difference.

Configuration

We inject these environment variables to trigger using the Daft Provider.

DAFT_PROVIDER="daft"
DAFT_PROVIDER_BASE_URL="https://...."
DAFT_PROVIDER_API_KEY="sk-..."
Stage Endpoint
Tilt n/a
Staging https://ai-eventual-provider-staging.onrender.com/
Production n/a

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ev_sdk-0.1.3.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

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

ev_sdk-0.1.3-py3-none-any.whl (50.4 kB view details)

Uploaded Python 3

File details

Details for the file ev_sdk-0.1.3.tar.gz.

File metadata

  • Download URL: ev_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 42.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for ev_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 34412b50d2b6e6348b23ee651c94a090022d826b24b6cb5173afd619d5f4acf5
MD5 3494e502c76d84f71dd176a20a8d42a4
BLAKE2b-256 2fda5285222f0e2e7148719d873f715bfb74e75636db5adb63c4e8349e8da9ef

See more details on using hashes here.

File details

Details for the file ev_sdk-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ev_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 50.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for ev_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3888098119cf5f99280382af86e3b9ac9fded0e57a15013319fb70940e16b7a3
MD5 3ac820d8f19ad399a99e7e9b1c23c3c5
BLAKE2b-256 52c62bac69ec2bd6491ccb87bd232122aeb0b05eef1d6f9aff344c67b8e6f43a

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