Saravanan666/pypi-org huggingface dataset:
Package: loafer
Loafer is an asynchronous message dispatcher for concurrent tasks processing.Currently, only AWS SQS is supportedFeatures:Encourages decoupling from message providers and consumersEasy to extend and customizeEasy error handling, including integration with sentryEasy to create one or multiple servicesGeneric HandlersAmazon SQS integrationIt requires Python 3.6+ and is very experimental at the moment, expect a lot
of changes until the first major version.ExampleA simple message forwader, fromsource-queuetodestination-queue:fromloafer.ext.aws.handlersimportSQSHandlerfromloafer.ext.aws.routesimportSQSRoutefromloafer.managersimportLoaferManagerroutes=[SQSRoute('source-queue',handler=SQSHandler('destination-queue')),]if__name__=='__main__':manager=LoaferManager(routes)manager.run()DocumentationCheck out the latestLoaferfull documentation atRead the Docswebsite.Changelog:2.0.1 (2020-07-28)Fix setry integration (# by @hartungstenio)Minor improvements2.0.0 (2020-05-16)Dropped support for Python 3.5Added support for Python 3.8Update aiobotocore dependency version (#61 by @GuilhermeVBeira)Improvements due to changes in asyncio (#48, #52 by @lamenezes)Sentry wrapper/helper updated to support new sdk (wip)Minor documentation improvements1.3.2 (2019-04-27)Improve message processing (#48 by @lamenezes)Improve error logging (#39 by @wiliamsouza)Refactor in message dispatcher and event-loop shutdownMinor fixes and improvements1.3.1 (2017-10-22)Improve performance (#35 by @allisson)Fix requirement versions resolutionMinor fixes and improvements1.3.0 (2017-09-26)Refactor tasks dispatching, it should improve performanceRefactor SQSProvider to ignore HTTP 404 errors when deleting messagesMinor fixes and improvements1.2.1 (2017-09-11)Bump boto3 version (by @daneoshiga)1.2.0 (2017-08-15)Enable provider parameters (boto client options)1.1.1 (2017-06-14)Bugfix: fix SNS prefix value in use for topic name wildcard (by @lamenezes)1.1.0 (2017-05-01)Added initial contracsts for class-based handlersAdded generic handlers: SQSHandler/SNSHanderImprove internal error handlingImprove docs1.0.2 (2017-04-13)Fix sentry error handler integration1.0.1 (2017-04-09)Add tox and execute tests for py36Update aiohttp/aiobotocore versionsMinor fixes and enhancements1.0.0 (2017-03-27)Major code rewriteRemove CLIAdd better support for error handlers, including sentry/ravenRefactor exceptionsAdd message metadata informationUpdate message lifecycle with handler/error handler return valueEnable execution of one service iteration (by default, it still runs “forever”)0.0.3 (2016-04-24)Improve documentationImprove package metadata and dependenciesAdd loafer.aws.message_translator.SNSMessageTranslator classFix ImportError exceptions for configuration that uses loafer.utils.import_callable0.0.2 (2016-04-18)Fix build hardcoding tests dependencies0.0.1 (2016-04-18)Initial release
Package: loafer-ng
loaferis an asynchronous message dispatcher for concurrent tasks
processing, with the following features:Encourages decoupling from message providers and consumersEasy to extend and customizeEasy error handling, including integration with sentryEasy to create one or multiple servicesGeneric HandlersAmazon SQS integration:information_source: Currently, only AWS SQS is supportedHow to useA simple message forwader, fromsource-queuetodestination-queue:fromloafer.ext.aws.handlersimportSQSHandlerfromloafer.ext.aws.routesimportSQSRoutefromloafer.managersimportLoaferManagerroutes=[SQSRoute('source-queue',handler=SQSHandler('destination-queue')),]if__name__=='__main__':manager=LoaferManager(routes)manager.run()How to contributeFork this repository, make changes and send us a pull request. We will review
your changes and apply them. Before sending us your pull request please check
if you wrote and ran tests:maketest
Package: loaih
LibreOffice AppImage Helper -loaihLibreOffice AppImage Helper is an enhanced Python porting fromprevious work
from Antonio
Faccioli. It helps
building a LibreOffice AppImage from officially released .deb files with some
options.Getting options and helpYou can ask the app some information on how you can use it:$ loaih --help
$ loaih getversion --help
$ loaih build --help
$ loaih batch --helpFor any other information needed, please visit thewiki of the
project.
Package: loamy
OverviewThis project allows you to execute a list of http operations asynchronously from within an synchronous context.It does not care whether you should do this. It simply allows you to do so if you desire.InstallingThe package is available via pip.pipinstallloamyIf you're not on Windows, install the uvloop extra to increase performance.pipinstall"loamy[uvloop]"UsageThe package can be imported as shown:fromloamy.sessionimportClump,RequestMap,RequestResponseClassDescriptionClumpContainer object that stores collection of requests (type RequestMap) to sendRequestMapContainer object that stores all info about an individual request to sendRequestResponseContainer object that stores the request response and any exception raised for each individual requestExample# Create RequestMap objectsreq1=RequestMap(url="https://baconipsum.com/api",httpOperation="GET",queryParams={"type":"meat-and-filler","format":"json"},)req2=RequestMap(url="https://baconipsum.com/api",httpOperation="GET",queryParams={"type":"all-meat","format":"json"},)req3=RequestMap(url="https://baconipsum.com/api",httpOperation="GET",queryParams={"type":"meat-and-filler","format":"json"},)# Create Clump and call sendRequests()session=Clump(requests=[req1,req2,req3])responses:list[RequestResponse]=session.sendRequests(return_exceptions=True)# Handle responses for individual requestsforrespinresponses:httpVerb=resp.requestMap.httpOperationprint(f"Evaluating response for{httpVerb}request to{resp.requestMap.url}")ifresp.errorisnotNone:print("Exception raised for request")else:print(f"Status Code:{resp.statusCode}")ifresp.bodyisnotNone:print(resp.body)RequestMap ClassclassRequestMap(msgspec.Struct):url:strhttpOperation:Literal["GET","POST","PUT","PATCH","OPTIONS","DELETE"]body:dict|None=NonequeryParams:dict[str,str]|None=Noneheaders:dict[str,str]|None=NoneRequestResponse ClassclassRequestResponse(msgspec.Struct):requestMap:RequestMapstatusCode:intbody:dict|None=Noneerror:BaseException|None=None
Package: loan-calculator
Loan CalculatorElementary Financial Mathematics for Loans.Documentation:https://loan-calculator.readthedocs.io/en/latest/index.htmlBugs:https://github.com/yanomateus/loan-calculator/issuesSource code:https://github.com/yanomateus/loan-calculatorContributing:https://loan-calculator.readthedocs.io/en/latest/contributing.htmlThis library provides implementations of basic elementary financial mathematics
routines which are usually necessary when dealing with loans, for examplePMTAmortizations SchedulesGrossupIRRHistory1.2.2 (2022-07-16)Bug fix: erroneous .to_list calls at utils.display_loan was raising AttributeError1.2.1 (2021-10-01)Bug fix: annual interest rate not being properly converted to a daily
interest rate1.2.0 (2020-12-17)Implement Newton-Raphson based solver to approximate IRRRemove dependency onscipyandnumpyExpand on grossup documentationImplement functioninterest_rate.convert_to_daily_interest_rate1.1.0 (2020-10-15)Remove generic grossup solver. Only direct implementation of mathematical
models should be encourageddrop python 2 support1.0.0 (2020-02-03)Public API0.1.0 (2019-11-10)First release on PyPI.MIT LicenseCopyright (c) 2019, Mateus YanoPermission 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: loan_payoff_tools
This project is designed to determine the optimal way of paying off multiple loans.
This tool can be used to determine if is better to payoff the smallest loan or
the highest interest rate or any other technique.InstallationThe easiest way to install most Python packages is viaeasy_installorpip:$easy_installloan_payoff_toolsUsageimportloan_payoff_toolsExamplesSeeExamplesDevelopmentRun Tests$pythonsetup.pytestInstall$pythonsetup.pydevelopCopyright & LicenseCopyright 2014, Phillip Green IILicense: MIT
Package: loanpy
IntroLoanPy is a linguistic toolkit developed during the course of my PhD thesis
at the University of Vienna, providing solutions for various tasks in
historical and contact linguistics, such as:Mining correspondence patterns from etymological data on the level of
phonology and phonotacticsPredicting loanword adaptation (lateral/horizontal transfers) based on
heuristics and etymological dataHistorical reconstruction of words (vertical transfers) based on
etymological dataEvaluating the quality of the predictive modelsSearching for potential (old) loanwords between two languagesThis toolkit has been designed with ease of use and compatibility in mind,
offering a standalone, easy-to-setup, and cross-platform solution that works
with Python 3.7 or higher.InstallationLatest stable version:$ pip install loanpyDevelopment version:$ pip install git+https://github.com/martino-vic/loanpy.git@mainDocumentationRead the docsCitationIf you use loanpy 3 in your research or project, please cite the following:@misc{martinovic2023,
  author       = {Viktor Martinovi{\'c}},
  title        = {LoanpyDataHub/loanpy: Third stable release},
  month        = may,
  year         = 2023,
  publisher    = {Zenodo},
  version      = {3.0.0},
  doi          = {10.5281/zenodo.7893906},
  url          = {https://doi.org/10.5281/zenodo.7893906}
}LicenseLoanPy is released under the MIT License.Compatible Input DataLoanPy supports the following datasets:streitberggothic,koeblergothicgerstnerhungarianronataswestoldturkicMain Changes Compared to Version 2Standalone: No external dependencies needed.Easy setup: Just download or clone the repository and start using it.Cross-platform: Works on any platform that supports Python.Python Compatibility: Works with Python 3.7 or higher.CLDF Integration: Fully compatible withCLDF data standards.
Package: loapy
loapyAn unofficial asynchronous SDK for Lostark Open API written in Python.Installationloapy requires Python 3.7 or higherpython-mpipinstall--upgradeloapyUsagefromasyncioimportrunfromloapyimportLostArkRestlostark=LostArkRest("your_api_key_here")asyncdefmain()->None:print(awaitlostark.fetch_events())run(main())
Package: lob
lob-pythonThis is the python wrapper for the Lob.com API. See full Lob.com documentationhere. For best results, be sure that you're usingthe latest versionof the Lob API and the latest version of the python wrapper.This library supports active Python releases (i.e., versions which have not reached their end of life), as well as PyPy 3.
The currently supported versions include:Python 3.6Python 3.7Python 3.8Python 3.9PyPy 3Table of ContentsTable of ContentsGetting StartedRegistrationInstallationUsageExamplesAPI DocumentationTestingMaking ReleasesGetting StartedLob Python wrapper works in the object oriented style. That is, to make calls you have to call the method on a class and the return types are python objects. To get adicton any object, you can call theto_dict()method of the object.Here's a general overview of the Lob services available, click through to read more.Postcards APILetters APIChecks APIAddress Verification APIPlease read through the officialAPI Documentationto get a complete sense of what to expect from each endpoint.RegistrationFirst, you will need to first create an account atLob.comand obtain your Test and Live API Keys.Once you have created an account, you can access your API Keys from theSettings Panel.InstallationYou can usepipto install the package.pip install lobTo initialize the wrapper, importloband set theapi_keyimportloblob.api_key='your-api-key'//setanapiversion(optional)lob.api_version='api-version'UsageWe've provided an example script you can run in examples/ that has examples of how to use the lob-python wrapper with some of our core endpoints.ExamplesWe've provided various examples for you to try outhere.There are simple scripts to demonstrate how to create all the core Lob objects (checks, letters, postcards. etc.) as well as more complex examples that utilize other libraries and external files.API DocumentationThe full and comprehensive documentation of Lob's APIs is availablehere.Testinglob-python usesPipenvto manage development environments and dependencies.You install all the development requirements by running$pipenvinstall--dev
$pipenvshellYou can run all tests with the commandLOB_API_KEY=YOUR_TEST_API_KEY pytestin the main directory.$LOB_API_KEY=YOUR_TEST_API_KEYpytestAlternatively you can add theLOB_API_KEYto a.envfile in the project root directory and use thepipenv run testsscript.pipenvruntestsMaking Releaseslob-python includesbumpversionas a development dependency. This
tool should be used when changing the version number, as it will ensure that it's updated correctly and
consistently.Running bumpversion will increment the specified version part (major,minor,patch), commit the change,
and tag it.$bumpversion<part>After the version has been bumped, you can push the change and tag.$gitpushoriginhead
$gitpushorigin--tagsFinally, create the distribution and push it to PyPI usingtwine.$pythonsetup.pysdist
...
Writinglob-4.0.0/setup.cfg
Creatingtararchive
removing'lob-4.0.0'(andeverythingunderit)$twineuploaddist/lob-4.0.0.tar.gzCopyright © 2013-2019 Lob.comReleased under the MIT License, which can be found in the repository inLICENSE.txt.
Package: lobby
lobbylobbyis a fully functioning simulation of a limit-order-book financial exchange, developed for modeling. The aim is to allow exploration of automated trading strategies that deal with "Level 2" market data.It is written for Python 2.7-3+, is single-threaded and operates a standard price-time-priority. It supports both market and limit orders, as well as add, cancel and update functionality. The model is based on few simplifying assumptions, chief of which is zero latency: if a trader issues a new quote, that gets processed by the exchange, all other traders can react to it before any other quote is issued.lobbyis forked fromPyLOBand all changes are also licensed as MIT. Updated to install withpipand work with Python 3.Installlobbyuses only the standard library and can be installed from PyPi:pip install lobby
Package: lobbyists
This package provides a reference parser and database importer for the
United States Senate LD-1/LD-2 lobbying disclosure database. The
Senate provides the database as a series of XML documents,
downloadable here:http://www.senate.gov/legislative/Public_Disclosure/database_download.htmThe SQL database schema used by the importer is a direct translation
of the XML schema used in the Senate documents. This isn’t a
particularly useful format for analyzing lobbying data, but it is
useful for analyzing the lobbying records themselves, which often
contain errors or anomalies. In any case, it shouldn’t be too
difficult to adapt the importing code in this package to a more useful
schema.
Package: lobby-python
lobby-pythonThis is a simple wrapper for Lobby's REST API interface that allows to list discovered
servers and their labels and also update labels of the destination instance.CheckLobbyfor more information.ExamplefromlobbyimportLobbyimportjsonlobby=Lobby(host="localhost",port=1313,token="",proto="http")response=lobby.add_labels(["service:ns","service:smtp","service:node","backup:/srv/apps","backup:/etc"])print(response)response=lobby.delete_labels(["service:node"])print(response)response=lobby.get_discovery()print(json.dumps(response,indent=2))response=lobby.get_discoveries()print(json.dumps(response,indent=2))
Package: lobbyview
FunctionalityPython wrapper for Lobbyview Rest API; uses same endpoints and parameter names as outlined in theLobbyView Rest API DocumentationSample Codeimport os
from dotenv import load_dotenv

from lobbyview import LobbyView

load_dotenv()
LOBBYVIEW_TOKEN = os.environ.get('LOBBYVIEW_TOKEN')

lobbyview = LobbyView.LobbyView(LOBBYVIEW_TOKEN)
print(lobbyview.legislators(legislator_first_name="John", legislator_last_name="McCain"))
print(lobbyview.legislators(legislator_id="M000303"))
Package: lobe
Lobe Python APICode to run exported Lobe models in Python using the TensorFlow, TensorFlow Lite, or ONNX options.Works with Python 3.7, 3.8, 3.9, and 3.10 untested for other versions. [Note: 3.10 only works with the TensorFlow backend]InstallBackend options with pipYou can install each of the backends on an individual basis, or all together through pip like so:# For all of the supported backends (TensorFlow, TensorFlow Lite, ONNX)pipinstalllobe[all]# For TensorFlow onlypipinstalllobe[tf]# For TensorFlow Lite only (note for Raspberry Pi see our setup script in scripts/lobe-rpi-install.sh)pipinstalllobe[tflite]# For ONNX onlypipinstalllobe[onnx]Installing lobe-python without any options (pip install lobe) will only install the base requirements, no backends will be installed.
If you try to load a model with a backend that hasn't been installed, an error message will
show you the instructions to install the correct backend.LinuxBefore running these commands, make sure that you havegitinstalled.# Install Python3sudoaptupdate
sudoaptinstall-ypython3-devpython3-pip# Install Pillow dependenciessudoaptupdate
sudoaptinstall-ylibatlas-base-devlibopenjp2-7libtiff5libjpeg62-dev# Install lobe-pythonpip3installsetuptools# Swap out the 'all' option here for your desired backend from 'backend options with pip' above.pip3installlobe[all]For Raspberry Pi OS (Raspian) run:cd~
wgethttps://raw.githubusercontent.com/lobe/lobe-python/master/scripts/lobe-rpi-install.sh
chmod755lobe-rpi-install.sh
sudo./lobe-rpi-install.shMac/WindowsWe recommend using a virtual environment:python3-mvenv.venv# Mac:source.venv/bin/activate# Windows:.venv\Scripts\activateInstall the library# Make sure pip is up to datepython-mpipinstall--upgradepip# Swap out the 'all' option here for your desired backend from 'backend options with pip' above.pipinstalllobe[all]UsagefromlobeimportImageModelmodel=ImageModel.load('path/to/exported/model/folder')# OPTION 1: Predict from an image fileresult=model.predict_from_file('path/to/file.jpg')# OPTION 2: Predict from an image urlresult=model.predict_from_url('http://url/to/file.jpg')# OPTION 3: Predict from Pillow imagefromPILimportImageimg=Image.open('path/to/file.jpg')result=model.predict(img)# Print top predictionprint(result.prediction)# Print all classesforlabel,confidenceinresult.labels:print(f"{label}:{confidence*100}%")# Visualize the heatmap of the prediction on the image# this shows where the model was looking to make its prediction.heatmap=model.visualize(img)heatmap.show()Note: model predict functions should be thread-safe. If you find bugs please file an issue.ResourcesSee theRaspberry Pi Trash Classifierexample, and itsAdafruit Tutorial.
Package: lobo-rig
lobo_rigPin variables for my controllers.Installation as a submodulepoetryadd--editablegit+ssh://git@github.com/lukasz-lobocki/lobo_rig.gitLicenselobo_rigwas created by Lukasz Lobocki. It is licensed under the terms of the CC0 v1.0 Universal license.All components used retain their original licenses.Creditslobo_rigwas created withcookiecutterandtemplate.
Package: lobot
LoBotA highly extensible IRC Bot framework inspired byirc3Getting started$ pip install lobotRunning LoBotStart LoBot by passing it a working directory:$ lobot ~/.lobotThe first time you run LoBot, it will initialize the directory with a simple echo bot:bot-directory/
    config.json
    plugs/
        echo.pyConfigurationLoBot’s configuration is inconfig.json. The basic LoBot configuration is under the keylobot:"lobot": {
    "nick": "LoBot",
    "username": "LoBot",
    "host": "irc.freenode.net",
    "port": 8001,
    "ssl": false,
    "channels": [
        "#lobot"
    ],
    "plugdir": "plugs",
    "plugins": [
        "echo"
    ]
}Documentationhttps://lobot.readthedocs.orgRequirementsPython >= 3.5LicenseCopyright (c) 2016 Scott LaVignePermission 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: lobsang
LobsangWelcome to Lobsang🧘‍♂️Lobsang is a framework to interact with conversational LLMs in the simplest way possible.It's easy to get started, yet designed to scale up to complex use cases. Enjoy the ride! 🚀Note:This project is still in early development. Expect breaking changes.InstallationRequiresPython 3.11or higher.pipinstalllobsangCore ConceptsLobsang is built around a few core concepts:Chatis the main class of Lobsang. It represents a conversation between a user and a LLM.
It is the main entry point to the framework and stores the chat history for a single conversation.
After creating aChatinstance, you can interact with it by calling itself with one
or more messages:fromlobsangimportChat,UserMessagefromlobsang.answersimportTextAnswerfromlobsang.llmsimportFakeLLMchat=Chat(llm=FakeLLM())#                 👆 FakeLLM returns dummy responses# Call the chat with one message and a corresponding answer (placeholder for the LLM's response)chat([UserMessage("Hello"),TextAnswer()])print("Chat history:")print(chat)# Call the chat with multiple messagesres=chat([UserMessage("What is 1+1?"),TextAnswer(),UserMessage("What is 2+2?"),TextAnswer()])print("Conversation:")print(res)Answersare used to guide the LLM to generate a specific response by modifying user messages.
For example, you can use theJSONAnswerto instruct the LLM to generate a JSON response
(seeexamples/2_directives.ipynbfor more details).ExamplesWe provide a few examples to get you started. You can find them in theexamplesfolder.
The examples use the openai package, make sure to install it before running the examples (pip install openai).
You will also need an OpenAI API key, which you can get here:https://platform.openai.com/account/api-keys.