Skip to main content

BrainFrame CLI

The BrainFrame CLI is a tool for installing and managing a BrainFrame server.

Installation

The CLI is installable with Pip. Ubuntu 18.04 and 20.04 are officially supported, but other versions of Linux are expected to work as well.

On Ubuntu:

sudo -H pip3 install brainframe-cli

Upgrading

Pip can be used to upgrade to a new version.

sudo -H pip3 install --upgrade brainframe-cli

Usage

To install BrainFrame, simply run the install command as root:

sudo brainframe install

BrainFrame can then be controlled like a normal Docker Compose application using the compose command, which can be run from any directory.

brainframe compose up -d

The following will show logs,

brainframe compose logs -f core journal

How to integrate the following to cleanup logs,

sudo truncate -s 0 $(docker inspect --format='{{.LogPath}}' brainframe-core-1 brainframe-journal-1)

For more information, take a look at the Getting Started guide.

Contributing

We happily take community contributions! If there’s something you’d like to work on, but you’re not sure how to start, feel free to create an issue on Github and we’ll try to point you in the right direction.

We use a couple formatting tools to keep our code style consistent. If you get any CI failures, you can run the following commands to automatically format your code to fit our guidelines:

pip install poetry==1.8.3
poetry install
poetry run isort .
poetry run black .

Build one PyPI wheel for Python 3.6–3.12. The wheel records different dependencies for older and newer Python versions:

deployment/ide_cli build wheel-env
deployment/ide_cli build wheel

To validate the wheel and intended destination without uploading, run deployment/ide_cli push wheel --dry-run. After configuring a TestPyPI token with TWINE_USERNAME and TWINE_PASSWORD or ~/.pypirc, run deployment/ide_cli push wheel. Add --pypi to publish to production PyPI.

Build the PyInstaller standalone Linux executable separately:

deployment/ide_cli build pyinstaller-binary-env
deployment/ide_cli build pyinstaller-binary

This creates dist/brainframe. To publish it to the dev releases bucket, run deployment/ide_cli push pyinstaller-to-aws with an AWS profile and region. Add --prod for the production releases bucket.

Debian packages use build deb-env and build deb. That build path is currently not release-ready.

To remove generated wheels, the standalone executable, Debian packages, and Debian staging files before a fresh build:

deployment/ide_cli clean

clean restores brainframe/cli/defaults.yaml if it still matches the system-package copy left by a Debian build. It stops if that file has other edits. Docker images remain cached; pass --no-cache to a *-env build when testing the image build from scratch.

The wheel build uses one Python 3.12 Docker image and writes one wheel to dist/. Install it for local testing with:

pip install dist/brainframe_cli-0.3.3-py3-none-any.whl

Once the Docker environments exist, rerun build wheel or build pyinstaller-binary without rebuilding them.

Metadata

Release files for brainframe-cli 0.3.3

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

Built distribution (wheel)

Table of built distributions (wheels) for brainframe-cli 0.3.3
File Interpreter ABI Platform Actions
brainframe_cli-0.3.3-py3-none-any.whl Python 3 none any Details for brainframe_cli-0.3.3-py3-none-any.whl

Release files / brainframe_cli-0.3.3-py3-none-any.whl

Download URL brainframe_cli-0.3.3-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
883b0c9bd09aa038400f60cfce5a12d3dce3f2dda39dca0eb2c69f519b2b2659
BLAKE2b-256 checksum
How to use checksums
f9025bc80a4831d4ebefa7d721548c8e79129379cf70b5c02ae2c7d1c057c093
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.16

Security for brainframe-cli 0.3.3

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

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