Saravanan666/pypi-org huggingface dataset:
Package: micropython-esp32-generic_s3-stubs
micropython-esp32-generic_s3-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_20_0-esp32-GENERIC_S3-mergedFrozen stubs fromstubs/micropython-v1_20_0-frozen/esp32/GENERICCore stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionDocumentationmicropython--v1.20.0Coremicropythonesp32-v1.20.0
Package: micropython-esp32-generic_spiram-stubs
micropython-esp32-generic_spiram-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_19_1-esp32-GENERIC_SPIRAM-mergedFrozen stubs fromstubs/micropython-v1_19_1-frozen/esp32/GENERICCore stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionFirmwaremicropythonesp32ESP32 module (spiram) with ESP32v1.19.1Documentationmicropython--v1.19.1Coremicropythonesp32-v1.19.1
Package: micropython-esp32-ota-stubs
micropython-esp32-ota-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_20_0-esp32-ota-mergedFrozen stubs fromstubs/micropython-v1_20_0-frozen/esp32/GENERICCore stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionDocumentationmicropython--v1.20.0Coremicropythonesp32-v1.20.0
Package: micropython-esp32-s3-stubs
micropython-esp32-s3-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_20_0-esp32-s3-mergedFrozen stubs fromstubs/micropython-v1_20_0-frozen/esp32/GENERICCore stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionDocumentationmicropython--v1.20.0Coremicropythonesp32-v1.20.0
Package: micropython-esp32-stubs
micropython-esp32-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_22_0-esp32-ESP32_GENERIC-mergedCore stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionDocumentationmicropython--v1.22.0
Package: micropython-esp32-ulp
micropython-esp32-ulp is an assembler toolchain for the ESP32 ULP (Ultra Low-Power)
Co-Processor, written in MicroPython.It can translate small assembly language programs to a loadable/executable
ULP machine code binary, directly on the ESP32 microcontroller.This is intended as an alternative approach to assembling such programs using
the binutils-esp32ulp toolchain from Espressif on a development machine.It can also be useful in cases where binutils-esp32ulp is not available.FeaturesThe following features are supported:the entireESP32 ULP instruction setconstants defined with.setconstants defined with#defineexpressions in assembly code and constant definitionsRTC convenience macros (e.g.WRITE_RTC_REG)many ESP32 ULP code examples found on the web will work unmodifiedQuick startTo get going run the following directly on the ESP32:# Step 1: Install micropython-esp32-ulp# IMPORTANT: Ensure the ESP32 is connected to a network with internet connectivity.importupipupip.install('micropython-esp32-ulp')# Step 2: Run an example# First, upload examples/counter.py to the ESP32.importcounterTheexamples/counter.pyexample shows how to assemble code,
load and run the resulting binary and exchange data between the ULP and the main CPU.DocumentationSeedocs/index.rst.RequirementsThe minimum supported version of MicroPython is v1.12.An ESP32 is required to run the ULP machine code binary produced by micropython-esp32-ulp
(the ESP32-S2 will not work as it is not binary compatible with the ESP32).LicenseThis project is released under theMIT License.
Package: micropython-esp32-um_tinypico-stubs
micropython-esp32-um_tinypico-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_19_1-esp32-UM_TINYPICO-mergedFrozen stubs fromstubs/micropython-v1_19_1-frozen/esp32/UM_TINYPICOCore stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionFirmwaremicropythonesp32ESP32 module (spiram) with ESP32v1.19.1Documentationmicropython--v1.19.1Coremicropythonesp32-v1.19.1
Package: micropython-esp8266-stubs
micropython-esp8266-stubsThis is a stub-only package for MicroPython.
It is intended to be installed in a projects virtual environment to allow static type checkers and intellisense features to be used while writing Micropython code.The version of this package is alligned the the version of the MicroPython firmware.Major, Minor and Patch levels are alligned to the same version as the firmware.The post release level is used to publish new releases of the stubs.ForMicropython 1.17the stubs are published as1.17.post1...1.17.post2forMicropython 1.18the stubs are published as1.18.post1...1.18.post2To install the latest stubs:pip install -I  micropython-<port>-stubswhere port is the port of the MicroPython firmware.To install the stubs for an older version, such as MicroPython 1.17:pip install micropython-stm32-stubs==1.17.*which will install the last post release of the stubs for MicroPython 1.17.As the creation of the stubs, and merging of the different types is still going though improvements, the stub packages are marked as Beta.
To upgrade stubs to the latest stubs for a specific version usepip install micropython-stm32-stubs==1.17.* --upgradeIf you have suggestions or find any issues with the stubs, please report them in theMicroPython-stubs DiscussionsFor an overview of  Micropython Stubs please see:https://micropython-stubs.readthedocs.io/en/main/List of all stubs :https://micropython-stubs.readthedocs.io/en/main/firmware_grp.htmlIncluded stubs:Merged stubs fromstubs/micropython-v1_19_1-esp8266-mergedFrozen stubs fromstubs/micropython-v1_19_1-frozen/esp8266/GENERICCore Stubs fromstubs/micropython-coreoriginFamilyPortBoardVersionFirmwaremicropythonesp8266ESP module (1M) with ESP8266v1.19.1Documentationmicropython--v1.19.1Coremicropythonesp8266-v1.19.1
Package: micropython-event-bus
micropython-event-busMicropython producer/subscriber event system with optional threadingNote that this package is early stages so could have undocumented bugs.Installationpip3installmicropython-event-busor
Clone thisrepositoryinto your project:gitclonehttps://github.com/jaycosaur/micropython-event-busUsagefrommicropython_event_busimportProducer,subscribe# setup simple producermy_producer=Producer(name="my first producer")# create subscriber# with decorator@subscribe(my_producer)defmy_subscriber(*args,**kwargs):print('I got a message!')# or by calling the producer subscribe methoddefmy_second_subscriber(*args,**kwargs):print('I also got a message!')my_producer.subscribe(my_second_subscriber)# emit event# from producer via __call__ methodmy_producer(1,2,3,4)# or by calling emit directlymy_producer.emit(1,2,3,4)For more examples please refer to theexamplesContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: micropython-eydam-prototyping-ep-http
Eydam-Prototyping: ep_httpSimple Library to run a http-server on an ESP32 or other MicroPython-enabled device.
If you want to support my work, checkout my github repo.Usage# main.pyimportep_file_serverimportep_rest_serverimportep_httpimportnetworkimporttimeimportubinasciiwlan=network.WLAN(network.STA_IF)wlan.active(True)wlan.connect("<SSID>","<Password>")whilenotwlan.isconnected():time.sleep(1)print("Connected")# just return files to clientfs=ep_file_server.file_server(html_dir="/html/",# directory with filesdefault_file="index.html"# default file that is returned when no specific file is requested)# edit a json configuration file via rest api# currently supported: GET, PUTcrs=ep_rest_server.config_rest_server(config_file="./config.json")# sensor reading for sensor_rest_server, must return json serializeable dictdefscan_wifi(path):nets=wlan.scan()result=[]forssid,bssid,channel,rssi,authmode,hiddeninnets:net={"ssid":ssid.decode("ascii"),"bssid":ubinascii.hexlify(bssid).upper(),"channel":channel,"rssi":rssi,"authmode":authmode,"hidden":hidden}result.append(net)returnresult# return sensor reatings via rest api# currently supported: GETsrs=ep_rest_server.sensor_rest_server([("^wifinets$",scan_wifi)# assignment function <-> route])defdefault_route(sock,request):print("unhandled request")print(request)routes=[# files are available via http://<ip>/files/yourfile.html("^\/?files\/([A-Za-z0-9_\.\/]*)\??([A-Za-z0-9_\.\/]*)$",lambdasock,req:fs.serve(sock,req)),# configurations are available via http://<ip>/config/hierachy/of/json/file("^\/?config\/?([A-Za-z0-9_\.\/]*)\??([A-Za-z0-9_\.\/]*)$",lambdasock,req:crs.serve(sock,req)),# sensor readings are available via http://<ip>/sensor/wifinets("^\/?sensor\/?([A-Za-z0-9_\.\/]*)\??([A-Za-z0-9_\.\/]*)$",lambdasock,req:srs.serve(sock,req)),# favicon is forwarded to file server("^(favicon\\.ico)$",lambdasock,req:fs.serve(sock,req)),# route, if nothing else matches("^(.*)$",default_route),]s=ep_http.http_server(routes=routes,micropython_optimize=True)print("Starting HTTP-Server: "+wlan.ifconfig()[0])s.start()Classes:ep_http.http_serveris the main class, that listens to the port, handels incomming connections, parses the requests and forwards them to the corresponding routes.Most important parameter are the routes. Those are a list of 2 tuples, consisting of a regex-String and a function, that handels the request. The tuples are gone through one after another until a regex-String matches.ep_file_server.file_serverservers files.ep_rest_server.config_rest_serveris a minimal REST-Server to edit config-files. Currently only a reduced set of instructions is supported.ep_rest_server.sensor_rest_serveris also a minimal REST-Server, that accepts only GET-Requests. It is made to read sensor data.
Package: micropython-eydam-prototyping-logging
Eydam-Prototyping: ep_loggerDeutsche Version hier / German version hereLibrary, to send log messages from an IoT-Device running MicroPython to a syslog-server. How to setup a syslog-server in combination with Telegraf and Grafana is described here:hereThe messages will be send in ietf-syslog-protocol-23-format.Example:# Syslog-Server (192.168.178.100) is listening on 514 (UDP)importep_logginglogger=ep_logging.syslog_logger("192.168.178.100",port=514)logger.notice("Test")This Code would produce the following message:<85>1 2021-01-20T20:33:17.0Z esp32 logger - - Test
 -- - ---------------------- ----- ------ - - ----
  | |           |              |      |   | |   +--- message
  | |           |              |      |   | +------- MSGID (=None)
  | |           |              |      |   +--------- PROCID (=None)
  | |           |              |      +------------- appname
  | |           |              +-------------------- hostname
  | |           +----------------------------------- timestamp
  | +----------------------------------------------- version (always 1)
  +------------------------------------------------- facility + servity
Package: micropython-eydam-prototyping-statemachine
Eydam-Prototyping: ep_statemachinePython-Modul to implement a simple statemachine.Example:importep_statemachinei=0definc():nonlocalii=i+1workflow=["press coffee button","press coffee button","press espresso button","press espresso button","press off button","press off button",]# define statess_sleep=es.state("sleep",initial=True,entry_action=inc)s_select_input=es.state("select_input",entry_action=inc)s_make_coffee=es.state("make coffee")s_make_espresso=es.state("make espresso")s_done=es.state("done")s_off=es.state("off")# define transitionst_wake_up=es.transition(s_select_input,identifier="wake up",condition=lambda:re.match("press (coffee|espresso|off) button",workflow[i])isnotNone)s_sleep.add_transition(t_wake_up)t_coffee=es.transition(s_make_coffee,identifier="coffee",condition=lambda:workflow[i]=="press coffee button")s_select_input.add_transition(t_coffee)t_espresso=es.transition(s_make_espresso,identifier="espresso",condition=lambda:workflow[i]=="press espresso button")s_select_input.add_transition(t_espresso)t_finished=es.transition(s_done,identifier="finished",condition=lambda:True)s_make_coffee.add_transition(t_finished)s_make_espresso.add_transition(t_finished)t_back_to_sleep=es.transition(s_sleep,identifier="back to sleep",condition=lambda:True)s_done.add_transition(t_back_to_sleep)t_turn_off=es.transition(s_off,identifier="turn off",condition=lambda:workflow[i]=="press off button")s_select_input.add_transition(t_turn_off)sm=es.statemachine([s_sleep,s_select_input,s_make_coffee,s_make_espresso,s_done,s_off])sm.init()# do one step after anothersm.step()
Package: micropython-faulthandler
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-filecmp
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-fileinput
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.