Saravanan666/pypi-org huggingface dataset:
Package: micropython-firebase-auth
micropython-firebase-authFirebase implementationbased onREST API, based onmicropython-firebase-realtime-databasefrom ckoever.InstallationYou can useuPipto install library fromPyPiimportupipupip.install("micropython-firebase-auth")or you can just uploadfirebase_auth/firebase_auth.pyto your microcontroller:pythonpyboard.py-dPORT-fcpfirebase_auth.py:Commands that are implemented- sign_in
- sign_out
- sign_upRequired modulesujson, urequests, time, sysConnect to Wifiimporttimeimportnetworkwlan=network.WLAN(network.STA_IF)wlan.active(True)ifnotwlan.isconnected():wlan.connect("ssid","pass")print("Waiting for Wi-Fi connection",end="...")whilenotwlan.isconnected():print(".",end="")time.sleep(1)print()Create a FirebaseAuth instancefromfirebase_authimportFirebaseAuthauth=FirebaseAuth("API_KEY")The API key is required, read about ithereor you can find it atProject Settings > Generalin your project'sconsoleFunctionssign_inauth.sign_in(email,password)Authenticate a user with email and passwordsign_upauth.sign_up(email=None,password=None)Registers an account with the given email and passwordleaveemailandpasswordempty to sign in anonymouslyauth.sign_up(None,None)# Sign in as guestExample:auth.sign_up("email","password")print("Hello, "+auth.user.display_name)sign_outauth.sign_out()Clears authentication session and stored user dataAttributesuserauth.user:dict()Returns the user data for the currently authenticated userPropertiesuidemaildisplay_name- Optionalphoto_url- Optionalsessionauth.session:AuthSessionTheAuthSessionobject used to handle requests to the backendAuthSessionrequestsession.request(method,endpoint,data=None,method=None,**kwargs)Make a request to anauthendpoint requiring an idToken (theaccessToken) (if method is not None, else an endpoint that returns tokens)access_tokensession.access_tokenGets the access token for use within other Firebase services such as RTDB, Firestore, etc.AuthSession.load_credentialsAuthSession.load_credentials()Reads a stored version of session credentials from acredentials.jsonfileAuthSession.save_credentialsAuthSession.save_credentials(creds)Stores a session credentials object intocredentials.jsonfile
Example:# Storing data on system before going to sleep for 10simportmachinecreds=auth.session.credentialsAuthSession.save_credentials(creds)machine.deepsleep(10000)
Package: micropython-firebase-realtime
micropython-firebase-realtimeGetting startedFirebase auth & realtime database implementation based on REST API,InstallationYou can use uPip to install library from PyPiimportupipupip.install("micropython-firebase-realtime")or you can just upload firebase_realtime.py to your microcontroller'slibfolder, using Tonny IDE.Commands implementedAuthadd_uservalidate_userRealtime DatabaseputpatchpostgetdeleteExamplesfromfirebase_realtimeimportAuth,Realtime# Please provide appropriate project_id# PROJECT_ID = <project_id>real_db_url=f"https://{PROJECT_ID}.firebaseio.com/"auth=Auth()flg,headers=auth.validate_user(email,password,API_KEY)print(flg,headers)realtime=Realtime(real_db_url,headers)print(realtime)flg,data=realtime.put("test123",data={"test1":123})print(flg,data)flg,data=realtime.patch("test123",data_tag={"test2":1232})print(flg,data)flg,data=realtime.patch("test123",data_tag={"test3":1233})print(flg,data)flg,data=realtime.get("test123")print(flg,data)flg,data=realtime.delete("test123")print(flg,data)LicenseFor open source projects, say how it is licensed with GNU 3.0 or laterProject statusWill keep it update as and when needed.
Package: micropython-fnmatch
This is a module ported from CPython standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-formatter
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-fractions
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-ftplib
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-future
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-gc
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-genpy
uPy-genpyThis is a little similar implementation ofgenpyfor uPy. In order to use rosserial with it, having messages classes. For that and automation purposes, this package has been done so that this classes can be done easily. This has been done to be used withuPy rosserial.FeaturesuPy files gen with publish availabilityuPy files gen with subscribe availabilityServicesInstallationCopying source filesIn order to use this package the folderugenpyfromsrcmust be copied to the flash memory. I strongly recommend usingrshellfor this task.There is also a folder calledstd_msgswhich has all default*.msgfiles, this folder can also be copied or any other folder with the wanted message types. For memory purposes not all themsgfiles in that folder must be copied, only the ones that are going to be used.Using upipYou can also installugenpywith upip but have in mind the.msgfiles must be copied, located in the corresponding dir:importupipimportnetworkfromtimeimportsleepwlan=network.WLAN(network.STA_IF)wlan.active(True)wlan.connect('<ssid>','<password>')sleep(5)upip.install('micropython-genpy')Note: To use upip you must be connected to WiFi and the files with std_msgs dir must be included manually.UsageSuppose there is already the dirstd_msgs/ColorRGB.msgand we want to create the uPy file for it, then a script like below can be run:fromugenpy.messageimportMessageGeneratormsg=MessageGenerator('std_msgs/ColorRGBA.msg')msg.create_message()You could verify it has been created with the following:importosos.listdir('std_msgs')Classesugenpy.message.MessageGeneratorConstructorugenpy.message.MessageGenerator(addr)Class responsible of writing the*.pyscript and message class from*.msg.addr: address where the.msgfile is located inside the microcontroller.Methodsugenpy.message.MessageGenerator.create_message()Creates the message from the address already defined in constructor.
Package: micropython-getopt
This is a module ported from CPython standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-getpass
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-glob
This is a module ported from CPython standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-googlesheet
MicroPython-GoogleSheetUpdate or append the data to Google Sheet, or get the data on Google
Sheet. by using HTTP to execute the Google Apps Script API. Compatible
with ESP32 and ESP8266.Full DocumentationGithub:https://github.com/PerfecXX/MicroPython-GoogleSheetQuick Example# Import LibraryfromggsheetimportMicroGoogleSheetfromnetworkimportWLAN,STA_IF# Network Creadentialssid="Change_SSID"password="Change_Password"# Connect to Networksta_if=WLAN(STA_IF)sta_if.active(True)ifnotsta_if.isconnected():print("Connecting to wifi: ",ssid)sta_if.connect(ssid,password)whilenotsta_if.isconnected():passprint("Connection successful")# Google Sheet Credentialgoogle_sheet_url="https://docs.google.com/spreadsheets/d/xxxxxxxxx/edit#gid=0"google_sheet_name="Sheet1"google_app_deployment_id="xxxxxxxx"# Create Instanceggsheet=MicroGoogleSheet(google_sheet_url,google_sheet_name)ggsheet.set_DeploymentID(google_app_deployment_id)# create the Google App Script file (not necessary if it already exists).ggsheet.gen_scriptFile()# Update the data to a specific cell (Row,Column,Data)ggsheet.updateCell(1,1,"Hello this is my first data")# Get the data from a specific cell (Row,Column)print(ggsheet.getCell(1,1))# Delete the data from a specific cell (Row,Column)ggsheet.deleteCell(1,1)# Append the data to a specific row (Row, Data List)ggsheet.appendRow(1,[1,2,3,"Row 1 Appended!"])# Update the data in a specific row (Row, Data List)ggsheet.updateRow(1,[3,2,1,"Row 1 Updated!"])# Get all of the data from a specific row (Row)ggsheet.getRow(1)# Delete the data in a specific row (Row)ggsheet.deleteRow(1)# Append the data to a specific column (Column, Data List)ggsheet.appendColumn(1,[1,2,3,"Column 1 Appended!"])# Update the data to a specific column (Column, Data List)ggsheet.updateColumn(1,[3,2,1,"Column 1 Updated!"])# Get all of the data from a specific column (Column)ggsheet.getColumn(1)# Delete the data in a specific column (Column)ggsheet.deleteColumn(1)
Package: micropython-grp
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-h3lis200dl
IntroductionMicropython Driver for the ST H3LIS200DL AccelerometerInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_H3LIS200DLTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_H3LIS200DLInstalling Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_H3LIS200DL/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_H3LIS200DL/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-h3lis200dlTo install system-wide (this may be required in some cases):sudopip3installmicropython-h3lis200dlTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-h3lis200dlUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-hashlib
This is a module ported from PyPy standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-hashlib15
This is a module ported from PyPy standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-hashlib3
This is a module ported from PyPy standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-hashlib5
This is a module ported from PyPy standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-hashlib9
This is a module ported from PyPy standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-hashlib-safe
This is a module ported from PyPy standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-hdc1080
IntroductionMicroPython driver for the TI HDC1080 Temperature and Humidity sensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_HDC1080To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_HDC1080Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_HDC1080/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_HDC1080/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-hdc1080To install system-wide (this may be required in some cases):sudopip3installmicropython-hdc1080To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-hdc1080Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-heapq
This is a module ported from CPython standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-hmac
This is a module ported from CPython standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-hs3003
IntroductionMicroPython Driver for the Renesas HS3003 Temperature and Humidity SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_HS3003To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_HS3003Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_HS3003/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_HS3003/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-hs3003To install system-wide (this may be required in some cases):sudopip3installmicropython-hs3003To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-hs3003Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-html
This is a module ported from CPython standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-html.entities
This is a module ported from CPython standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-html.parser
This is a module ported from CPython standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-hts221
IntroductionMicroPython Driver for the HTS221 Humidity SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_HTS221To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_HTS221Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_HTS221/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_HTS221/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-hts221To install system-wide (this may be required in some cases):sudopip3installmicropython-hts221To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-hts221Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-http.client
This is a module ported from CPython standard library to be compatible with
MicroPython interpreter. Usually, this means applying small patches for
features not supported (yet, or at all) in MicroPython. Sometimes, heavier
changes are required. Note that CPython modules are written with availability
of vast resources in mind, and may not work for MicroPython ports with
limited heap. If you are affected by such a case, please help reimplement
the module from scratch.
Package: micropython-http.cookiejar
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-http.cookies
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.