Skip to main content

Mascope CLI

The operations CLI for Mascope, Ultra Trace's mass-spectrometry analysis platform. It installs, launches, backs up and manages a Mascope deployment — the application itself runs as Docker containers pulled from the project's registry.

Requirements

  • Python 3.12
  • Docker (with the compose plugin)

Quickstart

pip install mascope-cli

mascope init        # create a runtime home: config, compose files, secrets
mascope cert gen    # self-signed TLS cert (or install real certs)
mascope prod up     # pull and start the production stack

mascope init creates the runtime home at ~/.mascope (%LOCALAPPDATA%\Mascope on Windows) — configuration TOMLs you can edit, docker compose files, and generated application secrets. Set MASCOPE_PATH to place it elsewhere. Re-running init is safe: existing files are kept and secrets are never regenerated.

To try Mascope without a deployment, the self-contained demo stack ships in the runtime home as well:

docker compose -f docker-compose.demo.yaml up -d
# then open http://localhost:8080 — login demo@mascope.app / mascope-demo

Everyday operations

mascope prod ps                  # container status
mascope prod logs --follow       # stream logs
mascope prod update              # update the stack to the latest release
mascope prod db backup           # dump the database
mascope prod db restore --yes    # restore the latest dump
mascope logs query --grep error  # search the application's file logs
mascope env list                 # manage runtime environments
mascope export package <id>      # a dataset's archive, to deposit in a repository

Run mascope --help or mascope <command> --help for the full reference.

mascope prod update pulls the target release images, restarts the stack with them and runs any pending database migrations (preceded by an automatic pre-migration dump). Move to a specific release with mascope prod update --version v1.2.0, or pin the deployed version for all commands with MASCOPE_VERSION; without a pin the stack follows the latest release images.

Limits of a wheel install

A runtime home made by pip install mascope-cli and mascope init starts a stack, but does not yet carry one across releases the way a server's source checkout does:

  • It records no deployed release. mascope prod update --version v1.2.0 pins the release for that command only, and says so. The next mascope prod up deploys latest again. To stay on a release, set MASCOPE_VERSION=v1.2.0 in the environment the stack is started from.
  • The compose file and config layers are the CLI's own. mascope init writes the copies this CLI version ships, and prod update never refreshes them. mascope init --force overwrites the base and mode layers wholesale.
  • There are no boot or update units. Nothing starts the stack at boot or runs the unattended update, backup retention or disk check. A checkout install gets these as systemd units from tooling/ubuntu.sh.
  • A CLI behind the release goes unnoticed. There is no checkout to compare it with; upgrade it with pip install -U mascope-cli.

Development

The Mascope source checkout exposes additional developer commands (dev, test, agent, backend) that operate on the monorepo; they are not part of the standalone install. See the repository for the developer guide.

Metadata

Release files for mascope_cli 2026.10.27

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

Source distribution (sdist)

Source distribution for mascope_cli 2026.10.27
File Size Uploaded Provenance Actions
mascope_cli-2026.10.27.tar.gz 195.1 kB Without provenance Details for mascope_cli-2026.10.27.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mascope_cli 2026.10.27
File Interpreter ABI Platform Actions
mascope_cli-2026.10.27-py3-none-any.whl Python 3 none any Details for mascope_cli-2026.10.27-py3-none-any.whl

Total release size: 424.9 kB

Release files / mascope_cli-2026.10.27.tar.gz

Download URL mascope_cli-2026.10.27.tar.gz
Size 195.1 kB
Tags Source
SHA-256 checksum
How to use checksums
192fd1bf6272b7f065f4a753e2a00f163eaa34a9dcb54d028e2d17e40d50d897
BLAKE2b-256 checksum
How to use checksums
6d8c3277a4fe3c625a745fd25512273f948d5b1edd4b888f8135c906b294a826
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mascope_cli-2026.10.27-py3-none-any.whl

Download URL mascope_cli-2026.10.27-py3-none-any.whl
Size 229.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac988646f6c4b9c69c6e81422ee8f4fb9636d4c662be50fbed9af08254883e10
BLAKE2b-256 checksum
How to use checksums
17ef36a25547027c1901598d49e0cc732625c67f034c7df838d43d061d63901c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for mascope_cli 2026.10.27

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.

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