Saravanan666/pypi-org huggingface dataset:
Package: micropython-mpy-env
micropython-envSimple environment variable loader for MicroPython board.The loader could load environment variables from the one of file format as below:JSON(default) : The file name is "env.json" (text mode).MessagePack: The file name is "env" or "env.msgpack" (binary mode).MessagePackNote:MessagePack Array corresponds to  Python Tuple, not ListChange in v0.2.0MessagePack predefined extension types:NameTypeSupport?Timestamp-1XMessagePack application-specific extension types:NameTypeSupport?DescriptionList1OPython List, legth limit: 65535.New in v0.2.0How to Usefrommpy_envimportload_env,get_env,put_env# Loading `env.json` at once as default.# You can invoke below function in `boot.py`load_env()# orload_env(0)# You can loading environment variables from MessagePack as below.load_env(1)# In `main.py` or the other,# You can invoke below function to get environment variable.get_env('key')# You can invoke below function to set environment variable in-memory.put_env('tuple',('a',1))TestingCurrentl testing environment:Python 3.7MicroPython unix port 1.12 ＆ 1.13MicroPython esp32 port 1.12＆ 1.13Before tesing, you need to compile Micopython unix port executable first, seeoffcial GitHub Wikito setup.After setup, you must set environment variableMPY_PATHas path of local MicroPython repository.Environment variableMPY_PATHis used in shell scriptbin/build_micropython.shWe usempfshellto interactive with MicroPython board,  please install the latest release from PyPi.pip install mpfshellWe useoffcial MessagePack packageto validate custommsgpackmodule, please install the latest release from PyPi.pip install msgpackNext, clone the repository to your local machine.git clone https://github.com/ShenTengTu/micropython-env.git
cd micropython-envYou can execute the follow command to build muitiple versions of MicroPython unix port.export MPY_PATH=<local_micropython_repo> && make build-mpyIt will create symbolic links into user binaries directory after building.To test on Python & MicroPython unix port,  execute the command as below.make testingIt will run testing on multiple MicroPython unix port versions.To test on ESP32 board, execute the follow command.make mpy-testing-esp32It will run testing on multiple MicroPython esp32 port versions.DevelopmentSee "Development guide" inCONTRIBUTING.md.
Package: micropython-mqtt
MQTT client for Micropython using asyncio.
The implementation requires the new (in 2020) uasyncio built into Micropython. It provides
an MQTTClient class that operates in the background (using the asyncio loop) and makes
callbacks for incoming messages. MQTTClient supports QoS 0 and QoS messages, and it supports
non-blocking publishing of messages to improve streaming performance.
MQTTClient automatically reconnects if the connection to the broker fails and also
automatically connects and reconnects Wifi should it drop.
The API is largely compatible with Peter Hinch’s mqtt_as.
Package: micropython-mqtt-async
MQTT client for Micropython using asyncio.
The implementation requires the new (in 2020) uasyncio built into Micropython. It provides
an MQTTClient class that operates in the background (using the asyncio loop) and makes
callbacks for incoming messages. MQTTClient supports QoS 0 and QoS messages, and it supports
non-blocking publishing of messages to improve streaming performance.
MQTTClient automatically reconnects if the connection to the broker fails and also
automatically connects and reconnects Wifi should it drop.
The API is largely compatible with Peter Hinch’s mqtt_as.
Package: micropython-ms5611
IntroductionMicroPython Driver for the TE MS5611 Pressure and Temperature SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_MS5611To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MS5611Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_MS5611/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_MS5611/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-ms5611To install system-wide (this may be required in some cases):sudopip3installmicropython-ms5611To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-ms5611Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-msilib
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-netpie
DescriptionThis Python library provides a convenient way to interact with the
NETPIE IoT platform using both MQTT and REST API. NETPIE is an Internet
of Things (IoT) platform that offers tools and services for connecting
and managing IoT devices.The library encapsulates functionalities to publish messages, manage
device shadows, subscribe to topics, and more. It aims to simplify the
process of integrating NETPIE’s features into your IoT projects.FeaturesConnect and disconnect from the NETPIE MQTT brokerPublish messages and device shadows using MQTTSubscribe to topics and handle incoming MQTT messagesRetrieve device status and shadow data using NETPIE’s REST APIPublish private and device messages using REST APIAPI Documentationhttps://github.com/PerfecXX/MicroPython-NETPIEExample UsageConnect to
NETPIEPublish the data to NETPIE with Shadow
TopicPublishing data between the devices with Message
TopicControl your device with NETPIE’s
Dashboard.
Package: micropython-netrc
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-nextion
MicroPython Nextion libraryMicroPython Nextion libraryGeneralPorted library to interact withNextion serial displays,
based on theITEAD Arduino Nextionlibrary.InstallationInstall required toolsPython3 must be installed on your system. Check the current Python version
with the following commandpython--version
python3--versionDepending on which commandPython 3.x.y(with x.y as some numbers) is
returned, use that command to proceed.python3-mvenv.venvsource.venv/bin/activate

pipinstall-rrequirements.txtSetupInstall packageConnect the MicroPython device to a network (if possible)importnetworkstation=network.WLAN(network.STA_IF)station.active(True)station.connect('SSID','PASSWORD')station.isconnected()GeneralInstall the latest package version of this lib on the MicroPython deviceimportmipmip.install("github:brainelectronics/micropython-nextion")For MicroPython versions below 1.19.1 use theupippackage instead ofmipimportupipupip.install('micropython-nextion')Specific versionInstall a specific, fixed package version of this lib on the MicroPython deviceimportmip# install a verions of a specific branchmip.install("github:brainelectronics/micropython-nextion",version="feature/add-mip-package-file")# install a tag versionmip.install("github:brainelectronics/micropython-nextion",version="0.15.0")For MicroPython versions below 1.19.1 use theupippackage instead ofmipimportupipupip.install('micropython-nextion')Test versionInstall a specific release candidate version uploaded toTest Python Package Indexon every PR on the
MicroPython device. If no specific version is set, the latest stable version
will be used.importmipmip.install("github:brainelectronics/micropython-nextion",version="0.15.0-rc1.dev29")For MicroPython versions below 1.19.1 use theupippackage instead ofmipimportupip# overwrite index_urls to only take artifacts from test.pypi.orgupip.index_urls=['https://test.pypi.org/pypi']upip.install('micropython-nextion')See alsobrainelectronics Test PyPi Server in Dockerfor a test PyPi server running on Docker.ManuallyUpload files to boardCopy the module to the MicroPython board and import them as shown below
usingRemote MicroPython shellOpen the remote shell with the following command. Additionally use-b 115200in case no CP210x is used but a CH34x.rshell--port/dev/tty.SLAB_USBtoUART--editornanoPerform the following command inside thershellto copy all files and
folders to the devicemkdir/pyboard/lib
mkdir/pyboard/lib/nextion

cpnextion/*/pyboard/lib/nextion

cpexamples/basic/main.py/pyboard
cpexamples/boot.py/pyboardUsageUse one of theexamplesto get started. Read also theexamples READMEto find all supported elementsCreditsBig thank you toITEAD Studiofor the implementation
of the Arduino library.
Package: micropython-nis
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-nntplib
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-nodewire
NodeWire is an open source framework for building connected devices.
It is a system for connecting appliances to the internet and then allowing them
to be programmed through the use of schematic diagrams (NodeWire sketch).Each appliance is called a node. And there are different types of nodes.
Some are sensors such as motion sensors, and some are actuators such as motor speed controller or a relay
that can switch on a light bulb or trigger an alarm.Nodes have ports which can be input or output. You can program a node by manipulating its ports in the NodeWire sketch environment.
When you connect nodes to each other or connect constant values or variables to input nodes,
you control the appliances connected to the node.
For example, if a motion sensor node’s output is connected to the input of a relay whose output
port is also connected to a light bulb, the light bulb will automatically switch on when motion is sensed.This is where the name NodeWire comes from. Nodes are controlled by interconnecting them together on the Sketch environment.The objective of NodeWire are to:Enable hobbyists to create connected devices in minutes and provide an easy path for them to go commercial.Provide a full stack that is free (as in freedom) and mostly free (as in free beer), that developers can adopt and extend.Provide easy inter-operability with other leading products and frameworksProvide highly innovative features such as the schematic-based programming tool, zero-configuration, auto-layout and auto-networking.NodeWire runs on Arduino, NodeMCU and various linux based SBCs such as Raspberry Pi.
Package: micropython-numbers
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-octopuslab-installer
OctopusLab Init LiteThis module facilitates provisioning of ESP32 boards with MicroPython projects.We use it for deployment ofOctopusLab toolson ESP32 boards (all examples bellow), but it may work on other MicroPython ports as well.Purpose of this tool is to download a.tarfile and unpack it to the file storage over existing content.Alternatively tar archive si stored locally for later offline restore a.k.a. factory reset.In the future optional wipe of dangling files will be added.How to use?Bootstrap your ESP32 with latest MicroPythondocumentationesptool.py --port /dev/ttyUSB0 erase_flash
esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 esp32-idf3-20200902-v1.13.bin
screen /dev/ttyUSB0 115200Connect to WiFiimport network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect('essid', 'password')Installimport upip
upip.install('micropython-octopuslab-installer')Runfrom octopuslab_installer import deploy
deploy()After this OctopusLab fromhttps://octopusengine.org/download/micropython/stable.taris installed in your ESPdon't forget to reboot.Please proceed with inital configuration of your OctopusLab enabled board as perdocumentationAlternative imagesYou may like to install an image from your custom location.from octopuslab_installer import deploy
deploy('http://192.168.1.100:8000/latest.tar')Optionally you may store downloaded image for later offline restore.from octopuslab_installer import deploy
deploy('https://www.dtlab.cz/download/sensobox/latest.tar', '/img/latest.tar')Then you may redeploy offline from the local file as follows. This may be used for "factory reset" of your device.from octopuslab_installer import deploy
deploy('/img/latest.tar')Also you may use wifi connection shortcut if you redeploy updated image and you've lost connection e.g. due to a reboot.from octopuslab_installer import connect
connect('myssid', 'mypass')Build and publish new version of this module# initial setup of build environment
git clone git@github.com:octopusengine/octopuslab-installer.git
cd octopuslab-installer/
python3 -m venv venv
source ./venv/bin/activate
pip install --upgrade wheel setuptools

# PyPi publisher and authorisation
pip install --upgrade twine
mcedit ~/.pypirc
chmod o-rwx ~/.pypirc

# build command
python setup.py sdist

# publish
twine upload -r pypi dist/*
Package: micropython-optparse
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-ossaudiodev
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-parser
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-pathlib
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-pca9685
IntroductionMicroPython Driver for the PCA9685
This include the a servo helper. The servo helper is taken from the
adafruit_circuitpython_motor library and adapted to MicroPython.If you are interested in a great MicroPython PCA9685 library take a look athttps://github.com/pappavis/micropython-pca9685Installing with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_PCA9685To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_PCA9685Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_PCA9685/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_PCA9685/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-pca9685To install system-wide (this may be required in some cases):sudopip3installmicropython-pca9685To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-pca9685Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-pct2075
IntroductionMciroPython Driver for the NXP Semiconductors Temperature SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_PCT2075To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_PCT2075Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_PCT2075/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_PCT2075/examples.jsonInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-pct2075To install system-wide (this may be required in some cases):sudopip3installmicropython-pct2075To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-pct2075Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-pdb
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-pickle
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-pickletools
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-pipes
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-platform
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-plistlib
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-poplib
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-posix
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-posixpath
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.
Package: micropython-pprint
This is a dummy implementation of a module for MicroPython standard library.
It contains zero or very little functionality, and primarily intended to
avoid import errors (using idea that even if an application imports a
module, it may be not using it onevery code path, so may work at least
partially). It is expected that more complete implementation of the module
will be provided later. Please help with the development if you are
interested in this module.