Skip to main content

Contributors Forks Stargazers Issues License: GPL-3.0 Testing PyTest) Style (Ruff) PyPI Docs


Logo

Bare Metal Development Environment (BMDE) CLI

CLI wrapping the Bare Metal Development Environment (BMDE)
Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Product Name Screen Shot

Operating system agnostic CLI wrapping the Bare Metal Development Environment (BMDE) and other related utilities to manage the complete software life-cycle of a NDS C and / or assembly project using either host or Dockerized installations of the software components of the BMDE, plus opinionated features to be used in the development of the practical exercises from the subject Computers, Operating Systems Structure and in minor cases Computer Fundamentals from the university degree of Computer Engineering in the University Rovira i Virgili (URV).

(back to top)

General features

Naive components

Each component is independent and can be used individually without using bmde.

One module wraps one software

Each module corresponds to a wrapper around one software and its environment.

Flexibility using backend: Docker vs host (or others)

Each module can be executed using as entrypoint the corresponding binary in your machine (host) or a binary provided by Docker embedded in bmde. This allows using bmde but either using a Docker installation that is already provided, or your own host installations. You can do this for each module (WIP).

In the same sense, some additional backends may be provided, for example, the run command which wraps desmume, also provides the FlatHub (flathub) backend.

Config and arguments

A native toml schema is included to provide default values to arguments to bmde. bmde also reads configuration from various sources with different priority, allowing for fine-grained control over each repository. The priority is the following, with later mentioned sources overriding previous ones key by key:

  • /etc/bmde/bmde.toml (on Windows, C:\ProgramData\bmde\bmde.toml): system-wide.
  • bmde.toml in the configuration directory of your user: ~/.config/bmde/bmde.toml on Linux (or $XDG_CONFIG_HOME/bmde/bmde.toml), ~/Library/Application Support/bmde/bmde.toml on macOS and %APPDATA%\bmde\bmde.toml on Windows.
  • The closest bmde.toml upward in the tree, up to the root of the git repository. It is never looked for in your home directory or above it.
  • Environment variables BMDE_<SECTION>__<KEY>, with two underscores between every level, e.g. BMDE_RUN__DEBUG=true or BMDE_RUN__EXECUTION_SETTINGS__BACKEND=docker. Lists are given as JSON, e.g. BMDE_RUN__EXECUTION_SETTINGS__ARGUMENTS='["--foo"]'.
  • The file given with -c/--config.
  • The arguments of the command line.

Run bmde config --show-sources to see which of these files were found and which source supplied each value.

The log of each execution is written to the log directory of your user (~/.local/state/bmde/log on Linux, ~/Library/Logs/bmde on macOS and %LOCALAPPDATA%\bmde\Logs on Windows), unless [logging] file or --log-file says otherwise.

The configuration files allows an easy usage to bmde: Provided arguments via config files can be omitted from the arguments of the CLI call to bmde, allowing shorter commands and skipping the need to provide things like credentials for authentication in each call to bmde.

Run bmde config (or bmde config <command>, e.g. bmde config git) to create or update a configuration file interactively, and bmde --show-default-config to print a documented template with every option and its default value (see examples/bmde.toml).

(back to top)

Built With

This section lists any major languages/frameworks/libraries/tools used in this project.

  • Python

  • Docker

  • Pydantic

  • Typer

  • FortiClient

  • SSH

  • Expect

  • Git

  • Make

  • devkitPro

  • devkitARM

  • ARM Insight

  • GDB

  • DeSmuME

  • dlditool

  • X11

  • x11vnc

  • Flathub

(back to top)

Getting Started

Prerequisites

To run bmde you will need Python 3.11 or newer and pipx.

Each command runs a component of the BMDE (devkitARM, DeSmuME, Insight...), either from its Docker image, which only needs Docker with permissions for the user running bmde, or installed in your system with scripts/install.sh. For simplicity, we recommend sticking to Docker.

Check out the docs for a full explanation on the prerequisites and on the installation of the components.

Installation

Install the command by using:

pipx install bmde

The BMDE can also be used without Python (in Docker, or with the components in your system and the Makefiles of the course), as explained in the docs.

Check out the docs for a full explanation on every installation method.

Usage

You can start using BMDE by cloning a NDS project:

bmde git clone 12345678-A@git.deim.urv.cat:comp_20

Then, enter the directory of the repository you just cloned:

cd comp_20

And build the project with:

bmde build

If the building is successful you will be able to run the project with:

bmde run

Check out the docs for a full explanation on the usage.

(back to top)

Roadmap

See the project roadmap for a full list of proposed features, and known issues and its implementation state).

(back to top)

Contributing

Check out our CONTRIBUTING.md to know how to make a contribution.

Top contributors:

contrib.rocks image

(back to top)

License

Proudly distributed with love under the GNU GPLv3 License. See LICENSE for more information.

(back to top)

Contact

@AleixMT - aleix.marine@urv.cat

(back to top)

Acknowledgments

The teachers of URV who have collaborated.

(back to top)

Metadata

Release files for bmde 3.0.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 bmde 3.0.1
File Size Uploaded Provenance Actions
bmde-3.0.1.tar.gz 84.8 kB With provenance Details for bmde-3.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 198.3 kB

Release files / bmde-3.0.1.tar.gz

Download URL bmde-3.0.1.tar.gz
Size 84.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c9ea58cd7686afc85d7d51d876a8d1475e5838964e6fac1ceff9f022cfe5e14a
BLAKE2b-256 checksum
How to use checksums
18ac272ac5fb2f09740fdbc06250d7806ff4dffb3d1e6f4ef5f12dc0b1041b8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / bmde-3.0.1-py3-none-any.whl

Download URL bmde-3.0.1-py3-none-any.whl
Size 113.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1359bd10b59917cf02552ae083029c37a41c4bbe419be0d00a3bc8377f47f8c
BLAKE2b-256 checksum
How to use checksums
4a1540dfeddcab71c5dc1a0517226452d28cdf349f433533aafcbcb392320cb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for bmde 3.0.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bmde-3.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

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