Skip to content
Ckyiu edited this page Dec 6, 2021 · 15 revisions

Here is a guide on how to use the CircuitPython Bundle Manager v2! If this is the first time running the CircuitPython Bundle Manager v2, refer to the first-time preparation section.

First-time preparation and usage

Make sure you followed the instructions to install the CircuitPython Bundle Manager v2.

On the first launch, you should see something like this:

The CircuitPython Bundle Manager v2 at first launch

Preparation

The first thing to do is to obtain a GitHub token so you can download bundles to use!

Obtain a GitHub token

First, go to the personal access tokens page of your GitHub account and create a new token for the CircuitPython Bundle Manager v2. After you create a token, go to the Other tab and click on the Go to credential settings button.

The CircuitPython Bundle Manager v2's credential settings page

If you want to save the token to the OS' credential manager, check the check button. This allows you to not have to copy and paste in a new token every time you relaunch the application and need to download a bundle.

Then, click the Open credential manager button. A new dialog will pop up like this:

The CircuitPython Bundle Manager v2's credential manager

Paste in your new token and press Save current token. If successful, you can close the credential manager now!

Download a new release

Go to the Bundle tab and click Add bundle.... A new dialog will pop up:

The CircuitPython Bundle Manager v2's bundle repository dialog

This allows you to download releases from either the main repository or the community repository. Choose Adafruit CircuitPython Bundle. (if you need a community bundle you can always click CircuitPython Community Bundle instead)

The CircuitPython Bundle Manager v2's add bundle dialog

Select a release (you will probably choose the latest release at the time of writing) and press Download! On success, you can close the add bundle dialog (unless you want to add more) and you will now see the just-downloaded bundle in the list!

The CircuitPython Bundle Manager v2's bundle tab with a single downloaded bundle

Next, select the bundle in the list box and press the Use bundle button. Now you are all set!

First-time usage

This section covers using the CircuitPython Bundle Manager v2 for the first time.

Selecting a CircuitPython device

In order to manage modules on an installed device, we must know which device to use!

Go to the Drive tab (Refresh if necessary as we only update available drives upon launch and when you press the Refresh button) and select a CircuitPython drive if you have one plugged in!

The CircuitPython Bundle Manager v2's drive tab with a CircuitPython device selected

Here you can see various stats about the device, including disk space and the contents of boot_out.txt. Note that if None or a non-CircuitPython drive is selected, you won't be able to manage modules cause they aren't CircuitPython drives!

Managing modules on a CircuitPython device

Switch to the Modules tab and now you can manage modules! After you select the correct bundle version (if a bundle is selected) under the list of modules you can now manage modules! It should be mostly self-explanatory.

If you want to search for a module, type in the entry above the list of modules in the bundle.

The CircuitPython Bundle Manager v2 with the modules tab open demonstrating the search feature

Usage

This section covers the various buttons (and other things) of the CircuitPython Bundle Manager v2 and how to use them.

Bundle tab

The CircuitPython Bundle Manager v2's bundle tab

The Add bundle button will pop up a dialog that allows you to choose whether to download releases from either the main repository or the community repository. Choose Adafruit CircuitPython Bundle.

The CircuitPython Bundle Manager v2's bundle repository dialog

Then, you can download a release using the release selector:

The CircuitPython Bundle Manager v2's add bundle dialog

The Remove bundle button will delete the currently selected bundle, allowing you to gain space if needed.

The Use bundle button will make the modules tab use the currently selected bundle in the listbox.

The Bundle info button will pull up information about the bundle, like where it was downloaded from and how old it is.

The CircuitPython Bundle Manager v2's bundle information dialog about the November 27, 2021 auto-release

The Refresh button will refresh the currently available releases.

Modules tab

The CircuitPython Bundle Manager v2's modules tab

There are two listboxes (well, up to two, depending on whether or not there is a bundle selected and a CircuitPython drive is selected) - the one on the left will show the available modules in the currently selected bundle version (you can change the version under the bundle listbox using the combo box) while the right listbox holds the modules currently installed in the selected CircuitPython device if one is selected. The install, reinstall, and uninstall buttons will enable themselves depending on which module is selected and where.

Drive tab

The CircuitPython Bundle Manager v2's drive tab

The combo box at the top will select the current drive to use when managing modules. The list of selected drives will only update when you press the Refresh button so press that if your CircuitPython device isn't showing up!

Other tab

The CircuitPython Bundle Manager v2's other tab

The other tab contains settings for the CircuitPython Bundle Manager v2 and contains links to important places like this documentation.

If you press the Shift key then some of the buttons will change:

The CircuitPython Bundle Manager v2's other tab while the shift key is pressed

Credential settings

The CircuitPython Bundle Manager v2's credential settings page

This page allows you to manage your GitHub token used to find available bundles.

Note that if you uncheck the checkbutton that saves your GitHub token in the OS' credential manager while there is a token stored it will not delete it from the OS' credential manager! You should manually delete the key, uncheck the setting, then paste your key back in to use it for the duration of the application's lifetime so that it only stays in memoiry.