Skip to main content

acme-portal-sdk

Important: This SDK is currently in alpha and primarily for demonstration purposes. APIs may still change frequently.

SDK to provide data and actions for acme-portal VSCode extension.

Rather than embedding a pre-defined logic in acme-portal extension, the SDK allows to define sources of data and behaviour for extension functionality. As such, the extension servers as UI layer to the implementation provided by SDK objects.

AI wiki

Problem

A repeatable source of pain while working on software is that deployment processes are highly specific to a given project. While the application may be written in a well known language or framework, the deployment process is usually specialized to a given application, team and company making it difficult for new and existing team members to understand how to just "ship" their code.

acme-portal and acme-portal-sdk attempt to address that problem by proposing a standard UI & workflow of deploying a python application. However, rather than dictating an exact deployment implementation, the two packages jointly define only high level deployment concepts and allow users to customize the implementation.

In a way, they attempt to make the deployment process as frictionless and intuitive as possible, without simplifying the deployment to a restrained set of practices.

acme-portal-sdk contains abstract interfaces expected by the VSCode acme-portal extension. It also contains a specific implementation for a python application based on the prefect orchestration library. Users of the SDK can easily extend the abstract interfaces to their projects. Some standard implementation schemes like one based on e.g. airflow can be made part of SDK in the future.

Concepts

To the end of clarifying deployment process, the SDK defines the following concepts:

  • Flow - (often named in various frameworks as Workflow / Job / DAG) is a unit of work in an application. It can also be though of as an executable script or entrypoint. A Flow can have sub-elements like Steps / Tasks / Nodes, but those are not tracked by the SDK. Flows form a basis of what unit of computation is deployed. In this way an application is composed of multiple related Flows maintained by the team, with a desire to deploy them independently of each other.
  • Deployment - is a piece of configuration defined in an execution environment (e.g. Prefect/Airflow Server, a remote server, some AWS Resources) that defines how to run a unit of work (a Flow). Deployment is then capable of orchestrating physical resources (by e.g. submitting requests, having execute permissions) and generally use environment resources to perform computation.
  • Environment - (sometimes called Namespace, Version, Label) is a persistent identifier of an application version run in a given Deployment. Popular Environment names used are dev, tst, uat, prod. Environment names are useful to communicate release state of a given feature (and its code changes) in an application release cycle. They give meaning to statements like "those changes are in dev only", "this feature needs to be tested in uat", etc.

Having those concepts defined the SDK defines the following actions:

  • Find Flows - scan code or configration to find Flows which can be deployed
  • Find Deployments - find existing Flow deployment information
  • Deploy - uses information about the Flow together with additional deployment configuration to create a Deployment in an initial, starting environment (e.g. dev).
  • Promote - having completed required validation steps on deployment outputs in a given environment, the code version used in source Deployment can be deployed to a target environment (e.g. from dev to uat)

The acme-portal VSCode extension then displays flow and deployment infromation and provides UI elements (buttons, forms) / VSCode tasks to trigger Deploy and Promote actions.

The SDK and acme-portal are intended to complement use of CICD pipelines in cases where deployments can not be fully automated.

For explanation on how to configure your project to work with acme-portal using the SDK, checkout Configuring SDK for your project

For explanation of the features provided by default prefect based implementation checkout Default functionality of prefect based implementation

See guide Using default prefect based functionality for how to configure your project to work with acme-portal using the default prefect based implementation. You can view a sample project using it under acme-prefect.

Download files

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

Source Distribution

acme_portal_sdk-0.0.13.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

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

acme_portal_sdk-0.0.13-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

Details for the file acme_portal_sdk-0.0.13.tar.gz.

File metadata

  • Download URL: acme_portal_sdk-0.0.13.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.8

File hashes

Hashes for acme_portal_sdk-0.0.13.tar.gz
Algorithm Hash digest
SHA256 cd0a16aa092bf00f397252acd56315b12f095462820745b13ee89b798a46d470
MD5 f30561a4713246115b97809cacd2d619
BLAKE2b-256 1317bc2f7fcadcfeb5a538705ba450b37b564abc6ac5ef1ed131132f5e466d85

See more details on using hashes here.

File details

Details for the file acme_portal_sdk-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for acme_portal_sdk-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 a7899224151a2a6c5b9395c2a2f38c6e8963c09b8d0e7eff7a5621be68baa94b
MD5 de478aeb0614f201d72b72da1e833aa7
BLAKE2b-256 0656b04814cb0ea6e09a5662ed13d0f9acfb522ab91c6ab8e3f94fef1d4ac19b

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 Sentry Error logging StatusPage Status page