Saravanan666/pypi-org huggingface dataset:
Package: ledwall
LED Wall Python LibraryA simple but powerful python library to manipulate WS2812b LED panel.
Panels cand be connected via USB cable or accessed via UDP. This library only supports Python 3 but is OS independent.The library is intended to be used in conjunction with aa arduino or nodemcu tat controls a bunch of LEDs. Of course, you can write sketches to controll the LEDs directly in c using the arduino ide. But using python on a raspberry or some other computer will offer you more flexibility and speed in development. Also, you can leverage from wide range of existing python libraries. With just a few lines of code, you can integrate gamepads using the awesome inputslibrary.For more information, examples, installation guides and the arduino/nodemcu sketches checkout my gitrepository.Also anonline documentationfor the library is available onreadthedocs <https://readthedocs.org>_.Example scriptThe following script shows the basic usage of the library. I tried to keep things pythonic.importledwall.componentsascomp# Create a new display instance. Using a SerialSender to# send the color data to the arduino.# Setting the desired framerate is 15s=comp.SerialSender(portName='/dev/ttyACM0',baudrate=1000000)d=comp.Display(16,32,s,framerate=15)# Defining a few basic colorsred=comp.RGBColor.fromIntValues(255,0,0)green=comp.RGBColor.fromIntValues(0,255,0)d.fill(green)d.setPixel(0,3,red)d.setPixel(14,23,red)d.update()
Package: ledworks
ledworksledworks is a Python library for creating LED strip animations.Example animation class:classHueComet(ledworks.Animation):@ledworks.cycle(seconds=4.0,reverse=False)defcycle(self,interval:float,led:ledworks.LEDContext):color=ledworks.utils.hue(self.time*1.61)duration=randint(self.strip.count//30,self.strip.count//3)*intervalself.strip.assign(led,ledworks.rate.fade(color=color,duration=duration))And its output on the PygletPlayer:
Package: lee
Yet Anther LeetCode CliApi is similar to gitlee ls
lee ls 1lee pull
lee pull 1lee push
lee push 1installsudopipinstalllee==2.3.0helpusage:main.py[-h][-p][-r][-d][-j]{ls,pull,push,log}...

positionalarguments:{ls,pull,push,log}lslistquestions,solutionpullpullquestionrelatedfilestolocaldiskbypushpushfiletoserverlogstatusofserver

optionalarguments:-h,--helpshowthishelpmessageandexit-p,--proxyautoproxyat127.0.0.1:18888fordebug,andignoreSSLcertificateverification(default:False)-r,--refreshgetrequestwillrefreshcache(default:False)-d,--debugdebugmode.debugloggerwilloutput(default:False)-j,--jsonpurejsonoutput(default:False)development# tox for distributemakedevtodowork with fzfsupoort leetcode.com, and it should be easrautomatically  cache your language setting. every time you specify you language with -l, it will change automaticallythxleetcode-cli. :)
Package: leech-tentacle
The Tentaclemound-like tentacles groping from underground nuclei of polypous perversion...overviewThe Leech Platform works by sending out tentacles to extract (leech) data from a single identified source.
These tentacles perform the extracting and processing to produce JSON objects representing the data, which
they broadcast back to the Nucleus.extraction flowRetrieve configuration regarding the IdSource and the DataSource from the tentacle's storage levelBuild the ExtractionConfiguration and the SourceConfiguration, which jointly contain the details of how to extract
and process a specific type of extraction.Perform the extraction, the details of which are specific to each individual tentacle.Process the extracted data, transforming it to a list of standardized JSON objects.Broadcast the JSON objects to the Nucleus.leeching dataTo understand why the tentacle operates as it does, one must first understand how the Leech conceptualizes data.
All data belongs to someone or something. In addition, all data must be stored somehow. In order for the leech to
extract data, it must first have these two parameters defined. We refer to them as an IdSource and a DataSource.IdSourceAn IdSource is the who of the data. Who owns the data, and therefore dictates what goes into it? They are the source
of the individually identifiable data assets, which will ultimately carry the identifier as id_source. An id_source
could be a business, a health care organization, or a user on a mobile app.DataSourceA DataSource is the how of the data. How is the data stored, and how will the tentacle extract it? A DataSource could
be an API, a website that we scrape, a brand of IOT device, or a platform such as Google G Suite.DataAssetA DataAsset is a single identifiable entry from a DataSource, represented as a JSON object. It has a globally unique
identifier, the asset_id, as well as a capture_timestamp, an asset_type, an id_value, id_source, and source_name (DataSource).
In addition, it has asset_data, which contains all the extracted data for the asset.ExtractionA single extraction may retrieve one DataAsset or it may retrieve thousands. Multiple extractions can capture the
same asset_type. An Extraction is executed according to an ExtractionConfig and a SourceConfig.ExtractionConfigThe blueprint for how to execute a single type of extraction against a single DataSource. It includes all the
parameters needed to run the extraction and process the resulting data.SourceConfigContains parameters for a given DataSource which are specific to an IdSource. For example, if multiple businesses all
use one commercial database, the SourceConfig might contain a username and password for a single business.
Package: leedcameragui
LCG:GUI for LEED Device and CCD-camera ControlThis project is a graphical user interface (GUI) designed to control a SPECS ErLEED digital controller and a CCD-camera from The Imaging Source.The application allows users to manage settings of the camera and the ErLEED.Thereby, the user is able to get camera and ErLEED device state, to capture images, change several camera properties (e.g. brightness, gain, and exposure time) and set the kinetic energy of the LEED electrons.
The program includes the possibility to record I(V)-series.This application is divided into three parts:The main GUI, which is started runninggui.pyTheLEEDDeviceclass, which handles all the communication with the ErLEED device,And the `CameraDevice class, which handles the camera.The CameraDevice as well as the LEEDDevice class could be used independently in other projects.InstallationPrerequisitesThe code was written and tested using Python 3.10.12, however it should run on other Python 3.xx.xx as well.Please make sure, that your installation contains all the following packages:opencv-python>=4.8.1.78
Pillow>=9.0.1
numpy>=1.26.2
toml>=0.10.2Program was tested using the given versions, probably will work with some older versions too.Install requirements e.g. using:pip install -r requirements.txtSteps to install LCGClone this repository.Install Python (if not already installed).Install required Python libraries usingpip install -r requirements.txt.Inside the cloned folder, runpython gui.pyto start the application.UsageLaunch the application by running gui.py.The main window holds in the upper half on the left the livefeed of the choosen camera. On the right side of the upper half, the last saved image will be displayed.Use the buttons to perform specific actions like setting energy levels, capturing images, and recording I(V)-image series. Status of the LEED device as wel as of the camera feed are displayed as well.TODO: explain I(V) handling as well as calibration curve.By pressingÒpen Settings, the settings window will appear, where you are able to manipulate camera settings as well as generate a gain calibration curve for I(V) image series. In addition, arbitrary commands to the ErLEED could be send here too.ConfigurationIn theconfig.tomlfile, several configuration properties are available:TODO: List properties and explain handling of config fileContributingContributions to this project are welcome! Please fork the repository, make changes, and submit pull requests. Bug reports, feature requests, and feedback are appreciated.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.CreditsContributors:Julian Hochhaus
Package: leeeeon4-test-package
Leeeeon4 Test PackageA test package created to learn best practices regarding creating packages.Free software: MIT licenseDocumentation:https://leeeeon4-test-package.readthedocs.io.FeaturesCan list ingredients as in presented course example.This is just a test.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.This package was build as part of the Course:Creating and Distributing Python Packages.History0.0.1 (2021-09-09)First release on PyPI.
Package: leegs
LinkedIn Employee Extraction and Gender eStimation (LEEGS)Installation$ pip install leegsSee Options$ leegs --helpRun Challenges 1 & 2 for 20 employees$ leegs hubspot -at 20How It WorksLeegs is a powerful tool that allows you to scrape LinkedIn profiles and then uses AI to guess the gender of the employees. This can be extremely useful in diversity hiring initiatives. It completes the job by breaking it into smaller tasks, like an assembly line. First, leegs goes to the profile page of the company scrapes the links to the profiles of all their employees that have public profiles on LinkedIn. Then, it uses multiple threads to crawl the profile links concurrently and extract employee information. Finally, it sends the profile pictures from each employee that had one through an open source gender detection software, DeepFace (a smaller open source one, not the Meta one).Under the hood, the majority of the speedups come fromemployee_scraper.pywhere it runs browsers in various threads in order to speed up employee data extraction. By splitting up the employee load between threads, they can each log in to a different account making sure none of them get flagged. This allows me to keep extracting lots of data without needing loads of accounts. In the case that an account does get banned, the thread is removed and the profile links it couldn't crawl are spread among the other threads. This ensures that leegs can always complete the job, even if there's a faulty piece.The image prediction model used is called DeepFace. It is a tool to create image detection models or use pre-trained ones. I chose to use retina net. It is a Convolutional neural network that is trained on over a million images with over 1000 different people to predict if an image is of a male or female. The model outputs a prediction for each image and the leegs scraper keeps track of the gender output for each employee.Full CLI functionalityget info & gender detection on one employee$ leegs employee -al https://www.linkedin.com/in/<employeeID> -p photos  #### get hubspot employee data for 20 employees without downloading their profile picscrawl through a file of profile links must be a .txt file$ leegs employee -f filename.txt -p photos LinkedIn Profile Scraper & Gender Classification
Package: leek
中文文档|English Docs任务发布消费中间件功能描述比scrapy更灵活,比celery更容易上手的分布式爬虫框架。用最少的代码,用最简单的方式,做最多的事情1分钟内能熟练运用该框架爬取数据,无需学习复杂文档.轻松扩展各种中间件特色说明：支持多中间件：
    支持reids kafka sqlite memory 四种中间件(首推redis,支持批量发布任务,分布式消费快如闪电)

 并发支持：
    支持process threading gevent三种并发消费模式(可混合使用)

 控频限流：
    精确控制1秒钟运行多少次函数

 任务去重：
    如果重复推送消费成功的任务,自动过滤掉该任务

 消费确认：
    启用消费确认,消费任务宕机手动终止情况,任务不会丢失

 重试次数：
    当函数运行出错，会立即重试指定的次数，达到最大次重试数后任务会进入死信队列                  

 任务过期机制：
    如果设定某个任务过期时间,任务超过设定过期时间还未消费,则会自动丢弃该任务

 死信队列任务重新消费
    进入死信队列任务支持手动重入队列重新消费pip安装pipinstallleek1.发布任务和消费任务fromleekimportTaskPublisher,TaskConsumerforzzinrange(1,11):TaskPublisher(queue_name='test1').pub(a=zz,b=zz)defprint_msg_dict(a,b):print(f"t_demo1:{a},{b}")TaskConsumer(queue_name='test1',consuming_function=print_msg_dict).start()2.发布任务和消费任务(更多参数实例)fromleekimportget_consumerdeff(a,b):print(f"a:{a},b:{b}")print(f.meta)consumer=get_consumer('test2',consuming_function=f,process_num=3,ack=True,task_expires=10,batch_id='2021042401')foriinrange(1,200):consumer.task_publisher.pub(a=i,b=i)consumer.start()3.发布任务和消费任务(装饰器版本)fromleekimporttask_deco@task_deco('test3')# 消费函数上新增任务队列装饰器deff3(a,b):print(f"t_demo3,a:{a},b:{b}")# 发布任务foriinrange(1,51):f3.pub(a=i,b=i)# 消费任务f3.start()消费函数参数详解get_consumer(queue_name='test11', consuming_function=f, process_num=2, threads_num=30, max_retry_times=5, qps=10, task_expires=60, batch_id='test_v1.0')
:param queue_name: 队列名称
:param consuming_function: 队列消息取出来后执行的方法
:param process_num: 启动进程数量(默认值:1)
:param threads_num: 启动线程数(默认值:8)
:param max_retry_times: 错误重试次数(默认值:3)
:param qps: 每秒限制消费任务数量(默认50)
:param middleware: 消费中间件,默认redis 支持sqlite ,kafka, memory
:param customer_type: 消费者类型 string 支持('thread','gevent') 默认thread
:param fliter_rep: 消费任务是否去重 bool True:去重 False:不去重
:param filter_field: 消费任务去重的字段,当fliter_rep为True时有效
:param max_push_size : 每次批量推送任务数量 默认值50
:param ack : 是否需要确认消费 默认值True
:param task_expires : 任务过期时间 单位/秒
:param batch_id : 批次id
:param re_queue_exception : 需要重入队列的异常redisweb通过浏览器查看任务消费情况
Package: leekoq
LeeKoqThis project is an open source pure Python 3 implementation of Microchip's KeeLoq propietary
encryption algorithm, used in their series of KeeLoq remote key entry (RKE) devices.Amongst others, these devices include:Microchip HCS200Microchip HCS301Electronic Giant EG301Usage exampleThis project literally has two methods, so using it is pretty straightforward:>>> import leekoq
>>> key = 0xCAFED00D
>>> cipher = leekoq.encrypt(0x12345678, key)
>>> hex(cipher)
'0x260afde3'
>>> plain = leekoq.decrypt(cipher, key)
>>> hex(plain)
'0x12345678'Keys are 64-bit integers, and cipher- and plaintexts are 32-bit integers.LicenseThe code of this project is licensed under the Do What The Fuck You Want License, version 2:DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>

 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.KeeLoq is a registered trademark of Microchip Technologies Inc.Please note that neither the author is not affiliated with, nor this project is endorsed by
Microchip Technologies, Inc.
Package: leekspin
An Onion Router descriptor generatorLeekspin (á lathe original internet masterpiece)
is a small tool for generating mock Onion Router (OR) descriptors such asthose used by relays,bridges, and Hidden Services (HS)
withinthe Tor networkin order to convey information about said
relay, bridge, or Hidden Service to the Tor directory authorities, the bridge authority, Tor
clients connecting to the network, and/or other relays within the network.This tool is meant to be used to generate mock descriptors for testing or
fuzzing other Tor libraries and programs, such asStem,BridgeDB, andTor.  The keys, hash digests, and
signatures generated within these mock descriptors are meant to be
indistinguishable from those generated by real relays, bridges, and Hidden
Services within the Tor network.authors:Isis Lovecruft<isis@torproject.org>licence:MIT licence, seeLICENSEfile for detailscopyright:© 2013-2016 Isis Lovecruft, The Tor Project, Inc.InstallingThe very simplest way, if you usepip, would
be to do:$ pip install leekspinOtherwise, the standard setuptools commands work just fine:$ git clone https://git.torproject.org/user/isis/leekspin.git
$ cd leekspin
$ python setup.py install --record installed-files.txtRunningLeekspin will install a script named…leekspin. To use it to generate
twenty-three Bridge descriptors, do:$ leekspin --bridge -n 23And to generate forty-two Relay descriptors:$ leekspin --relay -n 42And, likewise, to generate ten hidden service descriptors, do:$ leekspin --hidden-service -n 10Commandline Flags$leekspin-husage:leekspin[-h][[-v|-q][--version][-r|-b|-hs][-nDESCRIPTORS]Generateasignedsetofnetwork-status,extra-info,andserverdescriptordocumentsformockTorrelaysorbridges.Optional arguments:-h,--helpshow this help message and exit-v,--verboseprint information to stdout-q,--quietdon’t print anything--versionprint leekspin version and exitDescriptor types:-r,--relaygenerate Relay descriptors-b,--bridgegenerate Bridge descriptors-hs,--hidden-servicegenerate Hidden Service rendezvous descriptorsDescriptor variations:-xt,--without-tapgenerate descriptors without TAP support, e.g. without RSA keys-xn,--without-ntorgenerate descriptors without ntor support, e.g. without Ed25519 keysRequired arguments:-nDESCRIPTORS,--descriptorsDESCRIPTORSgenerate <n> sets of descriptorsBugsShould you decide to use this tool, and especially should you be so insane as
to try hacking on it, you will likely find bugs. You may find bugs in
Leekspin, BridgeDB, Stem, Tor’sspecifications, and possibly
even in Tor. Please, for math’s sake! Report them! The Tor developers will love
you forever. You canreport bugs on our issue tracker here.
Package: leen
leenA package to judge whether a EBI code correspond to a sentenceRequirementstorch 8Python >= 3.5InstallationYou can use pip to install our package, similar to other packagespip3installleenimportleen.testaslele.same(EBI-id,sentence)#note that both parameters should be enclosed in quotations when typing pure stringle.description(EBI-id)#also, EBI-id should be quotatedUsagedescription(EBI-id)a fuction getting the description corresponding to idcodeinput:str EBI-idreturn:str descriptionsame(EBI-id, sentence)a function judging whether a EBI-id correspond to a description，return True/Falseinput:str idcode,str sentenceoutput:bool True/FalseNoteparameters should be enclosed in quotations when typing pure stringtorch 8is Indispensable when using our packageFAQWhat isEBI-idin the description ofusageabove?It is the accession number of the interaction in the IntAct database.How can I contribute to the project?Our project is on "https://gitlab.com/BioAI/leen" ,your contribution is highly appreciated.
Package: leer
Experimental cryptocurrency written in python; implements LubbaDubDub technology to conceal transacted volume.Leer is in beta-testing phase. Coins on testnet will NOT have any value and will NOT be transferred to mainnet.## Requirements
Currently works only on linux.Python 3.5+pipg++, cffi, build-essential forlmdbpackage## Installationpip3 install leer## Run node
Download [config.json](https://github.com/WTRMQDev/leer/blob/master/scripts/example_config.json) and adjust config (file extension doesn’t matter). It is necessary to insert login and password in double quotes into config.Run node: open terminal and runpython3 -m leer path/to/configAfter start web interface will be available on configured rpc port (open in browser addresshost:port, for default config it is127.0.0.1:9238).## Run testnet miner
Download [miner script](https://github.com/WTRMQDev/leer/blob/master/scripts/miner.py), adjust config (host and port) and run.
Package: leesah-game
LEESAH PythonLeesah-game er et hendelsedrevet applikasjonsutviklingspill som utfordrer spillerne til å bygge en hendelsedrevet applikasjon.
Applikasjonen håndterer forskjellige typer oppgaver som den mottar som hendelser på en Kafka-basert hendelsestrøm.
Oppgavene varierer fra veldig enkle til mer komplekse.Python-bibliotek for å spille LEESAH!Kom i gangDet finnes to versjoner av Leesah-game!
En hvor man lager en applikasjon som kjører på Nais, og en hvor man spiller lokalt direkte fra terminalen sin.
Dette biblioteket kan brukes i begge versjoner, men denne dokumentasjonen dekker kun lokal spilling.
Vi har et eget template-repo som ligger undernavikt/leesah-game-template-gofor å spille Nais-versjonen.Hent credentialsSertifikater for å koble seg på Kafka ligger tilgjengelig påleesah-game-cert.ekstern.dev.nav.no/certs, brukernavn og passord skal du få utdelt.
Du kan også bruke kommandoen nedenfor:wget--user<username>--password<password>-Oleesah-creds.ziphttps://leesah-game-cert.ekstern.dev.nav.no/certs&&unzipleesah-creds.zipEksempelkodeNedenfor er det et fungerende eksempel som svarer på lagregistreringsspørsmålet med et navn du velger, og en farge du velger:"""The Leesah quiz game client.# 1. Ensure credential files are in the certs directory# 2. Set `TEAM_NAME` to your preferred team name# 3. Set `HEX_CODE` to your preferred team color"""importleesahTEAM_NAME="CHANGE ME"HEX_CODE="#0DBABE"defhandle_questions(question:leesah.Question):"""Call when a question is received from the stream.The return value is your answer to the question."""print(f"Received question:{question}")ifquestion.category=="team-registration":returnHEX_CODErapid=leesah.QuizRapid(TEAM_NAME)rapid.run(handle_questions)Kjør lokaltVi anbefaler at du bruker et virtuelt miljø for å kjøre koden din, som for eksempelVenv.For macOS/Linuxcdleesah-game-starter
python3-mvenvvenvsource./venv/bin/activateFor Windowscdleesah-game-starter
python3-mvenvvenv
.\venv\Scripts\activateEr kun en avhengighet du trenger, og det erleesah.python3-mpipinstallleesahKjør koden din med:python3main.py
Package: leet
leetCommand-line tool and library forleeting text.Library uses following vocabulary:OriginalReplacementA a@E e3I i1O o0S s5InstallationpipinstallleetCommand-line usageleetHello,world!>H3ll0,w0rld!Library usagefromleetimportleetprint(leet('Hello, world!'))PerformanceIs applicable for python 3.5+. Python 3.4 and lower would be slower.Str lengthIterationsTime51210000.007164kb10000.14581mb1000.15221mb100.015410mb20.0298VersioningThis software followsSemantic Versioning
Package: leetcode-cracker
Leetcode Cracker InfoLeetcode Cracker is a Python package that allows you to get LeetCode question explanations and answers. LeetCode is a popular online platform for practicing coding skills and preparing for technical interviews. LeetCode offers hundreds of problems covering various topics, such as arrays, strings, trees, graphs, dynamic programming, etc. However, sometimes the official solutions and explanations are not clear enough or not available at all. Leetcode Cracker solves this problem by providing you with detailed and easy-to-understand explanations and answers for any LeetCode question. You can soon use Leetcode Cracker to:Search for a specific question by its title or IDGet a summary of the question, including its difficulty level, acceptance rate, tags, and company frequencyGet a step-by-step explanation of the optimal solution, along with the time and space complexity analysisGet the Python code for the optimal solution, along with comments and test casesCompare your code with other solutions and learn from different approachesLeetcode Cracker is designed to help you improve your coding skills and ace your technical interviews. It is easy to install and use.How to use the packageImport the package:pip install leetcode-crackerImport package locally:from leetcode_cracker import question_392Call for question:question_392.print_question()Call for solution:question_392.print_solution()Call for solution statsquestion_392.solution_stats()Question DatabaseEasyQuestion 1 - Two SumQuestion 9 - Palindrome NumberQuestion 35 - Search Insert PositionQuestion 58 - Length of last wordQuestion 66 - Plus OneQuestion 67 - Add BinaryQuestion 70 - Climbing StairsQuestion 118 - Pascal TriangleQuestion 119 - Pascal Triangle 2Question 121 - Best time to buy and sell stockQuestion 169 - Majority ElementQuestion 217 - Comtains DuplicateQuestion 231 - Power of twoQuestion 258 - Add DigitsQuestion 263 - Ugly NumberQuestion 268 - Missing NumberQuestion 278 - First bad versionQuestion 283 - Moving ZerosQuestion 326 - Power of threeQuestion 342 - Power of FourQuestion 367 - Valid Perfect SquareQuestion 392 - Is SubsequenceQuestion 509 - Fibbinachi NumbersQuestion 728 - Self Dividing NumbersQuestion 1137 - Tribonacci NumberQuestion 1480 - Running Sum of 1d arrayQuestion 2235 - Add Two IntegersQuestion 2469 - Convert the TempretureMediumQuestion 22 - Generate ParanthesesQuestion 43 - Multiply StringsQuestion 46 - PermutationsQuestion 47 - Permutations 2Question 50 - Pow(x, n)Question 371 - Sum of two integers