pycrobit
Python library that permits to recycle microbits exercises in python using 5 * 5 strings and some coloring without the hassle of handling terminal coloring and refresh.
Context
There's a lot of fun exercises for children using microbits but a lot less using python.
Installation
pip install pycrobit[colorama]
Or download pycrobit.py for offline use.
Example of use
from pycrobit import Fore, Pycrobit
all_lit = """
*****
*****
*****
*****
*****
"""
all_off = """
.....
.....
.....
.....
....."""
pycrobit = Pycrobit(framerate=0.50)
while True:
pycrobit.display(all_lit) # Lit red by default
pycrobit.display(all_off)
pycrobit.display(all_lit, {"*": Fore.YELLOW})
pycrobit.display(all_off)
pycrobit.display(all_lit, {"*": Fore.GREEN})
pycrobit.display(all_off)
pycrobit.display("*.*.*\n" * 5)
pycrobit.wait(-0.25)
pycrobit.display(".***." * 5)
pycrobit.wait(-0.25)
Metadata
Release files for pycrobit 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pycrobit-0.2.0.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycrobit-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / pycrobit-0.2.0.tar.gz
| Download URL | pycrobit-0.2.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dce23c5b7c8217cd0cd5ca03d6819d00bd2bc0bc14cb1010ca22f142c3535af3
|
|
BLAKE2b-256 checksum How to use checksums |
f25cffca47c0ac5bbc32333a1f3c2d19d78a3af2043990b44060ef92c127423f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / pycrobit-0.2.0-py3-none-any.whl
| Download URL | pycrobit-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc800a077c588bbd1685810a448117059b37ef49d26aa794ff95f8ad1992f252
|
|
BLAKE2b-256 checksum How to use checksums |
c7823db39fd0c35d53d374c53c1a22785f4c9d31ee9822e21c5bfab918ac1fe6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for pycrobit 0.2.0
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.