brainsless-connect
Seals the environment variables a repository needs in order to run, and hands only ciphertext to
Brainsless. The stack-agnostic twin of npx @brainsless/connect, for machines without Node. The
repository it reads can be any stack; only Python is needed to run the tool.
Run it from the root of the repo Brainsless read, with the URL the Brainsless screen rendered.
uvx brainsless-connect https://brainsless.com/api/staging/handover/blh_...
Without uv:
pipx run brainsless-connect <url>
With neither, using only the standard library. PEP 668 does not apply inside a venv, so this needs no root and leaves nothing on the system path:
python3 -m venv /tmp/brainsless && /tmp/brainsless/bin/pip -q install brainsless-connect
/tmp/brainsless/bin/brainsless-connect <url>
Every one of these fetches the same immutable, version-pinned wheel from PyPI. Nothing is piped into an interpreter, and nothing is installed permanently.
Flags
--list |
print every variable name, not just the counts |
--yes |
send without a prompt |
With neither --yes nor a terminal, it prints what would be sent and sends nothing.
What it reads
.env, .env.local, .env.staging, .env.development, .env.test for values; .env.example,
.env.sample, .env.template for names only. Four directories deep, skipping node_modules,
.git, build output and virtualenvs. A deeper directory wins over a shallower one, so in a
monorepo the service's own env is the operative one.
What it refuses
Refused before anything is sealed, so the values never leave the machine:
- database, cache and queue addresses -- the sandbox makes its own
- live-mode payment keys
PORT,NODE_ENV,PATHand the rest of the runtime the sandbox provides itself
Security
- AES-256-GCM under a fresh data key, that key RSA-OAEP-SHA256 wrapped against the public key the handover serves. The handover token is the GCM AAD, so a payload cannot be replayed against a different handover.
- Crypto is
cryptography, the audited Python binding to OpenSSL. Nothing is hand-rolled. - Reads only. There is no write call in the tool.
Development
python3 -m venv .venv && .venv/bin/pip -q install -e . && .venv/bin/python test_connect.py
Publishing
Pure Python, no compiler.
uv build
uv publish
Metadata
Release files for brainsless-connect 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| brainsless_connect-1.0.0.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brainsless_connect-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / brainsless_connect-1.0.0.tar.gz
| Download URL | brainsless_connect-1.0.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5a84565de98f0a3f261b5b6fee7c5ad9dbd63191847a7dfa41e029a6e3186f3
|
|
BLAKE2b-256 checksum How to use checksums |
860ebe3e4b4179f7e04c70b1758f266c73436a64d42da97d48e75d4d4b7ca171
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / brainsless_connect-1.0.0-py3-none-any.whl
| Download URL | brainsless_connect-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d1096c00f5df543dcac03a46dbfb0571aa64e4338d28b4f3360c7a24c59fe4e
|
|
BLAKE2b-256 checksum How to use checksums |
f035740f32578bb4692974059f0e1a2e2f7608f3b770d437863f1eb137956eaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|