Saravanan666/pypi-org huggingface dataset:
Package: micropm4py
# MicroPM4Py## IntroductionMicroPM4Py is a Python 3/Micropython library that aims to take Process Mining features in power/feature constrained environments, including microcontrollers and embedded systems.The set of supported features is minimal in comparison to other process mining libraries, like PM4Py, and require no Python dependencies to work.Official website: [https://www.micropm4py.org](https://www.micropm4py.org)Micropython website: [https://micropython.org](https://micropython.org)## Target HardwareMicroPM4Py can be virtually run on any hardware, even very old or with very low resources/power consumption or embedded systems, since it is compatible with the Python3/Micropython stacks.MicroPM4Py has been tested at less than 1 MHz on the Unicorn emulator (CPU: Cortex M3, stack: 8 kb, RAM: 64 kb).MicroPM4Py has been physically tested on a Raspberry Pi 3 B+ (4xA53 @ 1.4 GHz, 1 GB LPDDR2 RAM).## InstallationOn any platform running Python 3: the installation can be easily performed using PIP: pip install -U micropm4pyOn Micropython controllers / embedded systems: follow the instructions of your specific board (see the Micropython website). In particular, given the resource constrained environments, some ad-hoc cutting-and-paste of code needs to be done (for example, combining in a single script the XES, PNML and token-based replay).## FeaturesLog importing/exportingXES importer (level A-1, only case ID and activity)XES exporter (level A-1, only case ID and activity)CSV importer (only case ID and activity, support for the specification of the separator)CSV exporter (only case ID and activity, support for the specification of th separatorImporting of DFGs from XES (without keeping the log in-memory)Importing of DFGs from CSV (without keeping the log in-memory)Importing/Exporting of .dfg filesSupport for the insertion of artificial start-end activitiesConversion of log to DFGPetri NetsExecution semantics
* Token-based replay (without support for invisible transitions)
* Alignments (without support for invisible transitions)
* Importing of PNML files
* Exporting of PNML files
* ConversionsConversion of DFG to Petri net (DFG mining)
* Conversion of MicroPM4Py DFG to PM4Py DFG
* Conversion from/to MicroPM4Py log to PM4Py log
* Conversion from/to MicroPM4Py Petri nets to PM4Py Petri nets
* VisualizationsVisualizations
* DOT visualization of DFGS
* DOT visualization of Petri nets
Package: micropolarray
micropolarrayPython open-source module for loading and using micropolarizer array and PolarCam images.InstallationRun one of the following commands in your terminal:pip install micropolarrayORpip install git+https://github.com/Hevil33/micropolarray_masterIf an error message about wheels appear, launch it again.
You can run thetest.pyscript to verify the correct installation of the micopolarray package.FeaturesAutomatic polarization calculationFast and optimized operations on the micropolarizer arrayBasic image cleaning (dark/flat subtraction)DocumentationDocumentation is hosted at ReadTheDocs and can be foundHERE(html format).UsageGet the simplejupyter tutorialfor a brief introduction.After installation, you can import the library in your python applicationimport micropolarray as mlThe main class isMicropolImage(), which can be initialized fromAnumpy2D arrayA list of .fits filenamesAnotherMicropolImage()Some useful member functions are :MicropolImage().show().show_with_pol_params().rebin().demosaic()Information on polarization is automatically calculated and stored in the class members asnumpyarraysMicropolImage().datasingle_pol_subimages.Stokes_vec.I.data.Q.data.U.datapB.data (polarized brightness)AoLP.data (angle of linear polarization)DoLP.data (degree of linear polarization)Additional modulesmicropolarray:.processing.congrid (experimental) : fast congrid operations.convert : raw (binary) files to fits conversion.new_demodulation : image demodulation and demodulation tensor calculation.demosaic : fast image demosaicing.nrgf : occulter finding and roi selection, nrgf filter.rebin : fast image binning.shift : image shifting.cameras (experimental) : classes for sensor informations.image : general image handling.utils
Package: micropress
## MicropressMicropress – Python blog generator for hackers.open sourcejinja templatesconfigurable directories and configssmart file tree organizationmarkdown markupauto detect changes and generationauto uploadauto filling post timelive preview at [http://127.0.0.1:8080](http://127.0.0.1:8080)### Installsudo pip install micropressmicropress init— install default (~/.microrc) and default
templates (~/Documents/Micropress/) directory.### Configvim~/.microrc[system]
author = fluder
host = fluder.co
name = Geek Blog
timezone_offset = 120
post_per_page = 10
exclude_category = How-to[storage]
build = ~/.build/micropress
public = ~/Documents/Micropress/public
templates = ~/Documents/Micropress/templates
pages = ~/Documents/Micropress/sources/pages
posts = ~/Documents/Micropress/sources/posts[sync]
to = remote.host.name:/path/to/www # rsync path
key = ~/.ssh/id_rsa # ssh key for autosync feature[locale]
month = January, February, March, April, May, June, July, August, September, October, November, December
days = Mon, Tue, Wed, Thu, Fri, Sat, Sun### Usagemicropress addpost-namethen just write post, save and exit, working like a
charm.#### Linuxmicropress preview— start webserver previewmicropress watch— start file changes watcher#### Manual modemicropress generate— save public and generated content into build
directory.micropress sync— upload content on production server.### Uninstallpip uninstall micropressrm~/.microrcrm-r~/Documents/Micropresslaunchctl unload-wco.fluder.micropress.watcher.plistlaunchctl unload-wco.fluder.micropress.preview.plistrm-r~/Library/LaunchAgents/co.fluder.micropress.watcher.plistrm-r~/Library/LaunchAgents/co.fluder.micropress.preview.plist### TemplatesTemplate engine is [Jinja2](http://jinja.pocoo.org/docs/), full support
features.### Headers—
title: “”
categories: View name/Link name
time: -        # automatic change on save if autosync enabled
autosync: true # automatic upload after edit
—### Sync options#### S3[sync]
type = s3
bucket = BUCKET_NAME
access_key_id = ACCESS_KEY_ID
secret_access_key = SECRET_ACCESS_KEY#### RSync[sync]
to = remote.host.name:/path/to/www # rsync path
key = ~/.ssh/id_rsa # ssh key for autosync feature#### git[sync]
type = git
key = ~/.ssh/id_rsa # ssh key path, used for github commits
Package: microprocessors
MicroprocessorsExample of Library Usefrommicroprocessors.architechtureimportRiSC16risc=RiSC16()# Properly queue instructionsrisc.encode_instruction('ADDI',1,0,5)# R1 = 5risc.encode_instruction('LUI',2,None,1)# R2 = 1 << (16 - immediate_bits)risc.encode_instruction('ADD',3,1,2)# R3 = R1 + R2risc.encode_instruction('NAND',4,1,2)# R4 = ~(R1 & R2)risc.encode_instruction('SW',3,0,10)# Memory[10] = R3risc.encode_instruction('LW',5,0,10)# R5 = Memory[10]risc.encode_instruction('BEQ',1,2,2)# if R1 == R2, skip next 2 instructionsrisc.encode_instruction('ADDI',6,0,1)# R6 = 1 (skipped if R1 == R2)risc.encode_instruction('JALR',7,0)# R7 = PC + 1; PC = R0# Run all and visalize register at final staterisc.run_program()risc.visualize_state()DocumentationRefer to the in-line comments and method docstrings for detailed usage of each feature.ContributionContributions are welcome! Feel free to submit pull requests, suggest features, or report bugs.LicenseThis library is distributed under the MIT license. SeeLICENSEfor more information.ContactAuthor: Alexandre Le MercierDate: February 20, 2024Email:alexandre.le.mercier@ulb.beLinkedIn:Alexandre Le MercierHappy coding!
Package: micropype
MicroPypeA tiny package to create very basic pipeline executing command lines and/or calling python functions.InstallpipinstallmicropypeAPIHere are the two mains functions you need:cached_runUse it to execute a cammand line.Arguments:cmd: Command lineout_files: One or a list of file path(s) that are created by the command.title:(str, default: None) - A titlelog: (str, default: None) - A path to a log file (text file)versions: (dict, default: None) - A dictionnary giving all the versions that must be loggedraise_errors: (bool, default: True) - Wether to raise python error if the command failed (if True) or just print error in the console and continue (if False)cached_function_callUse it to call a python function.Arguments:func: A callable python object (function)args: List of the argumentsout_files: One or a list of file path(s) that are created by the command.title:(str, default: None) - A titlelog: (str, default: None) - A path to a log file (text file)versions: (dict, default: None) - A dictionnary giving all the versions that must be loggedraise_errors: (bool, default: True) - Wether to raise python error if the command failed (if True) or just print error in the console and continue (if False)Configuration fileCommand lineExampleHere is an example of simple configuration file:{"steps":{"do_ls":true,"do_myfunction":false},"subconfig":[{"name":"firstone","file":"/dflf.txt","values":[0,3,5,10]},{"name":"firstone","file":"/dflf.txt"},]}And then the pipeline:frommicropipeimportcached_run,cached_function_calllog="mylog.txt"out_f="lsOutput.log"cached_run(f"ls -lrt >>{out_f}",out_f,"Listing current folder items",log_f)cached_function_call(myfuntion,[arg1,arg2],[file_1,file_2],title=f"Executing a python function",log=log_f)
Package: micropython-abc
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-adt7410
IntroductionMicroPython Driver for the Analog Devices ADT7410 Temperature SensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_ADT7410To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_ADT7410Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_ADT7410/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_ADT7410/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-adt7410To install system-wide (this may be required in some cases):sudopip3installmicropython-adt7410To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-adt7410Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-adxl343
IntroductionMicroPython Driver for the Analog Devices ADXL343 AccelerometerInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_ADXL343To install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_ADXL343Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_ADXL343/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_ADXL343/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-adxl343To install system-wide (this may be required in some cases):sudopip3installmicropython-adxl343To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-adxl343Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-agps
micropython-agpsFor use withmicropython on GPRS module A9/A9G.ExamplesLocation over internet connection:# Enable data connectionimportcellularcellular.gprs("apn","user","pass")# Get locationimportagpsagps.get_location_opencellid(cellular.agps_station_data(),"api-token")# Please visit https://opencellid.org for getting your API token(3.484547378491735,78.86739615869062)Location using local database:Create a binary database of GSM cells:./bs-dl.py--mcc234--mnc3--circle=-0.118092,51.509865,3-v--tokenapi-token# Please visit https://opencellid.org for getting your API tokenFiltering is done through entriesmcc- mobile country code,mnc- mobile network code andcircle- location and radius of a circle with cells.
All entries are optional, however, the full worldwide database is as large as 1Gb.
Providingmccandmncwill reduce the databse size down to few Mb.
Providing acirclewill further filter data towards the circular area specified: 3 km of urban area results in around 10Kb of data.Note that the token is optional: without a proper token, the script will fall back to a git mirror which may contain outdated data.Then, upload the database to the module (note the file name):ampy--port/dev/ttyUSB0put234-3.binFinally, determine the location (no data connection needed):# Get locationimportagpsimportcellularagps.get_location_local(cellular.agps_station_data(),"234-3.bin")(3.484547378491735,78.86739615869062)Raw dataPlease findhere.
Package: micropython-ags02ma
IntroductionMicroPython Driver for the AGS02MA TVOC sensorInstalling with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_AGS02MATo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_AGS02MAInstalling Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_AGS02MA/examples.jsonTo install directly using a WIFI capable boardmipinstallgithub:jposada202020/MicroPython_AGS02MA/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-ags02maTo install system-wide (this may be required in some cases):sudopip3installmicropython-ags02maTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-ags02maUsage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-ahtx0
micropython_ahtx0MicroPython driver for the AHT10 and AHT20 temperature and humidity sensors.Example usageimportutimefrommachineimportPin,I2Cimportahtx0# I2C for the Wemos D1 Mini with ESP8266i2c=I2C(scl=Pin(5),sda=Pin(4))# Create the sensor object using I2Csensor=ahtx0.AHT10(i2c)whileTrue:print("\nTemperature:%0.2fC"%sensor.temperature)print("Humidity:%0.2f%%"%sensor.relative_humidity)utime.sleep(5)Changelog0.1.2fixed packaging0.1.1fixed code style and typos0.1.0initial release
Package: micropython-aifc
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-array
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-as6212
IntroductionMicroPython Library for the ASM AS612 Temperature Sensor.Installing with mipTo install using mpremotempremotemipinstallgithub:jposada202020/MicroPython_AS6212To install directly using a WIFI capable boardmip.install("github:jposada202020/MicroPython_AS6212")Installing Library ExamplesIf you want to install library examples:mpremotemipinstallgithub:jposada202020/MicroPython_AS6212/examples.jsonTo install directly using a WIFI capable boardmip.install("github:jposada202020/MicroPython_AS6212/examples.json")Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installmicropython-as6212To install system-wide (this may be required in some cases):sudopip3installmicropython-as6212To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installmicropython-as6212Usage ExampleTake a look at the examples directoryDocumentationAPI documentation for this library can be found onRead the Docs.
Package: micropython-ast
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-asynchat
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-asyncio
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-asyncore
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-async-websocket-client
micropython-async_websocket_clientThis module is designed for ESP32 (and other) controllers.
Goal: create and keep alive connection channel with websocket server.
You may send captured data from controlled devices through this channel to server and accept managing signals on your controller.
This data channel works as background task while main control cycle is running too.
The break of websocket channel doesn't corrupt main cycle of control.This project based on:https://github.com/danni/uwebsocketshttps://github.com/peterhinch/micropython-asyncMy gratitudes to authors.requirementsThis module is designed and tested onESP32S-WROOM-32.
Development and tests were done based onesp32-20220618-v1.19.1.bin.installationRun this commands on your controller:You have to reflash your board with [micropython](https://micropython.org/).
Details are explained in https://github.com/Vovaman/start_ESP32_with_micropython.
You may use VSCode as explained in link above or use `picocom` tool (also explained) to connect your board and run python console (REPL) on it.
So, after you are in your board...>>>importnetwork>>>wifi=network.WLAN(network.STA_IF)>>>wifi.active(1)>>>wifi.connect(<name_of_your_wifi_net>,<wifi_password>)>>>importupip>>>upip.install('micropython-async-websocket-client')All needed dependencies are in esp32-20220618-v1.19.1.bin.exampleSample using of this module is inhttps://github.com/Vovaman/example_async_websocket.0.2.0Fix for big data packet.
Author:mutatrum0.1.9Methodclose()is added and example project (see link above) is changed
to demonstrate it.0.1.8Partial support for wss protocol is added.
Author:huytranleDisclaimer!Server and client certificates verification
is not supported in this version.
Waiting for new micropython release...0.1.7Websocket can send custom headers to server inhandshakefunction. Author:pluzmedia0.1.6First release.
Package: micropython-atexit
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-audioop
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-base64
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-bdb
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-binascii
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-binhex
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.