Skip to main content

A module and utility to work with the simple filesystem on the BBC micro:bit

Project description

MicroFS

A simple command line tool and module for interacting with the limited file system provided by MicroPython on the BBC micro:bit.

Installation

To install simply type:

$ pip install microfs

…and the package will download from PyPI. If you wish to upgrade to the latest version, use the following command:

$ pip install --no-cache --upgrade microfs

Usage

In your code:

from microfs import ls, rm, put, get

From the command line use the “ufs” (“u” = micro) command.

To read the built-in help:

$ ufs --help

List the files on the device:

$ ufs ls

Delete a file on the device:

$ ufs rm foo.txt

Copy a file onto the device:

$ ufs put path/to/file.txt

Get a file from the device:

$ ufs get foo.txt

Development

The source code is hosted in GitHub. Please feel free to fork the repository. Assuming you have Git installed you can download the code from the canonical repository with the following command:

$ git clone https://github.com/ntoll/microfs.git

Ensure you have the correct dependencies for development installed by creating a virtualenv and running:

$ pip install -r requirements.txt

To locally install your development version of the module into a virtualenv, run the following command:

$ python setup.py develop

There is a Makefile that helps with most of the common workflows associated with development. Typing “make” on its own will list the options thus:

$make

There is no default Makefile target right now. Try:

make clean - reset the project and remove auto-generated assets.
make pyflakes - run the PyFlakes code checker.
make pep8 - run the PEP8 style checker.
make test - run the test suite.
make coverage - view a report on test coverage.
make check - run all the checkers and tests.
make package - create a deployable package for the project.
make publish - publish the project to PyPI.
make docs - run sphinx to create project documentation.

Release History

1.0.0

  • Full implementation of all the expected features.

  • 100% test coverage.

  • Comprehensive documentation.

0.0.1

  • Initial release. Basic functionality.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microfs-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file microfs-1.0.0.tar.gz.

File metadata

  • Download URL: microfs-1.0.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for microfs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7599b52f26101efb66bd33ea141052a5ec5b83fd3af4a2fbe307616d7a6d1f13
MD5 522f5e42d59baa2a871cdbab2b3dd131
BLAKE2b-256 f31bfd6326ace7ce79bcf22cfa6215208b1342c18f04ae1bb3d2a483b63a580a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page