Saravanan666/pypi-org huggingface dataset:
Package: leaguedaily
LeagueDailyLeauge of Legends Esports update straight from the terminal!Now you can stay up-to-date with your favorite LoL teams/leagues despite your busy schedule.Installrequirement:python3 >= 3.10pip install leaguedailyUsageBy default,leaguedailywithout any arguments will show League of Legends Esports result from the previous day.You can also specify dates in the format ofYYYY-MM-DDas an argument to the program.--teamflag can be used to specify one or more teams in addition to the given date argument.--leagueflag can be used to limit the results to only the given leagues.Known problemsData is pulled from leaguepedia, so there is a limit as to how much data a normal user can pull. As a result, given a too-far-away-from-present date, program's result could be truncated or incorrect.A BO3 series could be in the same day in local time, but in UTC (default time when pulled from API), 2 matches are on the same day and 1 match is on the next day (past midnight UTC time, but still the same day local time).Given the goal of this project (daily update for some busy fans), I decide not to address these problems. The program works consistently enough for what it is created for.Cheers! 🎆
Package: league-data
🌍League-dataCampeões e skins do League of Legends com facilidade.DependênciasPython 3.11(ou qualquer versão superior)Requests(instalado automaticamente, se necessário)InstalaçãoExecute o comando abaixo em seu terminal.python -m pip install league-dataComo funciona?A biblioteca foi criada para facilitar a vida de pessoas que usam dados do League of Legends.Você pode, por exemplo, buscar as skins de cada campeão de forma atualizada e automática!ExemplosClique para visualizar ocódigo de exemplofromleague_dataimportLeagueleague=League()champion=league["zeri"]# -> <league_data.models.Champion object at ...>skin=league["ocean song zeri"]# -> <league_data.models.Skin object at ...>Clique para visualizar umvídeo de demonstraçãohttps://user-images.githubusercontent.com/71716568/226250489-f9845f28-c870-4b34-b762-bae7e0a7ab19.mp4Outros exemplosestão disponíveis nadocumentação.
Package: leaguelosestreakmeter
leaguelosestreakmeterLose streak meter for League of legendsActually checking only Ranked gamesInstallingpipinstallleaguelosestreakmeterYou also need to have an API key from Riot. Get that fromhereUsageEasy to use ;)importleaguelosestreakmeterasllsmriot_api_key="<riot-api-key>"region="EUN1"# other regions list: https://developer.riotgames.com/docs/lolnickname=input("Enter nickname: ")losestreak=llsm.losestreak(riot_api_key,region,nickname)print("Losestreak:{}".format(losestreak))
Package: league-ranker
Given a collection of entrants and their scores, sort them and return their
ranked points.The mechanism used to allocate the ranked points is a generalised form of that
used for theStudent Roboticsleague
points (quote from the SRrulebook):The team with themostgame points will be awarded 8 points
towards the competition league. The team with the second most will
be awarded 6. The team with the third most will be awarded 4 points,
and the team with the fewest game points will be awarded 2 points.
Teams whose robot was not entered into the round, or who were
disqualified from the round, will be awarded no points.Tied robots will be awarded the average of the points that their
combined positions would be awarded. Thus, three robots tied for
first place would receive 6 points each (since this is(8+6+4)/3).The ranker supports an arbitrary number of entrants and zones (as long as there
are fewer entrants than zones) and will return points which follow the pattern
described above.The points for the winning team will be 2 × the number of zones, points for
subsequent places reduce by 2 points per place. Ties are resolved as described
and as a result of the points per place reducing by two, the points for any
entrant will always be an integer.It supports Python 3.7+.TestsTests can be run for the current interpreter by running./run-testsor for
all supported available interpreters by runningtox.
Package: league-shop-base
League Shop BaseReusable Django appQuick startAdd "lsb" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
        ...
        'lsb',
    ]To specify top sold skin values parser, add the following settings:LSB_SETTINGS = {
    'top_sold_skin_values': {
        'func': <dotted_module_string_path>,
        'args': <args>,
        'kwargs': <kwargs>
    }
}
For example:

LSB_SETTINGS = {
    'top_sold_skin_values': {
        'func': 'lsb.utils.skins.get_top_sold_skin_values',
        'args': [0, 150],
        'kwargs': {}
    }
}Changelog (1.0.49)Renamed is_bare_metal to is_premium in adminMake rank field non nullableAdded valid account and old stock filter. Needsold_stock_max_datein LSB_SETTINGS for old stock filter.LSB_SETTINGS = {
...
"old_stock_max_date": "yyyy-mm-dd",
...
}
Package: leak
leakShow info about package releases on PyPI.If you need to install specific version of package it is useful to know all available versions to have a choice.Just run$leak<package_name># e.g.$leakpyramid# show all available releases$leakdjango--alland you will see releases and some useful statistic about package specified. It will show most recent version, most popular (with highest number of downloads) and some additional information.How to installInstall using pip$pipinstallleak# or to make sure the proper interpreter is used$python-mpipinstallleakor upgrade existing version$pipinstall--upgradeleak# or with pip invoked as a module$python-mpipinstall--upgradeleak
$leak--versionContributionSeeDEVELOP.mdto setup your local development environment and create pull request to this repository once new feature is ready.ReleasesSeeCHANGELOG.mdfor the new features included within each release.LicenseDistributed underMIT License.Acknowledgement🍋podmenafor providing nice emoji icons to commit messages.🐍PePyfor providing statistics about downloads.🇺🇦 🇺🇦 🇺🇦 We would also thank the Armed Forces of Ukraine for providing security to perform this work. This work has become possible only because of resilience and courage of the Ukrainian Army.
Package: leakcheck
LeakCheck APIDependencies:Python >= 3.5requeststabulatepysockssetuptoolswheelInstallation:pip3 install leakcheckOr download tarball /git cloneand executepython3 setup.py installFirst start:To start working with this package you need to obtain personal API keyfrom hereand link IP address of your server or personal computer. It can be IPv6 as well as IPv4.Public API can be used without IP linking.Package automatically creates ".pylcapi" file in the home directory on the first startup. Then, API key and/or proxy settings can be loaded from there.Using as a CLI:usage: leakcheck [-h] [--key KEY] [--proxy PROXY] [--type TYPE] [-lo] [-p]
             query

CLI version of LeakCheck API (v1.0.2). Licensed under MIT license

positional arguments:
query          What are we going to search?

optional arguments:
-h, --help     show this help message and exit
--key KEY      Set an API key (taken from config by default)
--proxy PROXY  Set proxy (supported: HTTP/HTTPS/SOCKS4/SOCKS5, default:
                empty)
--type TYPE    Set a type of the query (default: auto)
-lo            Print lines only (default: False
-p             Lookup privately (hashes data with SHA256, then truncates
                hash to 24 characters; works for email, pass_email only,
                default: False)Using as a library:from leakcheck import LeakCheckAPI

# Initialising API class
api = LeakCheckAPI()

# API key setting
api.set_key("YOUR_KEY")

# Now we're ready to make our first request
# A lookup type is detected automatically. To explicitly set it, see below
result = api.lookup("example@example.com") # list of dicts

# A request with the lookup type
result = api.lookup("example@example.com", "email") # list of dictsUsing a proxy:# HTTP/HTTPS/SOCKS4/SOCKS5 supported
# Handled by requests[proxy], requests[socks]
api.set_proxy("socks5://127.0.0.1:8123")Getting your IP:from leakcheck import LeakCheckAPI

# Initialising API class
api = LeakCheckAPI()

ip = api.getIP() # stringGetting your limits:from leakcheck import LeakCheckAPI

# Initialising API class
api = LeakCheckAPI()

# API key setting
api.set_key("YOUR_KEY")

limits = api.getLimits() # dictResponse errors:ErrorDescriptionMissing params (key, check, type)Some params haven't passed in the requestInvalid typeType you provide is invalidAPI Key is wrongKey you provide is invalidAPI Key is blockedYour key is blocked due to some reasons, contact supportNo license on this keyKey you provide does not have a licenseYour query contains invalid charactersThere are some forbidden characters in your queryEnter at least 3 characters to searchQuery passed without minimal number of charactersInvalid emailE-mail type is specified, but your query is not a mailIP linking is requiredIPs are not linked or invalidNot foundThere are no resultsToo many entries, try to concretize your queryYou made a search that contains too many entries, try to search "alex@" instead of "alex"Server Errors:ErrorDescriptionResolution429 Too Many RequestsYour server is sending too many automated requests. API is limited by 3 requests/second per one IP.Try to reduce amount of sendings.
Package: leakcleaner
leakcleanerFunctionalities and cli tool to fetch, parse and normalize raw dataleak data.Free software: MIT licenseDocumentation:https://leakcleaner.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2022-11-20)First release on PyPI.
Package: leaked
Stay tuned for updates - under heavy developmentleakedis a toolkit to find sensitive and security relevant information in different kind of sources.Thesesourcesare implemented as extensibleproviders. In order to find sensitive information in theseprovidersthere are a bunch ofmodules. Eachmodulecontains information to the according service the information belongs to
and one or more search terms.Examples for providers are:GitHubLocal RepositoryExamples for Modules are:FTPWordPressRSA private keysSystem CredentialsFeaturesA beautiful command-line interface thanks to click.Implemented to be easily extensible.…DocumentationGather information:$ leaked gather -p github -m wordpressShow providers:$ leaked providersShow modules:$ leaked modulesKnown IssuesDue to some asynchronous requests to GitHub it triggers aabuse detection mechanismand no further requests are possible for a specific amount of time.Licenseleakedis released under the MIT License. See the bundled LICENSE file for details.
Package: leak-snek
Leak Snek Rate LimitingLeak Snek is a Python library that provides a flexible and extensible implementation of rate limiting for your applicationsTable of ContentsFeaturesGetting StartedLicenseFeaturesAsynchronous and Synchronous Support: The library provides support for both asynchronous and synchronous rate.Flexible Rate Limiting Algorithms: Define your custom rate limiting algorithms by implementing theRateLimiterandAsyncRateLimiterinterfaces.Rate Storage: Manage rate information with theRateStorageandAsyncRateStorageinterfaces.Leaky Bucket Algorithm: Included implementations of the Leaky Bucket Algorithm for both asynchronous and synchronous use cases.Getting StartedInstallation:Install Leak Snek using pip:pipinstallleak_snekUsage:You can use the provided classes and interfaces to implement rate limiting in your Python applications. Additionally, if you need the Leaky Bucket Algorithm, you can use the provided implementations.Synchronous Leaky Bucket Algorithm:fromthreadingimportLockfromleak_snek.limiters.leaky_bucketimportLeakyBucketLimiterfromleak_snek.mutexes.memory_muteximportMemoryMutexfromleak_snek.shortcuts.rate_limitimportrlfromleak_snek.storages.memory_storageimportMemoryStoragelimiter=LeakyBucketLimiter[str](rate_limit=rl("10/m"),rate_storage=MemoryStorage(),key_mutex=MemoryMutex(local_lock=Lock(),lock_factory=lambda:Lock(),),)ifnotlimiter.limit_exceeded("my_key"):...# Perform the operationAsynchronous Leaky Bucket Algorithm:fromcollections.abcimportAsyncGenerator,AwaitablefromcontextlibimportasynccontextmanagerfromtypingimportAny,Self,cast,overridefromredis.asyncioimportRedisfromleak_snek.interfaces.mutexes.aio.muteximportAsyncMutexfromleak_snek.interfaces.storages.aio.rate_storeimportAsyncRateStoragefromleak_snek.interfaces.values.rateimportRatefromleak_snek.limiters.aio.leaky_bucketimportAsyncLeakyBucketLimiterfromleak_snek.shortcuts.rate_limitimportrl@dataclasses.dataclassclassRedisAsyncRateStorage(AsyncRateStorage[str]):redis:Redisasyncdefread(self:Self,key:str)->Rate:ifnotawaitself.redis.exists(key):returnRate.default()rate_dict=awaitcast(Awaitable[dict[Any,Any]],self.redis.hgetall(name=key))returnRate(operations=int(rate_dict[b"operations"]),updated_at=float(rate_dict[b"updated_at"]))asyncdefwrite(self:Self,key:str,value:Rate)->None:awaitcast(Awaitable[int],self.redis.hset(name=key,mapping={"operations":value.operations,"updated_at":value.updated_at}),)@dataclasses.dataclassclassRedisAsyncMutex(AsyncMutex[str]):redis:Redis@override@asynccontextmanagerasyncdeflock(self:Self,key:str)->AsyncGenerator[None,None]:asyncwithself.redis.lock(f"{key}_lock"):yieldasyncdefmain()->None:async_limiter=AsyncLeakyBucketLimiter(rate_limit=rl("10/m"),rate_storage=RedisAsyncRateStorage(redis=Redis()),key_mutex=RedisAsyncMutex(redis=Redis()),)ifnotawaitasync_limiter.limit_exceeded("my_key"):...# Perform the operation```In asynchronous example we implement our own async storage & mutex b/c leak_snek doesn't provide redis integration and it doesn't make much of a sense to implement asynchronous in-memory store.LicenseLeak Snek Rate Limiting is released under the MIT License. See theLICENSEfile for details.
Package: leakylan
Leaky-LANIt is a simple file sharing and HTTP server in LAN for windows and Linux systems which have python3 installed.Note: Files shared using this tool is available to each and every device
connected to LAN. Don't use on public Networks!Main FeaturesEasy to use , setup and maintain100% Open sourceNo third party code only standard python libraries used.setup required only on one computer.Bidirectional sharing of files possible using new web interface.Quick InstallationTo Install fromPyPI:Run the following commands in Linux terminal / Windows powershell / command prompt to install:-pip install leakylanThen simply type following command to get started:-leakylan
Package: lealnumeros
fromlealNumerosimportLealNumerosAPI# Put punctuation in numbersprint(LealNumerosAPI.numerosPontuados(10000))# Output: 10.000# Put symbols# Available formats: (8)    (pt-Br: mil | en: Thousand (Multiple languages))#                           M (Million)#                           B (Billion)#                           T (Trillion)#                           Q (Quadrillion)#                           Qi (Quintillion)#                           Sx (Sextillion)#                           Sp (Septillion)print(LealNumerosAPI.numerosSimbolos(10000))# Output: 10Mil# Write the name of the numberprint(LealNumerosAPI.numerosNome(100,lang='pt-br'))# Multiple language (Exemplo: en (ENGLISH))# Output: Cem (pt-br)# Write differences between numbersprint(LealNumerosAPI.numerosDiferenca(5,10))# Output: 5# Write differences between daysprint(f'{LealNumerosAPI.dataDiferenca(1,2,2023)}Days')# Calculatoraccount=input('What is the mathematical account? (ex .: 10 + 5)')result=LealNumerosAPI.numerosCalculadora(account)print(result)# CHANGELOGS -> https://discord.com/invite/394ChkbKrt# 0.0.6 - Added multiple languages# 0.0.5 - Added function to calculate (add, subtract, multiply and divide)# 0.0.5 - Added function to compare days (by date: day/month/year)# 0.0.4 - Added function to compare difference between numbers.Discord: silvaleal#7458
Suporte:https://discord.gg/394ChkbKrt
Package: leanapi
Lean Api for FastApiLeanAPI is an interface that allows you to create a FastAPI router as a Class.An example class structurefromleanapi.pathimportcontrollerfromleanapi.serverimportrouter@controller("personnel",router)classPersonnel:@router.get("/get/{personnel_id}")defget_personel(self,personnel_id:int)->dict:return{"personnel_id":personnel_id}As a result definition the "/personnel/get/:personnel_id" address becomes active.
"personnel_id" is a path parameter and is a of typeint
Package: leanbase
leanbase-pythonA client for theLeanbaseAPI in python.Usageimportleanbaseaslblb.configure(api_key='api_key')lb.await_initialisation(timeout=0.25)# optionaliflb.user(user).can_access('quarter_pounds'):# Do thiselse:# Do that.lb.user(user).completed('arduous_goal')# optional, recommended.ArchitectureThe code and the runtime is divided into the following modules. Storage, Client, Models and API.Using the client is effectively using the API provided with it. At configuration,a client and stores are createdstores are connected to the client (for auto-updates)the client requests for the first payload and updates the store accordingly.During usage,the stores are queried for the feature along with its segments definitionsthe evaluation algorithm is invoked.the client and stores ensure that the feature definition is always up-to-date
Package: leancloud-better-storage
leancloud-better-storage-pythonbetter leancloud storage wrapper. Simple and lightweight.Installationinstall byeasy_installorpip.$ pip install leancloud-better-storageQuick startModel declaration and query just like SQLAlchemy, see example below.Model declarationfromleancloud_better_storage.storage.modelsimportModelfromleancloud_better_storage.storage.fieldsimportFieldclassProduct(Model):name=Field('product_name',nullable=False)price=Field(nullable=False)field3=Field(nullable=False,default=1)field4=Field()CRUD operationsCreateproduct=Product.create(name='FirstProduct',price=100)product.commit()# v0.1.3 now default null valueassertproduct.field4isNoneRead & Query# find by simple equationproducts=Product.query().filter_by(name='product').find()# support >,<,>=,<=,==.but not support compare to another field.products=Product.query().filter(Product.price<10).find()# support and_(), or_().products=Product.query().filter(Product.created_at>datetime(2018,8,1)).and_()\.filter(Product.created_at<datetime(2018,9,1)).find()# find support limit and skip argument.products=Product.query().order_by(Product.price.desc).find(limit=10)# also support pagination, start from page 0 and 10 elements per page.pages=Product.query().paginate(0,10)forpageinpages:print(page.items)# access elementsUpdateproduct=Product.query().filter_by(name='FirstProduct').first()product.name='LastProduct'product.commit()Deleteproduct=Product.query().filter_by(name='FirstProduct').first()product.drop()Update log0.1.7 修复初始值 null 覆盖了存储服务生成字段值的问题。
Package: lean-contracts
Travis:CircleCI:Base library for defining lean “contract” models for Python.AbstractThis is an implementation of “models” similar to those you see in most
ORMs / forms definition systems, but with the main goal of keeping
things as simple as possible.No metaclasses or descriptors are involved; no hackish code messing up
with standard Python objects functionality either.The idea is to have a “layered” library, providing the bare bones
needed to define your own schemas, along with some nice helpers for
common cases.Use casesAPI clientsORMsFormsExample model definitionfromcontracts.coreimportContract,BaseField# Use BaseField to define your field types, eg. StringField and# IntegerField.classMyModel(BaseObject):first_name=StringField()last_name=StringField()age=IntegerField()Then, create some library to make use of the schema somehow 😊.
Package: lean-dojo
LeanDojo: Machine Learning for Theorem Proving in LeanLeanDojois a Python library for learning–based theorem provers in Lean, supporting bothLean 3andLean 4. It provides two main features:Extracting data (proof states, tactics, premises, etc.) from Lean repos.Interacting with Lean programmatically.RequirementsSupported platforms: Linux, Windows WSL, and macOSGit >= 2.253.9 <= Python < 3.11wgetelanDocker is strongly recommended when using LeanDojo with Lean 3Recommended: Generate aGitHub personal access tokenand set the environment variableGITHUB_ACCESS_TOKENto itInstallationLeanDojo is available onPyPIand can be installed via pip:pipinstalllean-dojoIt can also be installed locally from the Git repo:pipinstall.DocumentationGetting StartedDemos:Lean 3,Lean 4Full documentationQuestions and BugsFor general questions and discussions, please useGitHub Discussions.To report a potential bug, please open an issue. In the issue, please include your OS information, the version of LeanDojo, the exact steps to reproduce the error, and complete logs in debug mode (setting the environment variableVERBOSEto 1). The more details you provide, the better we will be able to help you.Related LinksLeanDojo Website: The official website of LeanDojo.LeanDojo Benchmark: The dataset used in our paper, consisting of 98,734 theorems and proofs extracted frommathlibbygenerate-benchmark-lean3.ipynb.LeanDojo Benchmark 4: The Lean 4 version of LeanDojo Benchmark, consisting of 102,514 theorems and proofs extracted frommathlib4bygenerate-benchmark-lean4.ipynb.ReProver: The ReProver (Retrieval-Augmented Prover) model in our paper.LeanDojo ChatGPT PluginLean Copilot: Running language models as copilots for theorem proving in LeanCitationLeanDojo: Theorem Proving with Retrieval-Augmented Language ModelsNeural Information Processing Systems (NeurIPS), 2023Kaiyu Yang,Aidan Swope,Alex Gu,Rahul Chalamala,Peiyang Song,Shixing Yu,Saad Godil,Ryan Prenger,Anima Anandkumar@inproceedings{yang2023leandojo,title={{LeanDojo}: Theorem Proving with Retrieval-Augmented Language Models},author={Yang, Kaiyu and Swope, Aidan and Gu, Alex and Chalamala, Rahul and Song, Peiyang and Yu, Shixing and Godil, Saad and Prenger, Ryan and Anandkumar, Anima},booktitle={Neural Information Processing Systems (NeurIPS)},year={2023}}
Package: leangle
An add-on forchaliceto improve documentation of an API Gateway.As of version 1.13.0, chalice does not support models for the request or response.
This means any documentation generated for an API Gateway is going to be much less useful.leangle improves this with a collection of decorators for chalice route functions, and
built-in support for marshmallow schemas.InstallationVia pip:pipinstallleangleChalice itself is an optional dependency. This can be useful for testing and validation,
but should not be used for the version of chalice deployed to AWS.pipinstallleangle[chalice]Describe API ParametersAPI Responses can be described with thedescribe.parameterdecorator.
They will be added as documentation to the API Gateway.
They should go after the route decorator, and can be stacked.importleangle@app.route('/',methods=['POST'])@leangle.describe.parameter(name='body',_in='body',description='Create a new widget',schema='WidgetSchema')defindex():returnResponse(status_code=201)Describing the ‘in’ field of a parameter_inis used, asinis a reserved word in Python.Describe API ResponsesAPI Responses can be described with thedescribe.responsedecorator.
They will be added as documentation to the API Gateway.
They should go after the route decorator, and can be stacked.importleangle@app.route('/',methods=['POST'])@leangle.describe.response(201,description='Created')@leangle.describe.response(422,description='Missing Parameter')defindex():returnResponse(status_code=201)Describe Method Tagsimportleangle@app.route('/',methods=['POST'])@leangle.describe.tags(["x-large"])defindex():returnResponse(status_code=201)Add schemasSchema objects can be defined usingmarshmallowWhen decorated with theadd_schemadecorator, they will be added as models to the API Gateway.The name of these Schema classes can be used in the describe decorators.importleanglefrommarshmallowimportSchema,fields@leangle.add_schema()classBaseSchema(Schema):name=fields.Str()@app.route('/',methods=['POST'])@leangle.describe.response(201,description='Created',schema='BaseSchema')defindex():returnResponse(status_code=201)