Skip to main content

A convenient CLI for managing multiple Prefect accounts.

Project description

prefect-manager

Overview

This is a CLI tool that allows to switch between multiple Prefect accounts with little effort. It is a personal project of mine that I use to switch between a work Prefect account and a Prefect account I use for my own personal projects.

This is not a tool meant to support large teams with many agents running (although it definitely could.)

All the files used by this tool can be found in ~/.prefect-manager.

If you haven't check out Prefect it is an amazing tool for orchestrating data and ML pipelines. I would highly recommend checking it out!

Installation

pip install prefect-cloud-manager

Usage

The CLI has a few basic commands

Help

To see the command options simply type:
prefect-manager

Add Account

To add a new account and its access key:
prefect-manager add-account

Then you will be prompted to enter the correct information

List Accounts

To see all of the available accounts:
prefect-manager list-accounts

Activate Account

To activate an account you have added:
prefect-manager activate {ACCOUNT_NAME}

Add New Configuration

There are a lot of possible options in the config.toml file that prefect uses. You are able to track multiple configurations if you want to use different settings with different accounts. For more information on this see the Prefect documentation

To add an existing config to the tracked configs:
prefect-manager add-configs {CONFIG_NAME} {PATH_TO_CONFIG}

List Tracked Config Files

To see all the configs you have saved:
prefect-manager list-configs

Edit Config

To edit a config you already have using nano:
prefect-manager edit-config

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

prefect-cloud-manager-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

prefect_cloud_manager-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file prefect-cloud-manager-0.1.1.tar.gz.

File metadata

  • Download URL: prefect-cloud-manager-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for prefect-cloud-manager-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0a34de7dc6f47f0399fe0b302397b16e619e37d8db95de963dfc51ee08bfba69
MD5 2783cc746e165aa5d3e5528a742b8b54
BLAKE2b-256 c8e22b3f86231f69bc2b35f035a2d1e7d6b73d96c04847025a24492854bae6bd

See more details on using hashes here.

File details

Details for the file prefect_cloud_manager-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: prefect_cloud_manager-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for prefect_cloud_manager-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 24d3f33ed69b3ecc9237501e9e8809f12c18a307365758a55ff4487183a5babe
MD5 581d0795eb7e269bdd42006ee7615f4a
BLAKE2b-256 39532f58a2f03460185ce2a37c394d438960d9e5be96013547fea68df5f61b1a

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