Saravanan666/pypi-org huggingface dataset:
Package: lokiunimore
Loki BotGatekeeper bot for the Unimore Informatica unofficial Matrix space, successor toThor Bot.FunctionalityThis bot monitors apre-configuredpublicMatrix spacefor join events, sending awelcome messageto every new joiner.Thewelcome messagecontains a link, which when clicked starts the user verification process:a page describing the bot is opened, and it allows users to login with apre-configured OpenID Connect Identity Provider;the claims of the OIDC IdP are verified, and the user's email address is checked to verify that its domain matches apre-configured RegExwith specific email requirements;if the email address fullfils all the requirements, an invitation to a different,pre-configuredprivateMatrix spaceis sent to the user.Additionally, the bot monitors for leave events from both spaces, deleting user data if no longer needed to protect the user's privacy.Setting up a development environmentDependenciesThis project usesPoetryto manage the dependencies.To install all dependencies in a venv, run:$poetryinstallTIP: For easier venv management, you may want to set:$poetryconfigvirtualenvs.in-projecttrueTo activate the venv, run:$poetryshellTo run something in the venv without activating it, run:$poetryrun<COMMAND>EnvironmentLoki requires a lot of environment variables to be set, therefore it makes use ofcfigto simplify the setup.To view the current configuration, followed by a description of each variable, run:$poetryrunpython-mlokiunimore.configDeploying in productionUse thepre-built Docker image, or build it from theprovided Dockerfile.Run the image without any command to view and validate the current configuration.Run the image with thegunicorn -b 0.0.0.0:80 lokiunimore.web.app:rp_appcommand to launch the production web server on local port 80, expecting to be behind a  reverse proxy.Run the image with thelokiunimore.matrixcommand to launch the Matrix bot.
Package: loko-client
Loko - ClientLoko Clientinteracts withloko-gatewayandloko-orchestrator APIs.Docs|Tutorial|LoKo AIInstallation(.venv) $ pip install loko-clientFS Client exampleFS Client interacts withloko-orchestrator APIs. You can use it to manage LoKo data.fromloko_client.business.fs_clientimportFSClientGATEWAY='http://localhost:9999/routes/'fsclient=FSClient(gateway=GATEWAY)### list directory contentprint(fsclient.ls('data/data/datasets'))### read filecontent=fsclient.read('data/data/datasets/titanic.csv',mode='r')print(content)Projects Client exampleProjects Client interacts withloko-orchestrator APIsand you can use it to manage LoKo projects.fromloko_client.business.projects_clientimportProjectsClientGATEWAY='http://localhost:9999/routes/'pclient=ProjectsClient(gateway=GATEWAY)### list projectsprint(pclient.all_projects())### list tasksprint(pclient.running_tasks())
Package: loko-extensions
Loko - ExtensionsLoko Extensionshelps in writing LoKo'scustom components.Docs|Tutorial|LoKo AIInstallation(.venv) $ pip install loko-extensionsExampleTo create new components you have to define its inputs, outputs and arguments:fromloko_extensions.model.componentsimportArg,Input,Output,Component,save_extensionsn=Arg(name="n",type="number",label="n",helper='Number of # in the output',value=1)input=Input(id='input',label='Input',service='myfirstservice',to='output')input_f=Input(id='file',label='File',service='upload_file',to='output')output=Output(id='output',label='Output')comp1=Component(name="My First Component",args=[n],inputs=[input,input_f],outputs=[output],group="Custom")save_extensions([comp1])And create your services:importsanicfromloko_extensions.business.decoratorsimportextract_value_argsapp=sanic.Sanic('first_project')@app.post('/myfirstservice')@extract_value_args()asyncdeff(value,args):n=int(args.get('n'))returnsanic.json(dict(msg=f"{'#'*n}{value}{'#'*n}"))@app.post('/upload_file')@extract_value_args(file=True)asyncdeff2(file,args):n=int(args.get('n'))returnsanic.json(dict(msg=f"{'#'*n}File name:{file[0].name}{'#'*n}"))app.run("0.0.0.0",port=8080)Here is your new component inLoKo:
Package: lokstats
lokstats packageThis is an package for advanced statistical calculations .
It is having two functions
1.) mulcor(dataframe_name,"column_name ")
To calculate the multiple correlations it is used,here column name is the name of the column for which we want to calculate the multiple correlation.
2.) partcor(dataframe_name,"column1_name ","column1_name ")
To calculate the Partial correlations it is used,here column1_name,column2_name are the names of the columns for which we want to calculate the partial correlation.
To see the full working go here:https://github.com/loksundar/partial_multiple_correlationthank you
Package: lola
Lola runs small Python scripts quickly.The startup time for the Python interpreter is fairly light, but it can become
noticable when running small scripts repeatedly. Lola can reduce this overhead
by starting one interpreter, which you can reuse to repeatedly run scripts.Example:with lola.Runner() as runner:
  for i in xrange(1000):
    runner.call(['myscript.py', str(i)])The API implements thecall(),check_call()andcheck_output()functions from the standard library’ssubprocessmodule.The name comes from “Lola rennt”, aka “Run Lola Run”:http://en.wikipedia.org/wiki/Run_Lola_Run
Package: lol_bayes_auth
lol_bayes_authSimple authentication package for the Bayes Esports APIInstallpip install lol_bayes_authIf you wish to install the latest development version:pip install -U git+https://github.com/Allan-Cao/lol_bayes_authExample UsageGet a Bayes Esports authentication token using a v1/v2 loginfromlol_bayes_authimportBayesAuthauthv1=BayesAuth('v1username','v1password',True)authv2=BayesAuth('v2username','v2password')v1token=authv1.get_token()v2token=authv2.get_token()Get a formatted header to authenticate with the Bayes Esports APIauth=BayesAuth('username','password')header=auth.get_headers()# Example usage with the requests libraryrequests.get(f'https://lolesports-api.bayesesports.com/v2/games',headers=auth.get_headers(),params=parameters,).json()
Package: lolcat
LOLcatStraight Python port of the Ruby version athttps://github.com/busyloop/lolcat/but with 100% more fun, because, hey, it’s not Ruby. There are no external dependencies..It’s a tool like cat, with added lulz.InstallingTo install the stable version:$ pip install lolcatTo install the development version:$ pip install git+https://github.com/tehmaze/lolcat.gitUsage and examples![](https://github.com/tehmaze/lolcat/raw/master/lolcat.png)DemoCheck out the ASCII cast athttps://asciinema.org/a/1563BugsSend a PR.
Package: lolcatfigletgnuplotprint
LolcatfigletgnuplotprintA simple commandline output utility package for printing simple messages and linear xy-plot data with colours and styleRequirementsRelies onlolcat,figletandgnuplot.Installpython-mpipinstalllolcatfigletgnuplotprintUsageAs a library function:fromlolcatfigletgnuplotprintimportprint_exampleprint_example()fromlolcatfigletgnuplotprintimportlolcat_figlet_printlolcat_figlet_print(message="Content",heading_text="Example heading",description_text="A description",)fromlolcatfigletgnuplotprintimportplot_printplot_print(value_groups=[{"title":"Data 1","values":[{"value":1,"timestamp":1655305933},{"value":5,"timestamp":1655305938},{"value":2,"timestamp":1655305943},],},{"title":"Data 2","values":[{"value":7,"timestamp":1655305933},{"value":3,"timestamp":1655305938},{"value":5,"timestamp":1655305943},],},],)As commandline util:python-mlolcatfigletgnuplotprint--helpAs ran with pre-built docker image:dockerrun-it--rmlsipii/lolcatfigletgnuplotprint--helpExample output
Package: lolcatt
A TUI wrapper aroundcatt, enabling you to cast to and control your chromecast devices.DependenciesPython 3.8+catt(will be installed automatically)yt-dlp(will be installed automatically)Optional: A font containing FontAwesome icons to allow displaying of fancy icons on buttons. The freely availableNerdFontcollection is recommended. Fancy icons can be disabled and replaced by text (see below).InstallationpipinstalllolcattQuckstartAt first we need to determine the name of the chromecast device we want to cast to. To do so, runlolcatt--scan.
To start the UI, runlolcatt-d'<device name or alias>'(or simplylolcattif a default device is set).
A default device and device aliases can be set in thecattconfiguration file (per default under~/.config/catt/config.cfg), seecatt’s documentation for more information.To cast, paste either a URL or a path to a local file into the input field and press enter. To prepend a URL or path to the playback queue instead of playing immediately, hit Ctrl+s instead of enter. To seek, tap the progress bar.For URLs, all websites supported byyt-dlp(which handles media download under the hood) are supported. Find a list of supported websiteshere. For local media, most common video and image formats are supported.Youtube playlists are supported, and each contained video will be added to the playback queue. By specifying a cookie file in the config (per default under~/.config/lolcatt/config.toml), you can also access private YouTube playlists such as “Watch Later” (https://www.youtube.com/playlist?list=WL), and ensure played YouTube videos are marked as watched.TroubleshootingIf button icons are not displayed correctly, ensure you are using a font containing FontAwesome icons. Alternatively, you can disable the use of fancy icons in the config file.If casting does not work for no apparent reason, ensure you have the latest version ofyt_dlpinstalled:pip install--upgradeyt-dlp.If you encounter any other issues, please open an issue.CreditsThis package was created withCookiecutterand theLokiLuciferase/cookiecutter-pypackageproject template.
Package: lolclient-lib
lolclient_libBasic package to send and receive requests to the League of Legends client.Installationpip install lolclient-libHow to usefrom lolclient import *

reqInfo = clientInfo()clientInfo()will return the basic url and authorization header needed to send POST and GET requests.
Always putreqInfoas the first parameter for every method.Examplefrom lolclient import *

reqInfo = clientInfo()
createLobby(reqInfo, Lobby.DRAFT)
startMatchmaking(reqInfo)Automatically creates a normal draft lobby, and starts the matchmaking.More examples:name = getSummonerName(reqInfo))>> Return your summoner namecreateLobbyCustom(reqInfo, 5)>> Creates a custom lobby of team size 5createLobby(reqInfo, Lobby.RANKED_SOLO)>> Creates a ranked solo lobby
Package: lolcommitmsg
DemoInstallation$pipinstalllolcommitmsg$cdlovely-repository$echo-e'#!/bin/sh\nsed -i "/^#/d" $1\nlolcommitmsg $1'>.git/hooks/commit-msg&&chmod+x.git/hooks/commit-msgAcknowledgementsMoe:https://github.com/busyloop/lolcatWijnand Modderman-Lenstra:https://github.com/tehmaze/lolcat
Package: loldb
LOLLol is a database libraryFeaturesA set of data typesNumbersStringsMapsArraysInterfacesA json-based-databaseAddDeleteUpdateFilterPromptInput promptOptions(coming soon)Project generatorHow to use itDatabaseSee the database documentationhereDatatypesSee all the datatype methodshereArraysfromlol.datatypes.arraysimportArrayarray=Array(int,length=None)Mapsfromlol.datatypes.mapsimportMapsmaps=Maps((int,str))Interfacesfromlol.datatypes.interfaceimportInterfacedata=Interface({name:[str,int],age:"?"# any,})# create an interface objectobj=data.create("Pranav",13)# gives you the nameprint(obj.get_item('name'))# change the valueobj.set_item('name','new-name')Numbersfromlol.datatypes.numberimportNumbernum=Number("777")Stringsfromlol.datatypes.stringimportStringstring=String(7777)CLIProject Generatorlol-create-projectPrompts and optionsfromlol.promptimportPromptdata=Prompt("Name",type=str).prompt()<<<<<<< HEADfromlol.argparseimportParserimportsysdefget(data):print(data)defdelete(data):print(data)p=Parser([{"value":"install $package","types":{"package":str},"func":get},{"value":"delete $package","types":{"package":str},"func":delete}])p.parse()=======ArgParserUnder development21da2c171f7b29ae400e1cdf9ff786edb9279b8b
Package: lolicon
AbstractLolicon is a general purpose library for solving common STEM-related problems
students frequently encounter in highschool and their undergraduate studies. It's
main purpose is to create a beginner-friendly interface with rich documentation
that hopefully lowers the barrier of entrance into the world of programming.DocumentationThere's no official documentation available yet, but the changelog alongside with
all doc strings should give you a pretty good picture on how to utilize this module.
Naturally, this will be worked on before the first major release comes out.NoteThis is a work in progress, as a result of which the API is still target of disruptive
changes. As it stands now, this library is not ready for production use yet.ContactYou can reach me atdev.hentai-chan@outlook.comfor questions related to this
project.
Package: loliglio
![Loliglio web page banner](https://2640050380-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbu0mjMsSISfI64girFHC%2Fuploads%2FG1C5v7BsnxAxB13665Xl%2FNew%20Project%20(7).png?alt=media&token=c1c5a408-9834-4178-a89a-31a6b393c9e2)# Loliglio
## Riot API made easy!
Loliglio allows you to extract data from the Riot API easily for your app development. Loliglio Framework is also intuitive and free.
## Capabilities
- Ordered access to APIs through classes and methods. For example one can access the mastery information of a summoner via:
- ChampionMastery.by_summoner(regionId, encryptedSummonerId)
- Support for both Riot and Comunnity Dragon API. Facilitating the joint work of official information and information provided by the League of Legends community.
- Support for V3, V4 and V5 APIs.
- Region and cluster servers, as well as queues, tiers and divisions are identified by Loliglio’s own IDs instead of text. This facilitates their use, avoids errors due to the use of text strings, and above all, makes the storage and analysis of games through a database more efficient.
- Full access to all information available for and through the Riot API development key.
- Full free access to Community Dragon information
- 10 different classes, related by output data
- 40 different types of function queries, each with unique customization.
- Does not require the installation of additional libraries, since it uses only those present in the Standard Python Library.
- Facilitates error handling when querying an API.
- It has an internal rate limiter that prevents reaching the limit of available queries.
- In any case the limit of queries is reached. The library handles the error automatically to avoid possible bans.
- All outputs are JSON objects, and work just like a dictionary.Check the detailed documentation here:https://conradofmf.gitbook.io/loliglio/Loliglio is made by Conrado Moreno, contact me trough
-https://github.com/hous3master-cfmorenofernandez@gmail.com-https://www.linkedin.com/in/conrado-moreno-fern%C3%A1ndez-01a17220a/Change Log0.0.1 (24/02/2022)First Release0.0.2 (24/02/2022)Fixed error when installing the package through PyPi0.0.3 (24/02/2022)Fixed error when importing the package through PyPi0.0.4 (24/02/2022)Fixed package name src instead of loliglio inside python
Package: loliktry-bangunhitung
Make sure you have upgraded version of pipWindowspy -m pip install --upgrade pipLinux/MAC OSpython3 -m pip install --upgrade pipCreate a project with the following structurepackaging_tutorial/
├── LICENSE
├── pyproject.toml
├── README.md
├── setup.cfg
├── src/
│   └── example_package/
│       ├── __init__.py
│       └── example.py
└── tests/
touch LICENSE
touch pyproject.toml
touch setup.cfg
mkdir src/mypackage
touch src/mypackage/__init__.py
touch src/mypackage/main.py
mkdir testspyproject.tomlThis file tells tools like pip and build how to create your project[build-system]
requires = [
    "setuptools>=68",
    "wheel"
]
build-backend = "setuptools.build_meta"build-system.requires gives a list of packages that are needed to build your package. Listing something here will only make it available during the build, not after it is installed.build-system.build-backend is the name of Python object that will be used to perform the build. If you were to use a different build system, such as flit or poetry, those would go here, and the configuration details would be completely different than the setuptools configuration described below.Setup.cfg setupUsing setup.cfg is a best practice, but you could have a dynamic setup file using setup.py[metadata]
name = example-pkg-YOUR-USERNAME-HERE
version = 0.0.1
author = Example Author
author_email = author@example.com
description = A small example package
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/pypa/sampleproject
project_urls =
    Bug Tracker = https://github.com/pypa/sampleproject/issues
classifiers =
    Programming Language :: Python :: 3
    License :: OSI Approved :: MIT License
    Operating System :: OS Independent

[options]
package_dir =
    = src
packages = find:
python_requires = >=3.6

[options.packages.find]
where = srcRunning the buildMake sure your build tool is up to dateWindowspy -m pip install --upgrade buildLinux/MAC OSpython3 -m pip install --upgrade buildCreate the buildpy -m buildReferenceshttps://packaging.python.org/tutorials/packaging-projects/
Package: lollipop
Data serialization and validation libraryFeaturesflexible schema definition API with powerful type combinatorsdata validationserialization/deserializationin-place deserializationExamplefromlollipop.typesimportObject,String,Datefromlollipop.validatorsimportLengthfromcollectionsimportnamedtuplefromdatetimeimportdatePerson=namedtuple('Person',['name'])Book=namedtuple('Book',['title','publish_date','author'])PersonType=Object({'name':String(validate=Length(min=1)),},constructor=Person)BookType=Object({'title':String(),'publish_date':Date(),'author':PersonType,},constructor=Book)harryPotter1=Book(title='Harry Potter and the Philosopher\'s Stone',publish_date=date(1997,6,26),author=Person(name='J. K. Rowling'))# DumpingBookType.dump(harryPotter1)# => {'title': 'Harry Potter and the Philosopher\'s Stone',#     'publish_date': '1997-06-26',#     'author': {'name': 'J. K. Rowling'}}# LoadingBookType.load({'title':'Harry Potter and the Philosopher\'s Stone','publish_date':'1997-06-26','author':{'name':'J. K. Rowling'}})# => Book(title='Harry Potter and the Philosopher\'s Stone',#         publish_date=date(1997, 06, 26),#         author=User(name='J. K. Rowling'))# Partial inplace loadingBookType.load_into(harryPotter1,{'publish_date':'1997-06-27'})# => Book(title='Harry Potter and the Philosopher\'s Stone',#         publish_date=date(1997, 06, 27),#         author=User(name='J. K. Rowling'))# Loading list of objectsList(BookType).load([{'title':'Harry Potter and the Philosopher\'s Stone','publish_date':'1997-06-26','author':{'name':'J. K. Rowling'}},{'title':'Harry Potter and the Chamber of Secrets','publish_date':'1998-07-02','author':{'name':'J. K. Rowling'}},])# => [Book(...), Book(...)]# ValidationBookType.validate({'title':'Harry Potter and the Philosopher\'s Stone','author':{'name':''},})# => {'author': {'name': 'Length should be at least 1'},#     'publish_date': 'Value is required'}Installation$ pip install lollipopDocumentationDocumentation is available athttp://lollipop.readthedocs.io/.RequirementsPython >= 2.6 or <= 3.6Project LinksDocumentation:http://lollipop.readthedocs.io/PyPI:https://pypi.python.org/pypi/lollipopIssues:https://github.com/maximkulkin/lollipop/issuesLicenseMIT licensed. See the bundledLICENSEfile for more details.
Package: lollipop-hypothesis
Library to generate random test data using Hypothesis based on Lollipop schema.Examplefromcollectionsimportnamedtupleimportlollipop.typesasltimportlollipop.validatorsaslvimportstringEMAIL_REGEXP=r"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]{2,}\.[a-zA-Z0-9-.]{2,}$"Email=lt.validated_type(lt.String,'Email',lv.Regexp(EMAIL_REGEXP))User=namedtuple('User',['name','email','age'])USER=lt.Object({'name':lt.String(validate=lv.Length(min=1)),'email':Email(),'age':lt.Optional(lt.Integer(validate=lv.Range(min=18))),},constructor=User)importhypothesisashimporthypothesis.strategiesashsimportlollipop_hypothesisaslh# Write a test using data generation strategy based on Lollipop schema@h.given(lh.type_strategy(USER))deftest_can_register_any_valid_user(user):register(user)# Configure custom strategy for Email typelh.register(Email,lambda_,type,context=None:\hs.tuples(hs.text('abcdefghijklmnopqrstuvwxyz''ABCDEFGHIJKLMNOPQRSTUVWXYZ''0123456789''_.+-',min_size=1),hs.lists(hs.text('abcdefghijklmnopqrstuvwxyz''ABCDEFGHIJKLMNOPQRSTUVWXYZ''0123456789',min_size=2),min_size=2,average_size=3,)).map(lambda(name,domain_parts):name+'@'+'.'.join(domain_parts)),)# Or configure custom strategy for the whole type instancelh.register(USER,lambdaregistry,type,context=None:\hs.builds(User,name=hs.text(min_size=1),email=registry.convert(Email(),context),age=hs.integers(min_value=0,max_value=100),))Installation$ pip install lollipop-hypothesis

# install optional package for regex support
$ pip install lollipop-hypothesis[regex]RequirementsPython >= 2.7 and <= 3.6lollipop>= 1.1.3hypothesis>= 3.8(optional)hypothesis-regex>= 0.1Project LinksPyPI:https://pypi.python.org/pypi/lollipop-hypothesisIssues:https://github.com/maximkulkin/lollipop-hypothesis/issuesLicenseMIT licensed. See the bundledLICENSEfile for more details.
Package: lollipop-jsonschema
Library to convertLollipop schematoJSON schema.Exampleimportlollipop.typesasltimportlollipop.validatorsaslvEMAIL_REGEXP=r"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$"USER=lt.Object({'name':lt.String(validate=lv.Length(min=1)),'email':lt.String(validate=lv.Regexp(EMAIL_REGEXP)),'age':lt.Optional(lt.Integer(validate=lv.Range(min=18))),},name='User',description='User information')fromlollipop_jsonschemaimportjson_schemaimportjsonprintjson.dumps(json_schema(USER),indent=2)# {#   "title": "User",#   "description": "User information",#   "type": "object",#   "properties": {#     "age": {#       "type": "integer",#       "minimum": 18#     },#     "name": {#       "type": "string",#       "minLength": 1#     },#     "email": {#       "type": "string",#       "pattern": "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"#     }#   },#   "required": [#     "name",#     "email"#   ]# }Installation$ pip install lollipop-jsonschemaRequirementsPython >= 2.7 and <= 3.6lollipop>= 1.1.5Project LinksPyPI:https://pypi.python.org/pypi/lollipop-jsonschemaIssues:https://github.com/maximkulkin/lollipop-jsonschema/issuesLicenseMIT licensed. See the bundledLICENSEfile for more details.
Package: lollygag-cli
LollygagLollygag is a CLI based Task Manager.Core ConceptsTasksTasks are the core construct of Lollygag. A task has the following fields:id- auto incrementing inttitle- Stringdue- DateTimedescription- Stringpriority- Integer corresponding to a priority value:0 - "low"1 - "medium"2 - "high"3 - "critical"status= Integer corresponding to a status value:0 - "Open"1 - "In Progress"2 - "Blocked"3 - "Complete"To add a task, ensure the tasks box has focus (tab / shift-tab to switch focus) and pressctrl+a.  To delete a task, press ctrl+dViewsto organize how you navigate your tasks, a user can create arbitrary views that are built using SQL.  To create a view, ensure the views box has focus, then pressctrl+a.  There are three fields to fill out:Title: The title for this viewQuery: The sql query to performSort Order: An integer used to sort the order of your views. (lower numbers are sorted higher, i.e. 1 is higher on the list than 2, )View SQL QueriesBasic View SQL queries should take the form of:select*fromtaskswhere{yourcriteria}Using the available fields from a Task listed above, we can craft a query to filter all open critical priority items due today:#OpenCriticaltasksduetoday(sqlite)select*fromtaskswherepriority=3anddate(due)=date('now')andstatus=0Other shortcutsTo save a task or view without needing to tab to ok,ctrl+sto abandon editing or creating a view or task,ctrl+wctrl+cto quit