Skip to main content

CLI tool for Blocks, a platform for writing custom AI-enabled codebase automations in Python. Leverage a full codebase-aware API. Automatically trigger automations from Github, Slack, and other providers.

Project description

Blocks CLI

A CLI tool for Blocks, a platform for writing custom AI-enabled codebase automations in Python. Leverage a full codebase-aware API. Automatically trigger automations from Github, Slack, and other providers.

We're currently in private alpha, we recommend consistently updating your SDK to the latest version to get the latest features and fixes.

Getting Started

1. Install CLI (Packaged with SDK)

pip install blocks-sdk

2. Create a new Blocks project

mkdir -p .blocks/myautomation
cd .blocks/myautomation

3. Create a new automation

# automation.py
from blocks import task, on

@task(name="my_automation")
@on("github.pull_request", repos=["MyOrg/MyRepo"])
def my_automation(event):
    print(event)

5. Upload your automation

blocks init --api-key <your-api-key>
blocks push automation.py

Download files

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

Source Distribution

blocks-cli-0.1.23.tar.gz (22.8 kB view details)

Uploaded Source

File details

Details for the file blocks-cli-0.1.23.tar.gz.

File metadata

  • Download URL: blocks-cli-0.1.23.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.19

File hashes

Hashes for blocks-cli-0.1.23.tar.gz
Algorithm Hash digest
SHA256 9a89c8b3d635df4d393b86f304eea5ae30fe1827fe054e6cad0775f570c6433c
MD5 dcb55e4188ed3219e7b9f40e93e8ab59
BLAKE2b-256 7d2df4c388880da2153b16ae6c5e9e301f6da8b2ea78967642bc2d3667f3c1dd

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