Saravanan666/pypi-org huggingface dataset:
Package: lollylib
LollylibLollylib is a multipurpose Python 3 library that creates an additional abstraction layer and provides higher level interface for python developers.Draft noticeNote that Lollylib is currently a draft. You can use it at your own risk, but there are no guarantees regarding future development of this project.Table of contentsRequirementsInstallationGetting startedAbout authorsRequirementsLollylibrequires Python 3 version 3.5 or greater.
It may be used on Windows, MacOS and Linux.
So far,lollylibhas not been tested on other operating systems, but very likely it can run
in any Python 3 environment without customization.InstallationWindowsFrom web:py -3 -m pip install lollylibFrom local directory:py -3 -m pip install .Linux and MacOSFrom web:pip3 install lollylibFrom local directory:pip3 install .Running testsTests are shipped together withlollylib.
If you installed it from web, you may run the tests from Python 3 shell:importlollylib.testastesttest.run()Installing for developmentIf you want to contribute tolollyliband become a developer, it is convenient to install it locally as a link
so that changes you make will be immediately visible to alllollylibusers. Download or clone it
fromhttps://github.com/sugurd/lollylib, then run fromlollylibroot directory:pip3 install -e .Getting startedThe best way to get started withlollylibis to explore the tests. There you will find examples of
legitimate use cases in great detail.About authorsYou may contact the author viayuzappa@gmail.com.
Package: lolpros-parser
lolpros_parserSmall library for pulling player data fromhttps://lolpros.gg/external API.InstallationUsingpip:pip install lolpros_parserUsageFull functionality can be found within themethod definition file.importlolpros_parser# Grab list of summoner names for a playerplayer="Chemera"print(lolpros_parser.get_player_summoner_names(player))# >> ["Chemera"]# Grab list of summoner info for a playerprint(lolpros_parser.get_player_summoner_info(player))# >> [{'uuid': '86b3f764-5dbe-4230-a32c-d8f246636771', ...} ...]# Grab ranking history for a particular summoner UUIDsummoner_uuid="86b3f764-5dbe-4230-a32c-d8f246636771"print(lolpros_parser.get_summoner_rankings(summoner_uuid,months=3))# >> [{#   "score":2504,#   "created_at":"2021-09-14T00:04:27+00:00",#   "tier":"40_platinum",#   "ranking":1,#   "league_points":100,#   "wins":3,#   "losses":8,#   "season":"season_11"#   },#   ...# ]# Grab players and their role for a given teamprint(lolpros_parser.get_players_by_team("Resolve"))# >> [#   {'role': 'support', 'name': 'fgg'},#   {'role': 'jungle', 'name': 'sof'},#   {'role': 'top', 'name': 'kaylem'},#   ...# ]Feature RequestPlease feel free to raise an issue requesting a feature, or create a PR to implement one yourself.
Package: loltui
loltuiThis is a proof-of-concept LoL assistant using a TUI-interface. When you join a lobby it shows the following about each of the players.Recent ranked game outcomesMastery points for hovered championLast season end rank and current rankSee LICENSE for terms of use.Installationgit clone git@github.com:j-nikki/loltui.gitpip install loltuiUsagepy -m loltui --helpCreating EXEpy -m loltui --exe(undocumented flag)Use createdloltui.exeAcknowledgmentsLeague of Legends is a Riot Games product. loltui is not associated with Riot Games.Console iconicon byIcons8
Package: lol-voice
py-bnk-extract英雄联盟语音解包工具, 由Python语言编写.介绍安装使用问题维护者感谢许可证介绍可以将英雄联盟中wpk或bnk中音频文件按照皮肤的触发条件分类解包, 默认为wem音频格式, 使用vgmstream可转码.index.py中extract_audio函数逻辑以及HIRC部分块结构和WPK文件结构参考Morilli编写的解包工具https://github.com/Morilli/bnk-extractWAD.py中 文件结构以及部分逻辑来源于https://github.com/CommunityDragon/CDTB和https://github.com/Pupix/lol-file-parser其余bnk文件结构来参考:http://wiki.xentax.com/index.php/Wwise_SoundBank_(*.bnk)安装pip install lol-voicepip install -e git+https://github.com/Virace/py-bnk-extract@package#egg=lol_voice使用此包适合提取已知皮肤语音, 如需全部提取请关注lol_extract_voicefrom lol_voice import extract_audio
from lol_voice.formats import WAD


def example():
    """
    按触发事件文件夹分类提取 剑魔 语音文件
    :return:
    """

    # 临时目录和最终输出目录
    temp_path = r'D:\Temp'
    out_path = r'D:\Out'

    # 英雄名字, 以及对于默认皮肤的三个文件路径
    champion = 'aatrox'
    bin_tpl = f'data/characters/{champion}/skins/skin0.bin'
    audio_tpl = f'assets/sounds/wwise2016/vo/zh_cn/characters/aatrox/skins/base/{champion}_base_vo_audio.wpk'
    event_tpl = f'assets/sounds/wwise2016/vo/zh_cn/characters/aatrox/skins/base/{champion}_base_vo_events.bnk'

    # 需要解析两个WAD文件, 这个路径修改为自己的游戏目录
    wad_file1 = r"D:\League of Legends\Game\DATA\FINAL\Champions\Aatrox.wad.client"
    wad_file2 = r"D:\League of Legends\Game\DATA\FINAL\Champions\Aatrox.zh_CN.wad.client"

    # 将上面三个文件提取到临时目录
    WAD(wad_file1).extract([bin_tpl], temp_path)
    WAD(wad_file2).extract([audio_tpl, event_tpl], temp_path)

    # 根据三个文件对应提取语音并整理
    extract_audio(
        bin_file=os.path.join(temp_path, os.path.normpath(bin_tpl)),
        event_file=os.path.join(temp_path, os.path.normpath(event_tpl)),
        audio_file=os.path.join(temp_path, os.path.normpath(audio_tpl)),
        out_dir=out_path
    )

if __name__ == '__main__':
    example()问题待解决：不同事件调用相同语音, 导致文件重复不排除文件有缺失问题, event文件解析不完整维护者Viraceblog:孤独的未知数感谢@Morilli,bnk-extract@Pupix,lol-file-parser@CommunityDragon,CDTB@vgmstream,vgmstream以及JetBrains提供开发环境支持许可证GPLv3
Package: lolwrapper
League of Legends API Wrapperlolwrapperis a Python wrapper for the Riot League of Legends API endpoints.lolwrapperworks with Python >= 3.6Installation$pipinstalllolwrapperUsage>>>fromlol.riotimportRiot>>>>>>api=Riot('your-api-key')Available Resources>>>api.champion>>>api.championmastery>>>api.league>>>api.lolstaticdata>>>api.lolstatus>>>api.masteries>>>api.match>>>api.spectator>>>api.summoner>>>api.thirdpartycode>>>api.tftleague>>>api.tftmatch>>>api.tftsummonerGet a summonerGet by name, encrypted account ID, encrypted summoner ID, or encrypted PUUID>>>r=api.summoner.get(name='tenmo player',region='na')>>>r=api.summoner.get(encrypted_account_id='account-id',region='na')>>>r=api.summoner.get(encrypted_summoner_id='summoner-id',region='na')>>>r=api.summoner.get(encrypted_puuid='puuid',region='na')>>>r.json()TestingTesting requirespytest-cov,pytest, andcoverageTests can be run using just pytest>>> pytestOr with coverage>>> pytest --cov=lol ./Add coverage badge with>>> coverage-badge
Package: lolzapi
Библиотека создана длямаксимальногопростого кода при работа сlolz.guru API.Установка:pip install lolzapiПримеры:Last postfrom lolzapi import pylolzapi

client = pylolzapi.api("token")

print(client.get.last_post(2430762))getMe functionfrom lolzapi import pylolzapi

client = pylolzapi.api("token")

print(client.getMe())Список доступных методов:GETposts - Посты темыlast_post - Последний пост темыthreads - Темы разделаfindUser - Поиск пользователяprofilePosts - Посты пользователяconversations - Ваши диалогиnotifications - Cписок оповещенийpages - Список разделов в системеpagesById - Информация про разделPOSTpost - Отправка сообщения в темуlike - Поставить симпатию на постprofilePost - Отправить сообщение в профиль пользователяsub - Подписаться на юзераconversation - Написать сообщение в личнуlikeProfilePost - Лайкнуть пост профиляDELETElike - Убрать лайк с постаpost - Удалить постthread - Удалить темуsub - ОтписатьсяprofilePost - Удалить пост в профилеlikeProfilePost - Удалить лайк с постаPUTeditMessage - Редактировать сообщение в лсprofilePost - Редактировать пост в профилеПрочееgetMe - информация про токен
Package: lolzmarketapi
Библиотека создана для проведения операций на маркете.Установка:pip install lolzmarketapiПримеры:Узнать балансfrom marketapi import lolzmarketapi

client = lolzmarketapi.Api(cookie, useragent)

print(client.getBal())Перевод средствfrom marketapi import lolzmarketapi

client = lolzmarketapi.Api(cookie, useragent)

print(client.transfer(username, amount, comment, secret_answer))Список методовgetBal()-Узнать баланс(Вернет текущий баланс, баланс в холде)transfer(username, amount, comment='', secret_answer='')-Перевод средствgetPayments(page)-Получить список платежейparseMarket(url, page)-Парс маркета по ссылке(Вернет массив: [ название, цена, ссылка ])bookAccount(account_id, log)-Бронировать аккаунт(Если log = 1 - вернет результат)unbookAccount(account_id)-Снять бронь с аккаунта(Вернет "Completed")buyAccount(account_id, bron)-Купить аккаунт(bron - параметр, какой отвечает за бронировку аккаунта. Если вы не использовали bookAccount - значение аргумента bron должно быть 0)accountInfo(account_id)-Информация про аккаунт(Вернет массив [ название, цена, продавец, дата создания, гарантия, доступен к покупке ])
Package: lomapy
LomapyO que é esse o projeto?É uma bibliotecanão oficialque disponibiliza um interface em python para a API de Afiliados do Lomadee.
O Lomapy é compatível com versão 3 da API da Lomadee.RequisitosPython 3.5+Linux, Windows, Mac OSX ou BSDComo instalar e utilizar esse projeto?Instalaçãopip install lomapyComeço RápidoSegue um exemplo de como utilizar essa biblioteca.Não possui um APP_TOKEN ou SOURCE_ID? Consulte a documentação daLomadee.import lomapy

app_token = {SEU_APP_TOKEN_AQUI}
source_id = {SEU_SOURCE_ID_AQUI}

lomapy.autenticar(app_token, source_id)

lomapy.categorias.obter_todas()DocumentaçãoA documentação está disponível online emLomapy Read The Docse no diretóriodocsComo eu entro em contato?Email:alan.taranti@gmail.comWebsite:alantaranti.github.io
Package: lombard
lombardA minimal python project template that can be used for CLIs, APIs, GRPC, and other python applications.UsageClone this repository.Replace all instances oflombardacross the entire repository with the namespace of your project.Rename the directorylombardwith the same name too.Replacepyproject.tomlwith relevant values for your project.Usepyenvfor managing your python environment.Set up your virtual environment.Run./scripts/install.shRun./scripts/test.shYou're all set! Make this readme whatever you want now. The future is yours!
Package: lomond
Dataplicity LomondTranquil WebSockets for Python.Lomond is a Websocket client which turns a websocket connection in to
an orderly stream ofevents. No threads or callbacks necessary.DocumentationGitHub RepositoryBlogHow to UseTo connect to a "ws:" or "wss:" WebSocket URL, construct alomond.WebSocketobject then iterate over it. This will yield anevent objectfor each step in the connection process and for any data sent by the server.You will receive aBinaryorTextevent when the server sends you a message.
You maysenda message with thesend_binaryorsend_textmethods.ExampleThe following is a silly example that connects to a websocket server
(in this case a public echo server), and sends a string of text
every 5 seconds.fromlomondimportWebSocketwebsocket=WebSocket('wss://echo.websocket.org')foreventinwebsocket:ifevent.name=='poll':websocket.send_text('Hello, World')elifevent.name=='text':print(event.text)EventsA successful websocket connection will result in a series of events
such as the following:┌──────────────────────┐
│      Connecting      │     Contacting server
└──────────────────────┘
           │
           ▼
┌──────────────────────┐     Connected to server (but
│      Connected       │     not yet sent data)
└──────────────────────┘
           │
           ▼
┌──────────────────────┐     Negotiated Websocket
│        Ready         │     handshake
└──────────────────────┘
           │  ┌───────────┐
           │  │           │
           ▼  ▼           │
┌──────────────────────┐  │  Send and receive
│ Binary / Text / Poll │──┘  application data
└──────────────────────┘
           │
           ▼
┌──────────────────────┐     Websocket close
│        Closed        │     handshake
└──────────────────────┘
           │
           ▼
┌──────────────────────┐
│     Disconnected     │     Disconnected TCP/IP
└──────────────────────┘     connection to server
Package: lomonds
Lomonds@fork from dataplicity-lomondEnhancement to allow a custom function to be called to get the data for a ping packet.Tranquil WebSockets for Python.You can custom ping data like this:websocket = Websocket('wss://ws.example.org')

for event in WebSocket.connect(ping_rate=5, ping_data=b'hello'):
    on_event(event)Lomond is a Websocket client which turns a websocket connection in to
an orderly stream ofevents. No threads or callbacks necessary.DocumentationGitHub RepositoryBlog
Package: lomosplit
LomoSplitUtility for splittingLomoKinofilm scans.InstallationpipinstalllomosplitUsageTo use lomosplit with default parameters just pass as only parameter image name or
path to directory with images.python-mlomosplitscan.jpegpython-mlomosplitpath/to/scansYou can also specify advanced options. List of all advanced options with their descriptions
is available by calling thepython -m lomosplit --help.python-mlomosplit\-ooutput\--quiet\--template"picture_{idx:05d}"\--formatpng\--rotate-imageleft\--rotate-frameright\--frame-min-height500\--frame-max-height900\--adjust-to-max-height\...
Package: lompy
# LomPyLomPy is a python library for the multiscale analysis of marked point processes. It is an open-source platform that merges concepts and methods from quantitative geography, signal processing, and the physical sciences to derive local multifractal parameters at arbitrary spatial resolutions. It is specifically designed to process and analyze data that are either irregularly spaced or possess large data holes over spatial or temporal domains.The core functions provide:
-   computation of multiresolution quantities
-   local univariate and bivariate multifractal analysis
-   linear regression and statistical modeling
-   visualization routines## InstallationIf you are using pip, you can install lompy as:pip install lompy## ExamplesA link to the notebook tutorials demonstrates in great detail the analysis both in a univariate and bivariate context:https://gitlab.com/sroux67/LomPy/-/tree/main/tutorials## CopyrightCopyright (C) 2023 GNU AGPLv3, LomPy 2023, S.G. Roux and J. Lengyel.
Package: lona
Lona is a web application framework, designed to write responsive web apps infullPython.Demos:lona-web.org/demosFAQ:lona-web.org/faqDocumentation:lona-web.orgChangelog:lona-web.org/changelogReddit:reddit.com/r/lona_web_org/Discord:discord.com/lona-web.orgWeb is a solved problem in Python since ages, but traditionally Python handles
only the server side. If you want to have client side interaction like
click events or you want update content live, you have to write an additional
Javascript application.Lona handles the server side and the client side, and provides a simple,
pythonic API to write self contained views.# pip install lonafromlona.htmlimportHTML,Button,Div,H1fromlonaimportLonaApp,LonaViewapp=LonaApp(__file__)@app.route('/')classMyView(LonaView):defhandle_button_click(self,input_event):self.message.set_text('Button clicked')defhandle_request(self,request):self.message=Div('Button not clicked')html=HTML(H1('Click the button!'),self.message,Button('Click me!',handle_click=self.handle_button_click),)returnhtmlif__name__=='__main__':app.run(port=8080,live_reload=True)More information:Getting StartedHow does it work?Lona comes with a Javascript based browser library that speaks a specialized
protocol with the backend.
This protocol specifies messages like “hey frontend, please show $HTML” and
“hey backend, someone clicked on node XY”.More information:Basic Concept
Package: lona-chartjs
This package containsChart.jsbindings forLonaInstallation$ pip install lona-chartjsUsagelona_chartjs.html.Chartdefines a thin wrapper around the Javascript API of
Chart.js. You can take any demo offchartjs.org<https://www.chartjs.org/docs/3.5.0/>and pass the chart config
intoChart.data.All data you passed in is available inChart.dataand can be reset and
altered. To redraw the chart with altered data runself.show(chart)from
your view.fromlona.htmlimportHTML,H1,H2fromlonaimportApp,Viewfromlona_chartjs.htmlimportChartapp=App(__file__)BAR_CHART_DATA={# Taken from https://www.chartjs.org/docs/latest/getting-started/usage.html'type':'bar','data':{'labels':['Red','Blue','Yellow','Green','Purple','Orange'],'datasets':[{'label':'# of Votes','data':[12,19,3,5,2,3],'backgroundColor':['rgba(255, 99, 132, 0.2)','rgba(54, 162, 235, 0.2)','rgba(255, 206, 86, 0.2)','rgba(75, 192, 192, 0.2)','rgba(153, 102, 255, 0.2)','rgba(255, 159, 64, 0.2)'],'borderColor':['rgba(255, 99, 132, 1)','rgba(54, 162, 235, 1)','rgba(255, 206, 86, 1)','rgba(75, 192, 192, 1)','rgba(153, 102, 255, 1)','rgba(255, 159, 64, 1)'],'borderWidth':1}]},'options':{'responsive':False,'scales':{'y':{'beginAtZero':True,}}}}@app.route('/')classMyLonaView(View):defhandle_request(self,request):html=HTML(H1('Hello World'),H2('Bar Chart'),Chart(width='500px',height='300px',data=BAR_CHART_DATA,),)returnhtmlapp.run()
Package: lonadb-client
lonadb-clientThe Lonadb Client is a Python library designed to simplify communication with the LonaDB database server. This library provides an easy way to interact with the server's various functions, allowing you to manage tables, variables, users, permissions, and more. It streamlines the process of sending requests and receiving responses from the server using the TCP protocol.InstallationYou can install the Lonadb Client library using pip:pipinstalllonadb-clientUsageTo use thelonadb-clientlibrary, follow these steps:Import the required modules and classes:fromlonadb_clientimportLonadbClientCreate an instance of theLonaDB-Clientclass:client=LonaClient(host,port,name,password)Replacehost,port,name, andpasswordwith the appropriate values for your Lonadb database server.Use the provided methods to interact with the server:# Example: Get a list of tablestables=awaitclient.getTables()print("Available tables:",tables)Available MethodsgetTables()Retrieves a list of tables available in the database.getTableData(table)Retrieves data from a specified table.deleteTable(table)Deletes a table by its name.createTable(table)Creates a new table with the given name.set(table, name, value)Sets a variable within a table to the specified value.delete(table, name)Deletes a variable from a table.get(table, name)Retrieves the value of a variable from a table.getUsers()Retrieves a list of users in the database.createUser(name, password)Creates a new user with the given name and password.deleteUser(name)Deletes a user by their name.checkPassword(name, password)Checks if the provided password is correct for a given user.checkPermission(name, permission)Checks if a user has a specific permission.removePermission(name, permission)Removes a permission from a user.getPermissionsRaw(name)Retrieves the raw permission data for a user.addPermission(name, permission)Adds a permission to a user.eval(function)Runs the function. (must be a string)Example: "if(lona.config.port === 1234) return 'wtf'"Response: {"success": true, "response": "wtf", "process": processID}LicenseThis project is licensed under the GNU Affero General Public License version 3 (GNU AGPL-3.0)
Package: lona-django
This package containsLonahelper to integrate withDjango.Installation$ pip install lona-djangoDjango AuthDjango authentication, authorization and sessions are implemented in a Lona
middleware.# settings.pyMIDDLEWARES=['lona_django.middlewares.DjangoSessionMiddleware',]To configure authorization use the view flags listed below. The flags are
all optional and can be mixed.The Django user associated with the given request is available inrequest.user.# views.pyfromlonaimportLonaViewclassDjangoView(LonaView):DJANGO_AUTH_LOGIN_REQUIRED=FalseDJANGO_AUTH_STAFF_REQUIRED=FalseDJANGO_AUTH_STAFF_PERMISSION_OVERRIDE=TrueDJANGO_AUTH_PERMISSIONS_REQUIRED=[]DJANGO_AUTH_GROUPS_REQUIRED=[]defhandle_request(self,request):user=request.user
Package: lona-dropzone
lona-dropzoneDropzone.jsbindings forLonaInstallationlona-dropzone can be installed using pippip install lona lona-dropzoneUsagelona-dropzone uses LonasBucketAPI.lona_dropzone.Dropzoneaccepts all arguments of a Lona Bucket to create a new Bucket on the fly.
You can also use a previously created Bucket using the keywordbucket.fromlona.htmlimportHTML,H1fromlonaimportViewfromlona_dropzoneimportDropzoneclassDropzoneView(View):defhandle_request(self,request):self.dropzone=Dropzone(request=request,on_add=self.on_add,on_delete=self.on_delete,)returnHTML(H1('Dropzone'),self.dropzone,)defon_add(self,file_names):print(f'{file_names}added to{self.dropzone.bucket.get_path()}')defon_delete(self,file_names):print(f'{file_names}deleted from{self.dropzone.bucket.get_path()}')
Package: lona-html5-qrcode
lona-html5-qrcodelona-html5-qrcode providesHtml5-QRCodebindings forLonaDemo(This demo is available intest-script/test_script.py)Installationlona-html5-qrcode can be installed using pippip install lona lona-html5-qrcodeUsagefromlona.htmlimportHTML,H1,DivfromlonaimportApp,Viewfromlona_html5_qrcode.htmlimportHtml5QRCodeScannerapp=App(__file__)@app.route('/')classQRCodeView(View):defhandle_scan_result(self,scanner,data):scanner.stop()self.result.set_text(f'{json.dumps(data)}\n')defhandle_request(self,request):self.result=Div()returnHTML(H1('QRCodeScanner'),self.result,Html5QRCodeScanner(handle_scan_result=self.handle_scan_result,),)app.run()ArgumentsNameTypeDefaultDescriptionhandle_scan_resultCallable | NoneNoneCallback that gets called on every scan result. Gets called with a reference to the scanner node, and the scan dataconfigdict | NoneNonehtml5-qrcode config. Default is available usingHtml5QRCodeScanner.get_default_config()themestr''CSS theme nameautostartboolFalseStart scanning on first renderDefault html5-qrcode config{'fps':10,'qrbox':{'width':100,'height':100,},'rememberLastUsedCamera':True,}ThemesWhenthemeis set, a CSS class namedf'html5-qrcode-{theme}'gets added toHtml5QRCodeScanner. This class then can be used for theming.lona-html5-qrcode comes with a list of default themes builtin.NameDescriptionpicocssBetter integration intolona-picocssPropertiesNameTypeDescriptionhandle_scan_resultCallable | NoneCallback that gets called on every result. Gets called with a reference to the scanner node, and the scan dataMethodsNameReturn TypeDescriptionis_running()boolCheck wether html5-qrcode is scanningstart()NoneStart html5-qrcode scanningstop()NoneStop html5-qrcode scanningget_default_config()dictReturns the default config used for html5-qrcodeTroubleshootingCamera access is only supported in secure context like https or localhostHtml5-QRCodeuses thebrowser media APIscan QR-Codes. The browser grants access to this API only insecure contexts. To get around this in development, use the Chrome flagunsafely-treat-insecure-origin-as-secure, like shown below.
Package: lonboard
lonboardA Python library for fast, interactive geospatial vector data visualization in Jupyter.Building on cutting-edge technologies likeGeoArrowandGeoParquetin conjunction withGPU-based map rendering, lonboard aims to enable visualizing large geospatial datasets interactively through a simple interface.3 million points rendered from a geopandasGeoDataFramein JupyterLab.Installpip install lonboardTo install from source, refer to thedeveloper documentation.Get StartedFor the simplest rendering, pass geospatial data into the top-levelvizfunction.importgeopandasasgpdfromlonboardimportvizgdf=gpd.GeoDataFrame(...)viz(gdf)Under the hood, this delegates to aScatterplotLayer,PathLayer, orSolidPolygonLayer. Refer to thedocumentationandexamplesfor more control over rendering.DocumentationRefer to the documentation atdevelopmentseed.org/lonboard.Why the name?This is a new binding to thedeck.glgeospatial data visualization library. A "deck" is the part of a skateboard you ride on. What's a fast, geospatial skateboard? Alonboard.