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).

pip install bluecopa-robot

That's it — the bluecopa-robot command now works from anywhere. Check it:

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

Prefer an isolated install? pipx install bluecopa-robot — same result, the command just lives in its own environment. Update later with pipx upgrade bluecopa-robot (or pip install --upgrade bluecopa-robot).

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.1

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.1
File Size Uploaded Provenance Actions
bluecopa_robot-0.1.1.tar.gz 30.1 kB Without provenance Details for bluecopa_robot-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 61.1 kB

Release files / bluecopa_robot-0.1.1.tar.gz

Download URL bluecopa_robot-0.1.1.tar.gz
Size 30.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f7a39e0cea2263301921b1d899470c957150e91f5c90a44362d8db82f84b53a3
BLAKE2b-256 checksum
How to use checksums
ac2bbb6d9e8ce016f1a632bf73f34ae4afc4e58e159c789a25d26c082112d4c3
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.1-py3-none-any.whl

Download URL bluecopa_robot-0.1.1-py3-none-any.whl
Size 31.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d33a23ca869530c19d59891e8b69c3c6bd15c60c4fbfa7be456cae3e883ca95d
BLAKE2b-256 checksum
How to use checksums
8bfab7b5ff19b3fc3f1bc23a708b5f06603bf8fe758a632317a7d301d572bc75
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.1

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.1 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