Skip to main content

bluecopa-robot

Scaffold a new Bluecopa RPA robot — minimal, runnable, with docs-for-Claude baked in.

The robot equivalent of create-bluecopa-react-app: one command lays down a runnable robot skeleton and the CLAUDE.md + docs/building-a-bluecopa-robot.md that tell a human or Claude exactly how to build and deploy it.

Install (one time)

Prerequisite: Python 3.9 (the same version the robots run on).

"Installing" here means turning bluecopa-robot into a command you can type in any terminal. You only do this once.

# 1. Be inside this scaffold folder — the one that contains pyproject.toml.
#    (If you're already here, skip this. Otherwise cd into it.)
cd path\to\bluecopa-robot-scaffold

# 2. Install it as a command
pip install -e .

What that second line does:

  • pip install — install a Python tool.
  • . — "the project in the current folder" (this scaffold).
  • -e — editable install: it points at these files instead of copying them, so if the template is ever updated, you get the update without reinstalling.

After it finishes, the command bluecopa-robot works from anywhere. Check it:

bluecopa-robot --version      # prints: bluecopa-robot 0.1.0

Prefer an isolated install? pipx install . instead of pip install -e . — same result, the command just lives in its own environment.

For your team — install without cloning

Colleagues do not need this repo. pip installs the tool straight from git, so all they run is:

pip install "git+https://github.com/CH-Akhil/bluecopa-robot-scaffold.git"
bluecopa-robot new my_robot

That one pip install downloads and installs the bluecopa-robot command (templates and the SDK wheel are bundled inside it). After it, bluecopa-robot new … works anywhere.

Cleaner still: pipx install "git+https://github.com/CH-Akhil/bluecopa-robot-scaffold.git" — installs the command in its own isolated environment. Update later with pipx upgrade bluecopa-robot (or re-run the pip install with --upgrade).

This repo is private, so the install needs GitHub auth:

  • SSH (simplest if you have keys set up): pip install "git+ssh://git@github.com/CH-Akhil/bluecopa-robot-scaffold.git"
  • HTTPS + token: pip install "git+https://<your-token>@github.com/CH-Akhil/bluecopa-robot-scaffold.git"

Use — create a robot

The one command you'll use is bluecopa-robot new <name>. It creates a new folder named <name> containing a complete, ready-to-run robot.

bluecopa-robot new invoice_splitter

That creates an invoice_splitter/ folder in your current directory. Run this with no flags and it will ask you three things (title, one-line description, and whether the robot needs GCS), then generate the robot from your answers.

If you'd rather not be asked, pass the answers as flags:

bluecopa-robot new invoice_splitter --gcs --title "Invoice Splitter" --description "Splits invoices"

The flags

Flag What it does
(the name) invoice_splitter becomes the folder name, the module rpa/invoice_splitter.py, and the class InvoiceSplitterRobot. You can type "Invoice Splitter" too — it's converted to invoice_splitter.
--gcs Include Google Cloud Storage support: adds rpa/gcs.py (read/write GCS with ambient auth) and google-cloud-storage to requirements. Use this when the robot reads or writes files in GCS.
--no-gcs The opposite — a bare robot with no storage code or dependency. Use this when the robot doesn't touch GCS.
--title "..." The human name shown in the platform's setup form (e.g. "Invoice Splitter").
--description "..." A one-line description, used in the generated README and CLAUDE.md.
--dir <path> Where to create the robot folder. Defaults to your current directory.

--gcs and --no-gcs are opposites — pass at most one. If you pass neither and you're in an interactive terminal, it asks; otherwise it defaults to no GCS.

The three examples explained

bluecopa-robot new invoice_splitter

→ Creates invoice_splitter/ here, asking you for title, description, and GCS.

bluecopa-robot new invoice_splitter --gcs --title "Invoice Splitter" --description "Splits invoices"

→ Creates invoice_splitter/ here with the GCS helper, and no questions — the title and description are supplied as flags.

bluecopa-robot new invoice_splitter --no-gcs --dir ../robots

→ Creates the robot without GCS, in the ../robots folder (one level up) instead of the current directory.

After generating, cd into the new folder and follow the "Next steps" the command prints (install deps, implement run_robot, test locally) — also in the robot's own README.md.

What you get

A standalone <name>/ folder:

  • main.py, Dockerfile (python:3.9-slim), requirements.txt, the SDK wheel in libs/
  • rpa/<name>.py — a runnable run_robot stub (writes a placeholder output) with _unwrap_data
  • rpa/spec.json, secrets/*.sample.json
  • rpa/gcs.py only with --gcs (ambient-auth GCS helper) + google-cloud-storage
  • CLAUDE.md + docs/building-a-bluecopa-robot.md — the runtime contract, config/spec traps, filebox gotchas, and a client-agnostic deploy guide

It is client-agnostic: no client repo name, registry, or ECR path is ever emitted.

Maintaining the template

  • The vendored SDK wheel lives at src/bluecopa_robot/_assets/. When the SDK updates, replace it and bump the filename in generator.py (WHEEL_NAME) + the Dockerfile template.
  • Template files live under src/bluecopa_robot/_templates/ (each ends .tmpl; the generator strips that and substitutes {{placeholders}}). requirements.txt is generated in code, not templated.

Test

python -m pytest        # or: python tests/test_generate.py

Metadata

Release files for bluecopa-robot 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bluecopa-robot 0.1.0
File Size Uploaded Provenance Actions
bluecopa_robot-0.1.0.tar.gz 31.2 kB Without provenance Details for bluecopa_robot-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bluecopa-robot 0.1.0
File Interpreter ABI Platform Actions
bluecopa_robot-0.1.0-py3-none-any.whl Python 3 none any Details for bluecopa_robot-0.1.0-py3-none-any.whl

Total release size: 62.7 kB

Release files / bluecopa_robot-0.1.0.tar.gz

Download URL bluecopa_robot-0.1.0.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9819d301dae28f1cc2a0ed0b8cce87bb352142c0087eccdf693adf323f768780
BLAKE2b-256 checksum
How to use checksums
0a5041e6240edbd9a2497194fdae4d9ec1ad18e02aa9231c7acb3c6dbc92383e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Release files / bluecopa_robot-0.1.0-py3-none-any.whl

Download URL bluecopa_robot-0.1.0-py3-none-any.whl
Size 31.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fce61a4cab1298668779dd882771b35f19755d42ee2ec3b496b7a374c438c28
BLAKE2b-256 checksum
How to use checksums
8accc34ec12481d70d1a122d733e839227f6e7f7ef2e70984f769c3b368d3f39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Security for bluecopa-robot 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page