Skip to main content

An embedded HTTP server, focused on very small REST-style API's

Project description

LBUtils

Background

This library is designed to install all of the common drivers, library code, and helper code used within modules at Leeds Beckett University. It is principally targeted at MicroPython on the Pico H/W micro-controllers: but compatibility is also maintained with CPython 3.10 where possible (or relevant).

Examples for how to use the library can be found in the 'examples' folder: or in the documentation. Otherwise the library is organised as follows

  • drivers: Classes aimed at low-level support of I2C, SPI and other devices requiring board-level support.
  • helpers: Functions and classes which help replace boiler-plate code for tasks such as setting up network access.
  • pmod: Drivers and support for the Digilent peripheral modules.

Installation

A package of this library is provided on PyPi as lbutils. This can be installed with the normal Python tools, and should also install to boards running MicroPython under Thonny.

For manual installation, everything under the lbutils directory should be copied to the appropriate directory on the MicroPython board, usually /lib. The library, or individual drivers, can then be imported as normal: see the documentation for the examples for more detailed guidance on the use of the library. This code is also available in the lbutils/examples folder, or as the library lbutils.examples when the package is installed.

Notes

  • This library is principally a teaching library, so the Documentation should be at least as important as the 'code'. Where possible all algorithms and implementation techniques should also be explained as fully as possible, or at least linked to reference standards/implementations

  • For consistency, all code should also be in the format standardised by the Black library. This makes it easier to co-ordinate external code and documentation with the implementation documented here.

Known Implementations

  • Raspberry Pi Pico W (MicroPython 3.4)
  • CPython (3.10)

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

lbutils-mp-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lbutils_mp-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file lbutils-mp-0.1.0.tar.gz.

File metadata

  • Download URL: lbutils-mp-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for lbutils-mp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 047773d87702d29f8b98cc4bceeeec0cdfd87134ec0a25a128c69a46acd2a7cd
MD5 05c3bbec5f2f7b7038e34a39199151be
BLAKE2b-256 9b4e23361678cec334fb148332fe8ee317163f0ba884f098679d142822bc94f3

See more details on using hashes here.

File details

Details for the file lbutils_mp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lbutils_mp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for lbutils_mp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6b98188d967b5f479a57b21caad3e6c7657f9ba66a159d6b970e749bfda77be
MD5 2840ab9b01be6e0627d65f3828adbeb2
BLAKE2b-256 48ca71a8374a0902fe6292d68f19ff639aa7fd4d4e149df10a4e68f0f85b7774

See more details on using hashes here.

Supported by

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