Saravanan666/pypi-org huggingface dataset:
Package: lecore
LE core packageThis is package of core python utils for LE containing:LoogerProprietary LeBin protocolProprietary Modbus RTU register map handling - VisualModbusTest frameLogic Elements devicesInstallInstall or update versionpip install lecore
pip install --upgrade lecoreLE devices - Modbus RTU slaveThe following Modbus RTU devices are supported:RTD Emulator4-channel RTD emulator, seehttps://logicelements.cz/en/products/rtd-emulator.Example of usage:importlecore.Devices.RtdEmulasRE# Create RTD emulator objectrtd=RE.RtdEmul()# Open communication at COM2 (default is COM1) with default COM parametersrtd.open(comport='COM2')# Read serial numbersn=rtd.read(RE.Reg.FACT_SERIAL_NUMBER)# Write stock resistance and betartd.write(RE.Reg.EMUL_NTC_STOCK_RES,10000)rtd.write(RE.Reg.EMUL_NTC_BETA,3977)# Write emulated temperature at output 1rtd.write(RE.Reg.EMUL_TEMPERATURE_1,30.5)VMS-1502 RTD Meter6-channel RTD meter, seehttps://logicelements.cz/en/products/rtd-meter.Example of usage:importlecore.Devices.VmsRtdasRTD# Create RTD meter objectrtd=RTD.VmsRtd()# Open communication at COM2 (default is COM1) with default COM parametersrtd.open(comport='COM2')# Read fixed-point temperature at input 1 (fix-point is multiplied by 100)temp_fp=rtd.read(RTD.Reg.RTD_TEMPER_1)/100# Read floating-point temperature at input 1temp_float=rtd.read(RTD.Reg.RTDE_TEMPER_FLOAT_1)# Write RTD type to PT1000 for input 1rtd.write(RTD.Reg.RTD_TYPE_1,1)Phase Detector6-channel Power Grid Voltage Detector, seehttps://logicelements.cz/en/products/power-grid-voltage-detector.Example of usage:importlecore.Devices.PhaseDetasPE# Create Phase Detector objectpe=PE.PhaseDet()# Open communication at COM2 (default is COM1) with default COM parameterspe.open(comport='COM2')# Read Pulse count on phase input L1count=pe.read(PE.Reg.PH_COUNTER_1)# Clear counts on all phase inputspe.write(PE.Reg.PH_CLEAR_ALL,1)Third-party devicesFG-320Function generator, seehttps://www.profess.cz/en/mms/products/accessories/service-instruments/fg320Example of usage:importlecore.Fg320asFG# Create FG-320 objectfg=FG.Fg320('COM6')# Print FG-320 parameters (serial number, firmware version, etc.)fg.identify()# Generate analog signal with key phase markfg.normal(function="SQ",frequency=10,amplitude=1,dc=0,angle=90,kp_high=11,kp_low=1)fg.write()# Generate current loop signalfg.current_dc(dc=5)fg.write()# Generate speed signalfg.speed(frequency=10)fg.write()LoogerClass Looger allows for sending debug data into Development Debug Server (DDS) a.k.a.
Looger. Public instance run athttps://looger.jablotron.czCreate instance when default public endpoint is to be usedimportlecore# Create Looger objectlooger=lecore.Looger()# Set device propertieslooger.set_device(0x111CC1234,0,None)# Send data collection and text messagedata={'data_1':1,'data_2':2}log=f"Message to log"looger.send(data,log,0)# Send just log messagelooger.send_log(log)
Package: lecroyscope
lecroyscope🤔 What is this?This is an unofficial Python package to interface with Teledyne LeCroy oscilloscopes and read binary trace
files (*.trc).The parsing oftrcfiles is based on
thelecroy-readerproject.⚠️ DisclaimerThe features of this package are based on my needs at the time of writing.
I have done very limited testing, using a single oscilloscope and a few trace files.If you use this package, it is very possible you find a bug or some oversight.
You are encouraged to make apull requestor to create
anissueto report a bug, to request additional features or to suggest
improvements.⚙️ InstallationInstallation viapipis supported.
To install the latestpublished version, run:pipinstalllecroyscopeTo install the package from source, including test dependencies, clone the repository and run:pipinstall.[test]👨‍💻 Usage📖 Reading binary trace files (*.trc)fromlecroyscopeimportTracetrace=Trace("path/to/trace.trc")Trace file header information can be accessed via theheaderattribute:header=trace.header# properties can be accessed directlyprint("Instrument name: ",header.instrument_name)# or as python dictprint("Instrument name: ",header["instrument_name"])# header can also be converted into a python dictheader_dict=dict(header)print("Header keys: ",list(header_dict.keys()))The trace data can be accessed via thetime(x) andvoltage(y) attributes:# time valuestime=trace.time# trace.x is an alias for trace.time# channel voltage valuesvoltage=trace.voltage# trace.y is an alias for trace.voltage📟 Acquisition with LeCroy oscilloscopeimportlecroyscopescope=lecroyscope.Scope("192.168.1.10")# IP address of the scope# print some infoprint(f"Scope ID:{scope.id}")# change to "Sequence" mode with 200 segmentsscope.sample_mode="Sequence"scope.num_segments=200print(f"Sample mode: '{scope.sample_mode}' with{scope.num_segments}segments")# acquire data with a single trigger, timout (fail) after 60 secondsscope.acquire(timeout=60)# Read channel 2 and 3 traces# The data in the scope won't change until next acquisitiontrace_channel2:lecroyscope.Trace=scope.read(2)trace_channel3:lecroyscope.Trace=scope.read(3)# Alternatively, it is recommended to use the TraceGroup class for reading multiple channels from the same triggertrace_group:lecroyscope.TraceGroup=scope.read(2,3)trace_channel2=trace_group[2]trace_channel3=trace_group[3]time=trace_group.time# time values are the same for all traces
Package: lecroyutils
lecroyutilsLibrary to communicate and parse .trc files with/from LeCroy oscilloscopes.This library is based on previous work:File src/lecroyutils/data.py onlecroyparserFile src/lecroyutils/control.py onLecroyScope_python_snippetFeaturesremote control LeCroy oscilloscopes over vxi11does not require additional drivers (no visa)controlling trigger settingsaccessing statisticsdownloading screenshotsview and donwload waveform dataparse LeCroy .trc waveform datasupport for sequence modex and y unitsInstallationlecroyutils is available in the Python Package Index (PyPi). It may be installed with pip:>pipinstalllecroyutilsUsagefromlecroyutils.dataimportLecroyScopeData# Parse a local .trc filedata=LecroyScopeData.parse_file('C2_00000_Lecroy.trc')fromlecroyutils.controlimportLecroyScope,TriggerMode,TriggerType# Connect to a scope over vxi11scope=LecroyScope('127.0.0.1')scope.trigger_type=TriggerType.edgescope.trigger_source='C1'scope.acquire(force=True)data=scope.waveform('C1')scope.save_waveform('C1','C1_00000_Lecroy.trc')RelatedlecroyparserLecroyScope_python_snippetlecroydsopython-vxi11Licenselecroyutils is licensed under theMITlicense.NoticeWe are not affiliated, associated, authorized, endorsed by, or in any way officially connected with Teledyne LeCroy, or any of its subsidiaries or its affiliates. The official Teledyne LeCroy github profile can be found athttps://github.com/TeledyneLeCroy.
Package: lectio.py
lectio.pyPlease note: This library is nowhere close to done.The best way to get data from Lectio with Python 3.The goal of this library,
is to be able to fetch different parts of the Lectio interface in a readable format.You can read the documentationHow do i use this?You can install this library viapip:pip install lectio.pyFor a quickstart guide as well as some examples, you can read the documentationhere.ProgressImplementation progressScheduleUser infoAbsenceMailAssignmentsHomeworkSurveys (Probably not going to be implemented)GradesSearch for students / teachersTodoMake a better READMEQuickstart, Examples, etc.Known bugsNot made to work with teacher accounts (as i have no way of testing anything)ContributingIf you want to contribute, you can just fork this repository and start a pull request.If you notice something that isn't working as intended you can start an issue.LicenseThis repository uses theGNU Lesser General Public License v3.0you can read more about it inLICENSE.
Package: lectioscraper
LectioScraperLectioScraper is a python package for helping you scrape lectio.dk with ease. It uses requests for the actual scraping and beautifulsoup for parsing the html. Scraping lectio.dk can be a tedious task, as it requires so much different html elements to be parsed. and lectio is a big website so there are a lot of different pages to scrape. Here you have everything configured and all you need to do is to import lectioscraper and start scraping (see the whole documentation below).InstallationUse the package managerpipto install lectioscraper.pipinstalllectioscraperUsageimportlectioscraper# Initializes the classclient=lectioscraper.Lectio("username","password","schoolId")# returns your schedule for the day in a json formatclient.getTodaysSchedule(to_json=True)ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.DocumentationYou can find the full documentation athttps://lectioscraper.readthedocs.io/en/latest/?and it's strongly recommended as it's easy to read and gives you a good understanding at how to use this package
Package: lectric-sdk
Lectric Software Development Kit (SDK)Programmatic access to the lectric vector database service.InstallationThe SDK is exposed as a simple python package. There are two main ways it can be installed.DevelopersClone the git repo and install from source:First clone the repo fromhere, thencd lectric/client
python -m pip install -U -r requirements-dev.txt
python setup.py installGenerating the clientpipx install openapi-python-client==0.17.2 --include-depsThis will create theopenapi-python-client.exeexecutable and its dependencies. We require the following versions:- autoflake 2.2.1
- black 24.1.1
- isort 5.13.2
- openapi-python-client 0.17.2
    - httpx.exe
    - openapi-python-client.exe
    - ruff.exe
- poetry 1.7.1Running the testsIn order to run the client (SDK) tests a server running onhttp://localhost:8000, with an appropriatelectric_config.yamlexported as
an environment variable.cd tests
python -m pytest -s .Modifying the SDKThe main wrapper to the auto-generated client is located withinlectric/lectric_client.py.
To refresh/recreate the auto-generated client library. Make sure to run theuvicornfastapi sever from at port8000:uvicorn main:app --reload,then generate the client../generate.shGeneral UsersWe highly recommend installing Lectric within a virtual environment to avoid package
versioning mismatches. ForPython 3.6+Mac/Linuxpython -m venv lectric-env
source lectric-env/Scripts/activateWindowspython -m venv lectric-env
./lectric-env/Scripts/Activate.ps1Then install from our WatchFor PyPI registry as follows:pip install --index-url https://pkgs.dev.azure.com/watchfor/WatchForTools/_packaging/w4Tools/pypi/simple/ watchfor-lectric-sdk==<VERSION>Where<VERSION>is your desired version (at the time of edit0.0.3).Checking InstallationSimply run:import lectric
print(lectric.version()) # Should return a string with the version you installedDocumentationHTML docs are maintained withindocs/build/html. To review docs openindex.htmlwithin any browser.Building the docsInstall the sphinx on the system as per the instructionshere.
A few examples are:Windows:choco install sphinxUbuntu:apt-get install python3-sphinxThis should putsphinx-buildon the path.Then withindocsrunmake html, for html docs.
Package: lecture-automator
Lecture AutomatorLecture Automator позволяет автоматически генерировать презентации с озвучкой для каждого из слайдов. Всё, что вам нужно сделать - написать текстовый файл Markdown со специальной разметкой, а остальное за вас сделает Lecture Automator.УстановкаС помощью pip (также необходимо установить ffmpeg иMarp):pip install lecture-automatorИспользованиеЧерез CLIДля использование необходимо создать Markdown-файл с описаниями слайдов (см.Marp) иуправляющими конструкциями:# Python```print('Привет, мир')```/speech{На этом слайде представлена простейшая программа, написанная на языке програмирования Пайтон. Эта программа просто выводит указанные слова в терминал.}

---# Python```a = 2b = 4print(a * b)```/speech{А здесь представлена другая программа, которая умножается число два на число четыре.}Затем для генерации необходимо использовать следующую CLI команду в терминале:lecture-automatorconvertExample.mdExample.mp4Пример сгенерированного видео:Example.webmЧерез WebLecture Automator может развернуть небольшой сервер с веб-интерфейсом, в котором можно
описывать слайды и тут же генерировать видео с возможность его просмотра прямо в данном
веб-интерфейсе.Для его запуска необходимо выполнить следующую команду:lecture-automatorwebУправляющие конструкцииНа данный момент реализованы следующие управляющие конструкции:/speech{...}- текст для озвучивания слайда (каждый слайд должен содержать данную конструкцию).SSMLТекст речи, указанный в управляющей конструкции/speech{...}, можно дополнительно настраивать с помощью языка разметки SSML, позволяющий настраивать синтез речи. Примеры некоторой разметкиSSML:установка пауз (<break time="2000ms"/>- пауза на указанное количество времени);установка тональности для части текста (<prosody pitch="x-high">Высокий тон</prosody>, см.тональности);установка скорости чтения для части текста (<prosody rate="fast">Быстро</prosody>, смскорости);расстановка ударений (поставить знак+после гласной в слове);разметки абзацев и предложений для автоматической расстановки пауз (подробнее).Пример текста с SSML:# Python```print('Привет, мир')```/speech{<prosody pitch="x-low">На этом слайде представлена простейшая программа</prosody>, написанная на языке програмирования <break time="2000ms"/> Пайтон. Эта программа просто выводит указанные слова в терминал.}

---# Python```a = 2b = 4print(a * b)```/speech{А здесь представлена другая программа, которая умножает число два на число четыре.}Доступные тональностиДоступные тональности:'x-low': 0.6;'low': 0.8;'medium': 1. (нормальный тон);'high': 1.2;'x-high': 1.4 (высокий тон);'robot': 0.Доступные скорости чтенияДоступные скорости чтения:'x-slow': 0.5;'slow': 0.8;'medium': 1.;'fast': 1.2;'x-fast': 1.5.Разметки абзацев и предложенийДля разметки абзацев и предложений существуют два тэга<p>для абзацев и
для предложений.Пример:<p>
 Длинные паузы между параграфами
</p>
<p>
  
Более короткие паузы.

  
Между предложениями.

</p>
Package: led
LED is a utility to generate TLS certificates from Let’s Encrypt and install
them in Docker containers.ObjectivesProvide an elegant command-line interface for provisioning TLS certificates to Docker containers.Enable automatic renewal of Let’s Encrypt certificates via Systemd Timer or Cron.Bootstrap web servers with self-signed certificates.Support both NGINX and Apache httpd👉Initial support will only be for NGINX👈InstallingInstall and update usingpip:pipinstall-UledA Simple ExampleledcreatecertsLinksWebsite:Documentation:License:https://www.gnu.org/licenses/agpl.htmlReleases:https://pypi.org/project/led/Code: _To be released soon…_Issue tracker:Test status:Test coverage:
Package: led-ble
LED BLEControl a wide range of LED BLE devicesInstallationInstall this via pip (or your favourite package manager):pip install led-bleContributors ✨Thanks goes to these wonderful people (emoji key):This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCookiecutterand thebrowniebroke/cookiecutter-pypackageproject template.
Package: led-cube-data
led-cube-dataFile specification used in my LED cube projects. This is still in alpha and expected to change a lot as I work out the praticality of implementing the specification with my projects.
Currently, this package only includes parsers, serializers, and assemblers for Python.The file specification is defined in ksy files and an ods spreadsheet. Both can be foundhere.
Under the objects folder are more ksy files and test binaries.Parsers for other languages can be made easily via theKaitai Struct compiler.
Onlyparser.ksyneeds to be compiled.
It references the other ksy files located under the objects folder and will be compiled as well.
Package: leddite
ledditeTheledditeproject provides an easy to use library and hardware designs, to build and interact with AdaFruit Neopixel led strips. The library provides high-level abstractions that make it easier to display user-specified contents. It also provides a command-line tool and REST API, Documentation links provided below.How to installYou can installledditeusingpippipinstallledditeBasic usage:Usage:
    leddite serve [--port=<port>] [--screen_type=(virtual|physical)] [--height=<virtual_screen_height>] [--width=<virtual_screen_width>] [--hostname=<hostname>] [--debug]
    leddite context set <context-name> [<context-args>] [--hostname=<hostname>] [--debug]
    leddite context info (all|active) [--hostname=<hostname>] [--debug]
    leddite carousel (start|stop|info) [--hostname=<hostname>] [--debug]
Package: ledDriver
# RGB LED DriverThis software can be used to drive an analog RGB LED strip using a raspberry piand Adafruit's [16-channel 12-bit PWM/Servo Driver - PCA9685](https://raw2.github.com/apexskier/rgbLED/master/LED_Strip_bb.png):## The CircuitHere's the basic idea:- Hook up the pi to the PCA9685 breakout board using the I2C connections.- Connect the pi's 3.3V output to VCC on the PCA9685 breakout board. Leave V+floating.- Follow this tutorial for the RGB LED strips:http://learn.adafruit.com/rgb-led-strips/usage- I used N-channel MOSFETs - three of them, one for each channel- Connect the +12V from the LED strip to an external power supply (do NOTuse your pi for this!)- Connect the ground side of the power supply to the pi ground- Instead of using the PWM outputs from the arduino, we'll use the PWMoutputs from the PCA9685.- Connect up the PWM output 0 to the MOSFET with the red wire from theLED strip.  Output 1 goes to green, output 2 goes to blue.![Breadboard image](https://raw2.github.com/apexskier/rgbLED/master/LED_Strip_bb.png)## Dependencies- [WiringPi2 Python](https://github.com/WiringPi/WiringPi2-Python)## UsageThis program is designed to be included as a python module, but also has somecommand line options. It, or any python code importing it, must be run as root(sudo), because of the I2C interface.### CLI Options- `-c [hex color]` - Sets the led strip to the color specified.- `-t` - Runs a test of a couple things. Use as a demo.- `-o` - Turn the led strip off after other actions.### As a module```from rgbDriver import RGBDriverrgb_driver = RGBDriver()```Methods in the module use tuples to describe rgb colors: `(red_value,green_value, blue_value)`.  Each color value can range between 0 and 4095, dueto the PWM driver's 12 bit resolution. The `convert_eight_to_twelve_bit()`method can convert a standard 0 to 255 color value to this scale.To describe a color you can use the string representation of a hex color codeand the method `hex_to_rgb()` to convert it or `set_hex_color()` and`to_hex_color()` to use it directly.The driver keeps a property `current_color` that stores the led strip's currentcolor (in theory). This is used internally to smoothly transition from onecolor to another.Two types of color setting methods exist. `to_...` will transition a colorchange over a set time. The last argument of any `to_...` method is thattransition time in milliseconds (default 300ms). `set_...` will set a colorimmediately.Currently supported methods are:- `to_rgb(rgb, fade=DEFAULT)`, `set_rgb(rgb)`- `to_rand(r_range=(0, 4095), g_range=(0, 4095), b_range=(0, 4095), fade=DEFAULT)`, `set_rand(r_range=(0, 4095), g_range=(0, 4095), b_range=(0, 4095))`- `to_hex_color(color, fade=DEFAULT)`, `set_hex_color(color)`## TODO- I've got a basic single color led strip and an extra N-channel MOSFET that Iwant to control.- Set current_color var after setting up pwm.
Package: ledfx-dev
LedFx website:https://ledfx.app/What is LedFx?What LedFx offers is the ability to take audio input, and instantanously processes the audio into realtime lightshow to multiple LED strips/matrix.
No need to spend hours on end to program one song to program your LEDs, as LedFx will do this all for you!LedFx real-time LED strip music visualization effect controller using is a network based devices (ESP8266/ESP32/Raspberry Pi 4) with support for advanced real-time audio effects! LedFx can control multiple devices and works great with cheap ESP8266/ESP32 nodes allowing for cost effective syncronised effects across your entire house!DemosWe are actively adding and perfecting the effects, but here is a quick demo of LedFx running three different effects synced across three different ESP8266 devices:📑 Quick start guide and documentation📖Windows users can use the installer from the LedFx website:https://ledfx.app/download/Mac and Linux are also supported, though currently do not have installers.
For detailed installation instructions, see theinstallation documentation.😍 Show me how to make one!The below image describes a basic setup - LedFx running on PC, communicating with a WLED Device controlling an LED strip.ComponentExampleComputer running LedFxWindows 10,LedFx.exeNetworked device controlling LED StripESP8266 NODEMCU v3 runningWLEDAddressable LED stripDC5V WS2812B 5 meters 60LED/m IP67Power supply for LED Strip and ESP5V 10 amps LED Power SupplySomething to connect the wires together!Soldering iron/solderBuild your networked LED Strip.For most, this is the difficult step. Dont worry! There’s guides here and online, and plenty of people able to help on WLED and LedFx Discord.Follow the WLED guide to connect the LED strip and ESP together:https://github.com/Aircoookie/WLED/wiki.Flash WLED to the ESP device:https://github.com/Aircoookie/WLED/wiki/Install-WLED-binaryEnsure all WLED devices are powered on, and connected to your Wi-Fi 5Ghz.Test you can access the WLED web interface from your PC. If so, then you’re good to go!Install LedFx.After you have WLED installed on your ESP device, download:LedFx.exeand install LedFx.For Mac and Linux, see theinstallation documentation.Direct computer audio output to LedFx.Follow guide,How to: Enable Stereo Mix in Windows 10.Alternatively useVoicemeeter.Voicemeeter tutorial.Mac users can useLoopbackPlay some music in the background.Start LedFx.Your WLED devices should appear in LedFx, automagically configured and ready to go! 🎆🔥If not, on the left hand side, click on Device Management ->Find WLED devicesbutton, orAdd Deviceto add them manually.If they’re still not showing up, make sure they’re powered on and properly connected to your Wifi.Start using effects!Click on the device, select an effect egscroll(Reactive), and pressSet effectbutton.Your lights should now be reacting realtime to your music! Enjoy the show 🌈🧑‍💻 Join the LedFx CommunityJoin the Discord server to discuss everything about LedFx!ContributingPull requests are welcome. Once tested, contact LedFx developer community on Discord to discuss the next step.Credits:Contributors-&-AboutLicenseMIT
Package: ledge
# ledge[![Build
Status](https://img.shields.io/travis/reichlab/ledge.svg?style=flat-square)](https://travis-ci.org/reichlab/ledge) [![Pypi](https://img.shields.io/pypi/v/ledge.svg?style=flat-square)](https://pypi.python.org/pypi/ledge)Hedging algorithms with lag.Besides the regular setting of ‘prediction with expert advice’, we are
interested in working with truth values with _lags_. This results in a partially
observed truth value for the present (and the past) at each step. In a discrete
time setting with delays in accurate characterization of _final_ truth, a truth
value is specified by:timepoint: The time itselflag: Time the value was revealed -timepoint## Usageledgeis a composed from a bunch of types and functions. It works with
[DataArrays](http://xarray.pydata.org/en/stable/generated/xarray.DataArray.html#xarray.DataArray)
for model _predictions_, _losses_ and _truths_.There is no single model and the user is supposed to _compose_ a model using the
components in here. Each module is written as a literate
[org-mode](https://orgmode.org/) file and contains usage documentation for the
containing functions. Start with the main file./ledge/README.org.