Package for easily deploying to Prefect Cloud.
Project description
prefect-cloud
:zap: Deploy your code on Prefect Cloud in seconds! :zap:
Deploy and run your Python functions on Prefect Cloud with a single command.
Installation
First, install uv if you haven't already. See installation docs here
curl -LsSf https://astral.sh/uv/install.sh | sh
Then install prefect-cloud:
uv pip install prefect-cloud
Alternatively, you can run prefect-cloud as a tool without installing it using uvx. See uv tools guide for more details.
Login to Prefect Cloud
prefect-cloud login
Deploy your workflow
Deploy any Python function from a GitHub repository. For example:
# https://github.com/PrefectHQ/prefect-cloud/blob/main/examples/hello.py
def hello_world():
print("Hello, World!")
Deploy and run it using:
prefect-cloud deploy hello_world --from https://github.com/PrefectHQ/prefect-cloud/blob/main/examples/hello.py --run
Options
Only Deploy
prefect-cloud deploy ...
Deploy and Run
prefect-cloud deploy ... --run --parameters name=value
Dependencies
# Package names
prefect-cloud deploy ... --with pandas --with numpy
# Or from files
prefect-cloud deploy ... --with requirements.txt
prefect-cloud deploy ... --with pyproject.toml
Environment Variables
prefect-cloud deploy ... --env KEY=VALUE --env KEY2=VALUE2
Private Repositories
prefect-cloud deploy ... --from https://github.com/myorg/private-repo/blob/main/flows.py --credentials GITHUB_TOKEN
Managing Deployments
List all deployments:
prefect-cloud ls
Run a deployment:
prefect-cloud run function_name/deployment_name
Schedule a deployment (using cron):
prefect-cloud schedule function_name/deployment_name "*/5 * * * *" # Run every 5 minutes
prefect-cloud schedule function_name/deployment_name none # Remove schedule
Format: minute hour day-of-month month day-of-week
Pause/Resume a deployment:
prefect-cloud pause function_name/deployment_name
prefect-cloud resume function_name/deployment_name
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prefect_cloud-0.1.0a3.tar.gz.
File metadata
- Download URL: prefect_cloud-0.1.0a3.tar.gz
- Upload date:
- Size: 84.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
055a4ca5900571bb53b3a52563a2ba92e8ba5aa443ac848849df6ea3c97cab68
|
|
| MD5 |
a0a64ba80eafd63d7f554cc91f26d88a
|
|
| BLAKE2b-256 |
40534b1b50414d01877f81133db441e7cbd9d7817e757cadbbfa2cbe35590d8c
|
File details
Details for the file prefect_cloud-0.1.0a3-py3-none-any.whl.
File metadata
- Download URL: prefect_cloud-0.1.0a3-py3-none-any.whl
- Upload date:
- Size: 36.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
871eadc410c0d31e6ef04a11a40600e00512658274f572efd3f4df69f69f47ae
|
|
| MD5 |
881736a47780cf980a45ad128f64c8fb
|
|
| BLAKE2b-256 |
c6b2d0d7a50a3e57866154a5e244403aba15c1491da41c4b03d836f93d72cf71
|