Saravanan666/pypi-org huggingface dataset:
Package: lifxtools
lifxtools[NOTE]: This readme is a work-in-progress. If you require any specific information, please submit a github issue. I will try my best to address any questions you have in this readme once I get the chance. Thanks! :)[NOTE]: For the moment, live_audio_level.py is WAAAAY less responsive on Windows than on Linux, this is being worked on.[NOTE]: The latest version of a dependency (PyAudio v0.2.11) doesn't support the most recent version of python (3.7.4) on Windows 10 as of this commit (2019/10/07 @ 07:75PM)[NOTE]: Mac requires a method to pipe your desktop audio into an audio input, soundflower can be used for thisStarting scriptsEnsure you've navigated to the root of the repo after cloningGUI (WIP)Linuxpython3 -m lifxtoolsReal-time Audio VisualiserLinuxchmod +x live_audio_level.py(ensure live_audio_level.py is executable)python3 -m venv venv(set up a venv)source venv/bin/activate(activate the venv)pip install -r requirements.txt(install the necessary requirements)./live_audio_level.py(launch the script)Notable usagesaverage_screen_color.py(Ultra-slow fade mode)
Stanley Kubrick's A Clockwork Orange is well enhanced by the effect of average_screen_color.py; first few minutes of the film are of particularly strong effect.(Slow fade mode)
Blade Runner (1997). Movie full of both muted and vibrant tones. Takes full advantage of the vividness of the colour of lifx bulbs(Game fade mode)
Half-Life 2: Episode 1. The first few levels of this game are truly awesome with live colour averages.TodoPublic Transport API IntergrationIntergration for multiple public transport APIs. This will involve making a package to translate multiple APIs to the general format (which is likely object-based)Planned APIs to intergrate:PTV (Public Transport Victoria)Better colours for "Dusk and Dawn" lifx bulbsThe plan:color conditioneffectblue > redcooler lightblue == redneutral lightblue < redwarmer lightAdd preferences for monitor refresh relatedWith the addition of benchmarking capabilities available to the user, this will allow users to compare their color average processing time with the refresh rate of their displays. Ideally, this number should be as close to matching as possible (with consideration for network speed also)Don't send packets if colour is identical to last sent colourThis has the intention of saving network bandwidth (and potenially a small amount of processing time)Add firewall issue detectionAdd tests for if a firewall is in place and whether it may cause issues for the scripts, if it's detected that it will, return a verbose error to the user to help them rectify the issue.
Package: ligand
ligand 🔌A local entrypoint to cloud compute, built for bioinformaticians.Note that this repo has not had an official release yet and is still experimental!Quickstartpip install ligandThen in any script:importligand# Make sure the init is directly beneath your imports!ligand.init()# And above the code you want to run.Thats it. Told you it was easy...Now just run your script like you would normally, ie.python train.pyand it
will run on the cloud.FeaturesBusy building, coming soon...AcknowledgementsArchitectural decisions and subroutines, especially with respect to interaction between a
compiled daemon and a python SDK, were inspired or borrowed from thereplicate.aiproject.
Package: ligature
Ligature is a Python library that builds up ways of stitching data together.It builds from low to high level abstractions, demonstrating how they work together.The goal is to make data composable, but also to make sure it's clear exactly what is being done at any given stage.The core functionality:RecordSets form the core of Ligature. A list of tuples of tuples, this provides a framework for chunky updates in a (mostly) immutable data structure.Scanners iterate RecordSets and provide iterators that scan RecordSets in a column-like way while still maintaining row-based chunks.Transforms and Composables allow Scanners to be mapped to RecordSets and perform generator-like updates, creating new RecordSets and making chains of calculations possible. These are evaluated lazily by default, allowing data to be updated and computed in asynchronous chunks and resolved on demand (if desired).
Package: ligeia
ligeiaPython3 Package for voice synthesis using eSpeak and PicoTTS.InstallationInstall with pippip3 install -U ligeiaUsageIn [1]: from ligeia import eSpeak, PicoTTS, VoiceController

In [2]: voice_controller = VoiceController()

In [3]: voice_controller.load_voice(PicoTTS)

In [4]: voice_controller.say("Hello world.")

Say (Silent: False) > Hello world.

In [5]: voice_controller.load_voice(PicoTTS)

In [6]: voice_controller.generate_file(destiny_path="picotts_hello.wav", text="Hello world")
Out[6]: CompletedProcess(
    args='pico2wave   --lang en-US --wave hello.wav "hello world"', returncode=0
    )

In [7]: voice_controller.load_voice(eSpeak)

In [8]: voice_controller.say("Hello world.")

Say (Silent: False) > Hello world.
/bin/sh: 1: Syntax error: Unterminated quoted string

In [9]: voice_controller.generate_file(destiny_path="espeak_hello.wav", text="Hello world")
Out[9]: CompletedProcess(
    args='espeak -v en  -p 30 -a 200 -w hello.wav "Hello world"',
    returncode=0
    )
Package: light-aligner
Light-AlignerA light-weight aligner for dual-text (currently just English-Chinese) alignment based on similariy scores using word for word "translation"中文版读我https://github.com/ffreemt/light-aligner/blob/master/README-zh.mdFeaturesLight-weight, low resources demandLightningfast, well maybe notlightningfast but quite fastNo internet requiredSpecial Dependencieslight alignerdepends on polyglot that in turn depends onlibicuTo installlibicuFor Linux/OSXE.g.Ubuntu:sudo apt install libicu-devCentos:yum install libicuOSX:brew install icu4cThen usepoetryorpipto installPyICU pycld2 Morfessor, e.g.poetry add PyICU pycld2 Morfessororpip install PyICU pycld2 MorfessorFor WindowsDownload and install thepyicuandpycld2(possibly alsoMorfessor) whl packages for your OS/Python version fromhttps://www.lfd.uci.edu/~gohlke/pythonlibs/#pyicuandhttps://www.lfd.uci.edu/~gohlke/pythonlibs/#pycld2(possibly also Morfessorhttps://www.lfd.uci.edu/~gohlke/pythonlibs/)Installationpip install light-aligneror, clone the repo and install necessary packages usingpip:git clone git@github.com:ffreemt/light-aligner.git
cd light-aigner
pip install -r requirements.txtor, clone the repo and install necessary packages usingpoetrygit clone git@github.com:ffreemt/light-aligner.git
cd light-aigner
poetry install -vlight alignercan be run inLinux/OSX. In fact, the build process in github (pertaining to that github workflow badgeis carried out in Linux.Usagecd light-aligner
python -m light_alignerorcd light-aligner
python light_aligner.__main__.pyYou may wish to use powershell (e.g., right click the powershell scriptrun-python-m.ps1and selectRun with Powershell) or conemu or cmder for better visual terminal experience.Join qq-group 316287378if you have any questions. The group chat is normally in Chinese but can switch to English if so desired.
Package: lightapi
Light API 0.0.19IntroductionLight Assistant powered by LightAI is an AI-powered application designed to help you streamline your work and free up time for more important tasks. It can handle a wide range of tasks, from organizing files to managing your email inbox, scheduling meetings, and much more.Installationpip install lightapiAuthenticationTo use the LightAI Assistant API, you will need to create an account and generate an API key. You can do this by visiting theLight APIwebsite.Usageimport lightapi

client = lightapi.LightClient("YOUR_API_KEY_HERE")DocumentationFor a comprehensive understanding of LightAI Assistant's features and capabilities, visit ourDocumentation.
Package: light-async-scheduler
python-async-schedulerA small scheduler which is intended to run asynchronously alongside a WSGI.
Jobs can be implemented with the Job class and these are run in the context of a target function, specified at the scheduler level.Setuppip install light-async-schedulerto install the package.from async_scheduler import Schedulerto get the scheduler.scheduler = Scheduler(target_coroutine_or_function)configures the function the scheduler will use.scheduler.start()This project is a work in progress and so any issues or features to add would be happily appreciated!
You can find this projecthere.Todo:Write testsAdd arequirments.txt
Package: lightautoml-gpu
Developing LightAutoML on GPUTo develop LightAutoML on GPUs using RAPIDS some prerequisites need to be met:NVIDIA GPU: Pascal or higherCUDA 11.0 (drivers v460.32+) or higher need to be installedPython version 3.8 or higherOS: Ubuntu 16.04/18.04/20.04 or CentOS 7/8 with gcc/++ 9.0+InstallationAnacondaorMinicondais necessary to install RAPIDS and work with environments.Once you install Anaconda/Miniconda, you need to set up your own environment. For example:condacreate-nlama_venvpython=3.8
condaactivatelama_venvTo install RAPIDS for Python 3.8 and CUDA 11.0 use the following command:condainstall-crapidsai-cnvidia-cconda-forgerapids=22.10cudatoolkit=11.0
pipinstalldask-mlTo clone the project on your own local machine:gitclonehttps://github.com/ekonyagin/LightAutoML-1.gitcdLightAutoML-1Install LightAutoML in develop mode and other necessary libraries:pipinstall.
pipinstallcatboost
pipinstallpy-boostAfter you change the library code, you need to re-install the library: go to LightAutoML directory and callpip install ./ -UPlease note, if you use NVIDIA GPU Ampere architecture (i.e. Tesla A100 or RTX3000 series), you may need to uninstall pytorch and install it manually
due to compatibility issues. To do so, run following commands:pipuninstalltorchtorchvision
pipinstalltorch==1.7.1+cu110torchvision==0.8.2+cu110-fhttps://download.pytorch.org/whl/torch_stable.htmlOnce the RAPIDS is installed, the environment is fully ready. You can activate it using thesourcecommand and test and implement your own code.
Package: lightberry
LightBerry Client LibraryLightberry is an open source home automation platform with Alexa integration. This library allows the easy development
of a client implementation in the Python language.InstallationTo install the Lightberry client library, run the following command from a terminal:pip3 install lightberry-libUsagefrom lightberrylib import LightberryClient

device = Device(config.deviceId, config.deviceConfig)

client = LightberryClient(config.mqtt.host, config.mqtt.port)
client.set_device(device)
client.set_secret(<SECRET>)
client.connect()TheLightberryClientconstructor accepts two arguments: the MQTT host address and the port (typically 1883).TheDeviceclass is a custom class which is unique to your implmentation. It must implement thelightberry-lib.device_protocols.IBaseDeviceprotocol, and optionally thelightberry-lib.device_protocols.IAlexaEnabledDeviceprotocol to enable Alexa functionality.The keys passed to theclient.set_keys()method are obtained from the Lightberry API through thePOST /api/developer/devicesendpoint.For more information, check out the reference implementations in theexamplesdirectory.
Package: lightbt
LightBT轻量级回测工具注意每种工具都有其适合的应用场景。遇到需要快速评测大批量参数或因子的场景，我们只要相对准确。所以使用对数收益累加更合适现状收益率乘权重的向量计算极快，但在连续做空的场景下，收益不正确，仅仅是因为每天收益率变化不大，所以误差很难察觉。大部分回测库策略与绩效统计结合过于紧密，达不到策略与平台分离的设想大部分回测库都很慢，如：zipline、rqalpha、backtrader回测快的库，底层一般是用C++、Rust等语言实现。跨语言部署和二次开发对量化研究员而言比较困难vectorbt计算准确，回测也快。但不支持保证金无法直接用在期货市场，输入宽表比较占内存bt策略树设计很好，但也不支持保证金概念目标正确处理保证金和做空架构简单易扩展回测速度快技术选型C++/Cython开发，模仿TA-Lib的技术方案，Cython版库部署麻烦，开发也复杂Rust开发，模仿polars的技术方案，使用pyo3进行跨语言调用，但Rust入门困难Numba支持JIT，安装部署方便，易于调试和二次开发三层结构开仓成交回报产生的持仓导致持仓盈亏、平仓成交回报产生平仓盈亏。将两种盈亏累计便成盈亏曲线已经可以统计盈亏、胜率、最大回撤等指标叠加初始资金即可构成资金曲线和净值曲线，可计算收益率、最大回撤率等指标没有考虑资金不足、是否能成交等情况。已经是简化回测绩效统计工具。仅能按手数进行交易初始资金和保证金率决定了可开手数关注交易细节，考虑资金不足等情况。可以按比例进行资金分配下单工作原理使用对象来维护每种资产的交易信息。其中的成员变量全是最新值根据时间的推进和交易指令，更新对应对象指定时间间隔获取对象成员变量的快照，将所有快照连起来便成总体绩效月频交易，但日频取快照周频交易，周频取快照分钟交易，日频取快照安装pip install lightbt -U使用以下是代码片段。完整代码请参考stocks.py# %%importnumpyasnpimportpandasaspdfromlightbtimportLightBT,warmupfromlightbt.enumsimportSizeTypefromlightbt.statsimportpnl_by_assets,total_equity,pnl_by_assetfromlightbt.utilsimportTimer# 省略代码......# %% 热身withTimer():print('warmup:',warmup())# %% 初始化bt=LightBT(init_cash=0.0,positions_precision=1.0,max_trades=_N*_K*2//1,# 反手占两条记录，所以预留2倍空间比较安全max_performances=_N*_K)# 入金。必需先入金，否则资金为0无法交易bt.deposit(10000*100)# %% 配置资产信息withTimer():bt.setup(config)# %% 资产转换，只做一次即可df['asset']=df['asset'].map(bt.mapping_asset_int)# %% 交易withTimer():bt.run_bars(groupby(orders_daily(df),by='date',dtype=order_outside_dt))# %% 查看最终持仓positions=bt.positions()print(positions)# %% 查看所有交易记录trades=bt.trades(return_all=True)print(trades)trades_stats=bt.trades_stats()print(trades_stats)roundtrips=bt.roundtrips()print(roundtrips)roundtrips_stats=bt.roundtrips_stats()print(roundtrips_stats)# %% 查看绩效perf=bt.performances(return_all=True)print(perf)# %% 总体绩效equity=total_equity(perf)print(equity)equity.plot()输入格式date: int64时间日期。需在外部提前转成数字。可用astype(np.int64)或to_records(dtype)等方法来实现size_type: int数量类型。参考lightbt.enums.SizeTypeasset: int资产ID。由LightBT.setup执行结果所确定。可通过LightBT.asset_str2int和LightBT.asset_int2str进行相互转换size: float数量。具体含义需根据size_type决定。nan是一特殊值。用来表示当前一行不交易。在只更新最新价的需求中将频繁用到。fill_price: float成交价。成交价不等于最新价也不等于收盘价。可以用成交均价等一些有意义的价格进行代替。last_price: float最新价。可用收盘价、结算价等代替。它影响持仓的浮动盈亏。所以在对绩效快照前一定要更新一次date_diff: bool是否换日。在换日的最后时刻需要更新最新价和记录绩效配置格式通过LightBT.setup进行设置asset: str资产名。内部将使用对应的int进行各项处理mult: float合约乘数。股票的合约乘数为1.0margin_ratio: float保证金率。股票的保证金率为1.0commission_ratio: float手续费率参数。具体含义参考commission_fncommission_fn:手续费处理函数二次开发git --clone https://github.com/wukan1986/LightBT.git
cd LightBT
pip install -e .
Package: lightbulb-ext-filament
FilamentVarious add-ons, extensions and utilities forhikari-lightbulbInstallationUse the package managerpipto install Filament.pipinstalllightbulb-ext-filamentIssuesIf you find any bugs, issues, or unexpected behaviour while using the library,
you should open an issue with details of the problem and how to reproduce if possible.
Please also open an issue for any new features you would like to see added.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please try to ensure that documentation is updated if you add any features accessible through the public API.If you use this library and like it, feel free to sign up to GitHub and star the project,
it is greatly appreciated and lets me know that I'm going in the right direction!LinksRepository:GitHubDocumentation:Read Here
Package: lightbulb-ext-tungsten
TungstenTungsten is an add-on forLightbulbproviding an alternative for handling component interactions.
Using coordinates and indexes, this library supplies the flexibility to edit buttons and options on the run.License:LGPLv3Repository:GitHubDocumentation:ReadTheDocsInstallationUse the package managerpipto install Tungsten.pipinstalllightbulb-ext-tungstenContributions & IssuesIf you find a bug, unexpected behaviour or want to suggest a feature to this library,
submit an issue on the GitHub repositoryhere.
Make sure you are on the latest version of the library and the issue has not been suggested yet.
Package: lightbulb-ext-wtf
Lightbulb WTFThis is a joke project (but working somehow).I just wanted to mess around to see how much I could mess with lightbulb command declaration syntax.UsageCommands are declared like generics using square brackets ([]) as the construction method.A basic command:importlightbulbfromlightbulb.ext.wtfimport*bot=lightbulb.BotApp(...)asyncdeffoo_callback(ctx):awaitctx.respond("Bar")cmd=Command[Implements[lightbulb.PrefixCommand],Name["foo"],Description["test command"],Executes[foo_callback]]bot.command(cmd)bot.run()
Package: lightbus
Lightbus allows your backend processes to communicate, run background tasks,
and expose internal APIs.Lightbus uses Redis as its underlying transport, although support
for other platforms may eventually be added.Lightbus requires Python 3.7 or above.Full documentation can be found at https://lightbus.orgDesigned for ease of useLightbus is designed with developers in mind. The syntax aims to
be intuitive and familiar, and common problems are caught with
clear and helpful error messages.For example, a naïve authentication API:classAuthApi(Api):user_registered=Event(parameters=('username','email'))classMeta:name='auth'defcheck_password(self,user,password):return(user=='admin'andpassword=='secret')This can be called as follows:importlightbusbus=lightbus.create()bus.auth.check_password(user='admin',password='secret')# Returns trueYou can also listen for events:importlightbusbus=lightbus.create()defsend_signup_email(event_message,username,email):send_mail(email,subject=f'Welcome{username}')@bus.client.on_start()defbus_start():bus.auth.user_registered.listen(send_signup_email)To get started checkout the documentation at https://lightbus.org.
Package: lightcards
lightcardsTerminal flashcards from Markdown.InstallationLightcards is only tested and maintained on Linux. Support for other Unix-like operating systems such as MacOS and the various BSDs is likely, although untested. Windows support may be possible withwindows-cursesor the like, however much of the program makes the assumption that there is a Unix-like file hierarchy, which may break on Windows. Nontrivial patches will not be accepted to improve Windows support, although may be for MacOS or BSD.Lightcards requires Python 3.9From PyPIpip install lightcardsFrom GitMain branch (stable)pip install git+https://git.sr.ht/~armaan/lightcardsDevelopment branchpip install git+https://git.sr.ht/~armaan/lightcards@develUsageSeelightcards --helporman lightcardsfor usage information.Input filecontrib/example.mdis an example input file. Lightcards takes all of the tables from a valid Markdown or HTML file. Each row is a card, and the two columns are the front and back.ConfigurationCopy the config file at/etc/lightcards/config.pyto~/.config/lightcards/config.pyor~/${XDG_CONFIG_HOME}/lightcards/config.pyand edit.LicenseCopyright Armaan Bhojwani 2021, MIT license
Package: lightcast-smart-dataset
Global Lightcast Smart Dataset ClientThe goal of this project is to propose a Python Client, easy to use, ready for everyone to access and use in few seconds the Global Lightcast Smart DatasetThe client covers different needs and question:UK Occupation Insights (contents, trends and projection by occupation and area in UK)Global Occupation Insights (contents, trends and projection by occupation and area, globallu)InstallTo install or install/upgrade the package it's best to use pip:pip install -U lightcast-smart-datasetHow it worksYou can use the client in two ways:Command linePython codeThis module is usingdocoptto parse command line arguments.It proposes different methods:Get the occupation insights for an occupation in a area of UKlightcast-smart-dataset uk occupation-insight soc --username=**** --password=**** --occupation="Programmers and software development professionals" --area="Camden and City of London"lightcast-smart-dataset uk occupation-insight occupation --username=***** --password=**** --occupation="Programmers and software development professionals" --area="Camden and City of London"Get the occupation insights for software developers in Milan, Italylightcast-smart-dataset global occupation-insight occupation --username=***** --password=**** --occupation="Business Development / Sales Manager" --area="Milan (ITA)"  --occupation-level=3 --area-level=2Get a taxonomylightcast-smart-dataset taxonomy soc4 --username=**** --password=****ResultsThe command line interface will create different Excel file with different sheets:the current 12 months of unique job postings vs the last 12 months of unique job postingsthe top 10 common skills, top 10 specialized skills in the area refered to the last 12 months for the requested occupationthe top 10 job tiles in the area refered to the last 12 months for the requested occupationthe top 10 employers in the area refered to the last 12 months for the requested occupation (only employers, no staffic company)LicenseCopyright (c) 2022 LightcastPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: light-character
Light CharacterLight Character illustrates light characteristics as found on charts and light lists.
It is not intended as a navigational aid, it simply gives an idea as to how
a given light characteristic might appear.Free software: MIT licenseDocumentation:https://light-character.readthedocs.io.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.Images of lighthouses are from theRoyal Museums Greenwichcollection,
viaEuropeanaHistory0.1.0 (2020-06-07)First release on PyPI.
Package: lightcli
Lightcli is a Python 3 library module for lightweight terminal interaction.Synopsisimport lightcli

choice = lightcli.choice_input([options=<options>], [prompt=<prompt>], [showopts={True|False}], [qopt={True|False}])
multiline = lightcli.long_input([prompt=<prompt>], [maxlines=<maxlines>], [maxlength=<maxlength>])
mylist = lightcli.list_input([prompt=<prompt>], [maxitems=<maxitems>], [maxlength=<maxlength>])
outputfile = lightcli.outfile_input([extension=<extension>])LinksDocumentationReleasesChangelog
Package: lightcone
lightconeA framework to explore the latent space of convolutional autoencoders
implemented inpytorch.ExampleCompose your decoder and your encoder into thelightconeautoencoder:fromlightcone.modelsimportAutoEncodermodel=AutoEncoder(encoder=your_encoder,decoder=your_decoder)Aftermodelhas been training, the latent space can be explored in a
Jupyter-Notebook as followsmodel.explore(data_loader=your_data_loader)Jupyter DashMake sure to install and activate the Jupyter notebook extenstionjupyternbextensioninstall--pyjupyter_dash
jupyternbextensionenable--pyjupyter_dash
Package: lightconf
lightconf: Simple Configurations with Zero Redundancylightconfis a lightweight package that allows you to configure your classes with minimum
boilerplate. Configurations are easy to understand, quick to write, and intuitive to work with.RequirementsPython 3.6+InstallationThe recommended installation method is pip-installing into a virtual environment:$python-mpipinstalllightconflightconfby ExampleimportlightconfTBCwe will soon provide concrete examples!LicenseThis project is licensed under the terms of theApache License 2.0license.