Saravanan666/pypi-org huggingface dataset:
Package: lagom
WhatLagom is a dependency injection container designed to give you "just enough"
help with building your dependencies. The intention is that almost
all of your code doesn't know about or rely on lagom. Lagom will
only be involved at the top level to pull everything together.FeaturesType based auto wiring with zero configuration.Fully based on types. Strong integration with mypy.Minimal changes to existing code.Integration with a few common web frameworks.Support for async python.Thread-safe at runtimeYou can see acomparison to other frameworks here🎉 Version 2.0.0 is now released! 🎉For users of python 3.7 and above this should require no changes. Full details can be found in the release notesupgrade instructions.Installationpipinstalllagom# or:# pipenv install lagom# poetry add lagomNote: if you decide to clone from source then make sure you use the latest version tag. Themasterbranch may contain features that will be removed.For the versioning policy read here:SemVer in LagomUsageEverything in Lagom is based on types. To create an object
you pass the type to the container:container=Container()some_thing=container[SomeClass]Auto-wiring (with zero configuration)Most of the time Lagom doesn't need to be told how to build your classes. If
the__init__method has type hints then lagom will use these to inject
the correct dependencies. The following will work without any special configuration:classMyDataSource:passclassSomeClass:#                        👇 type hint is used by lagomdef__init__(datasource:MyDataSource):passcontainer=Container()some_thing=container[SomeClass]# An instance of SomeClass will be built with an instance of MyDataSource providedand later if you extend your class no changes are needed to lagom:classSomeClass:#                                                👇 This is the change.def__init__(datasource:MyDataSource,service:SomeFeatureProvider):pass# Note the following code is unchangedcontainer=Container()some_thing=container[SomeClass]# An instance of SomeClass will be built with an instance of MyDataSource providedSingletonsYou can tell the container that something should be a singleton:container[SomeExpensiveToCreateClass]=SomeExpensiveToCreateClass("up","left")Explicit build instructions when requiredYou can explicitly tell the container how to construct something by giving it a function:container[SomeClass]=lambda:SomeClass("down","spiral")All of this is done without modifying any of your classes. This is one of the design goals of
lagom.Hooks in to existing systemsA decorator is provided to hook top level functions into the container.@bind_to_container(container)defhandle_move_post_request(request:typing.Dict,game:Game=lagom.injectable):# do something to the gamereturnResponse()(There's also a few common framework integrationsprovided here)Full docs here hereContributingContributions are very welcome.Please see instructions here
Package: lagoon
lagoonConcise layer on top of subprocess, similar to sh projectSupportIf you see an error along the lines of:ImportError: cannot import name 'zyx' from 'lagoon'This means the app requires commandzyxto be available, and you don't have it on your system.
The solution is to installzyxin the usual way, e.g. via your package manager.InstallThese are generic installation instructions.To use, permanentlyThe quickest way to get started is to install the current release from PyPI:pip3 install --user lagoonTo use, temporarilyIf you prefer to keep .local clean, install to a virtualenv:python3 -m venv venvname
venvname/bin/pip install lagoon
. venvname/bin/activateTo developFirst clone the repo using HTTP or SSH:git clone https://github.com/combatopera/lagoon.git
git clone git@github.com:combatopera/lagoon.gitNow use pyven's pipify to create a setup.py, which pip can then use to install the project editably:python3 -m venv pyvenvenv
pyvenvenv/bin/pip install pyven
pyvenvenv/bin/pipify lagoon

python3 -m venv venvname
venvname/bin/pip install -e lagoon
. venvname/bin/activate
Package: lagoon-python
lagoon-pythonlagoon-pythonis the official Python client forlagoon, aAn inmemory and highly concurrent bloom filter service based on json-rpc.You can setup lagoon service: refer -https://raw.githubusercontent.com/sourcepirate/lagoon/master/README.mdInstallationlagoon-python supports:Python (3.5, 3.6, 3.7, 3.8)Install from Pypipipinstalllagoon-pythonUsage# Create a new clientimportlagoonclient=lagoon.connect('YOUR_LAGOON_HOSTNAME','LAGOON_SERVICE_PORT')# Create a collectioncollection1=client.create_collection("collection1")# create a key in the collectionclient.set_key("collection1","key1")# check if a key exist in the collectionclient.has_key("collection1","key1")# delete collectionclient.delete_collection("collection1")### ContributingFirst,makesureyoucanrunthetestsuite.Testsarerunviapy.testInstalltestrequirements```bashpipinstall.[test]py.test# with coveragepy.test--covlagoon--cov-reporthtmlInstall black and flake8pip install .[ci]Install git hooks to avoid pushing invalid code (git commit will runblackandflake8)Releasing a new versionIn order to release new version you need to be a maintainer on Pypi.Update CHANGELOGUpdate the version on setup.pyCommit and push to GithubCreate a new tag for the version (eg.v1.1.0)Create a new dist with pythonpython setup.py sdistUpload the new distributable with twinetwine upload dist/lagoon-python-VERSION-NAME.tar.gzIf unsure you can also test using the Pypi test serverstwine upload --repository-url https://test.pypi.org/legacy/ dist/lagoon-python-VERSION-NAME.tar.gz
Package: lago-python-client
Lago Python ClientThis is a python wrapper for Lago APIInstallationInstall the lago-python-client via pip from PyPI:$ python -m pip install "lago-python-client"(Alternative) Install the lago-python-client viapoetryfrom PyPI:$ poetry add "lago-python-client"UsageCheck thelago API referenceDevelopmentInstall the dependenciespython-mpipinstall--upgradepipsetuptoolswheel
python-mpipinstall.[test]Run testspytestDocumentationThe Lago documentation is available atdoc.getlago.com.Changelog#55-- Error handling (LagoApiError)Example, creating wallet:try:
    response = client.wallets().create(wallet)
except LagoApiError as error:
    do_something(status=error.status_code)Available properties:>>> error.status_code
422

>>> error.detail
'Unprocessable Entity'

>>> error.headers
{'X-Frame-Options': 'SAMEORIGIN', 'X-XSS-Protection': '0', 'X-Content-Type-Options': 'nosniff', 'X-Download-Options': 'noopen', 'X-Permitted-Cross-Domain-Policies': 'none', 'Referrer-Policy': 'strict-origin-when-cross-origin', 'Content-Type': 'application/json; charset=utf-8', 'Cache-Control': 'no-cache', 'X-Request-Id': '613e7542-b29e-4224-bd19-a16dd1bfa62b', 'X-Runtime': '1.024304', 'Vary': 'Origin', 'Transfer-Encoding': 'chunked'}

>>> error.response
{'status': 422, 'error': 'Unprocessable Entity', 'code': 'validation_errors', 'error_details': {'customer': ['wallet_already_exists']}}

>>> error.response['error_details']['customer'][0]
'wallet_already_exists'


>>> error.url
'http://localhost:3000/api/v1/wallets'ContributingThe contribution documentation is availablehereLicenseLago Python client is distributed underMIT license.
Package: lagrange
Pure-Python implementation of Lagrange interpolation over finite fields.PurposeThis library provides a pure-Python implementation of theLagrange interpolationalgorithm over finite fields.Installation and UsageThis library is available as apackage on PyPI:python-mpipinstalllagrangeThe library can be imported in the usual way:fromlagrangeimportlagrangeExamplesInterpolation can be performed on collections of points represented in a variety of ways:>>>lagrange({1:15,2:9,3:3},17)4>>>lagrange([(1,15),(2,9),(3,3)],17)4>>>lagrange([15,9,3],17)4>>>lagrange(\{1:119182,2:11988467,3:6052427,4:8694701,\5:9050123,6:3676518,7:558333,8:12198248,\9:7344866,10:10114014,11:2239291,12:2515398},\15485867)123>>>lagrange(\[119182,11988467,6052427,8694701,9050123,3676518,\558333,12198248,7344866,10114014,2239291,2515398],\15485867)123DevelopmentAll installation and development dependencies are fully specified inpyproject.toml. Theproject.optional-dependenciesobject is used tospecify optional requirementsfor various development tasks. This makes it possible to specify additional options (such asdocs,lint, and so on) when performing installation usingpip:python-mpipinstall.[docs,lint]DocumentationThe documentation can be generated automatically from the source files usingSphinx:python-mpipinstall.[docs]cddocssphinx-apidoc-f-E--templatedir=_templates-o_source..&&makehtmlTesting and ConventionsAll unit tests are executed and their coverage is measured when usingpytest(see thepyproject.tomlfile for configuration details):python-mpipinstall.[test]python-mpytestAlternatively, all unit tests are included in the module itself and can be executed usingdoctest:pythonsrc/lagrange/lagrange.py-vStyle conventions are enforced usingPylint:python-mpipinstall.[lint]python-mpylintsrc/lagrangeContributionsIn order to contribute to the source code, open an issue or submit a pull request on theGitHub pagefor this library.VersioningBeginning with version 0.2.0, the version number format for this library and the changes to the library associated with version number increments conform withSemantic Versioning 2.0.0.PublishingThis library can be published as apackage on PyPIby a package maintainer. First, install the dependencies required for packaging and publishing:python-mpipinstall.[publish]Ensure that the correct version number appears inpyproject.toml, and that any links in this README document to the Read the Docs documentation of this package (or its dependencies) have appropriate version numbers. Also ensure that the Read the Docs project for this library has anautomation rulethat activates and sets as the default all tagged versions. Create and push a tag for this version (replacing?.?.?with the version number):gittag?.?.?gitpushorigin?.?.?Remove any old build/distribution files. Then, package the source into a distribution archive:rm-rfbuilddistsrc/*.egg-infopython-mbuild--sdist--wheel.Finally, upload the package distribution archive toPyPI:python-mtwineuploaddist/*
Package: lagrange-open
About Project LagrangeProject Lagrange is an initiative to bring the power of robust geometry processing to Adobe products. It bridges cutting edge research works with cutting edge products. Project Lagrange is built on the following design principles:Modular designLarge features should be decomposed into smaller single functionality modules that are as decoupled as possible from each other. Modular design enables unit testing, prevents small change from propagating widely in the code base, and makes adding new functionalities easy.Preconditions + guaranteesAlgorithmic correctness should be rigorously enforced. This is achieved by clearly documenting and checking the precise precondition and the corresponding guarantees of each module. Algorithms relying on input-dependent parameter tuning should be avoided.Interface + compute engineThe interface of a functionality should be decoupled from the computation algorithms. This makes swapping out an algorithm with a better algorithm possible and ideally should not require change in client codes.Large scale testingLarge scale, empirical testing on major functionalities should be carried out periodically to ensure their correctness and robustness. Let data speak for itself.ContributingContributions are welcomed! Read theContributing Guidefor more information.LicensingThis project is licensed under the Apache 2.0 License. SeeLICENSEfor more information.
Package: lagrange-points
# Lagrange_points
Project of software development#Descripción del proyecto:Herramienta gráfica para visualizar los puntos de Lagrange y potencial de Roche de objetos celestes con parámetros ingresados por el usuario, con una interfáz interactiva donde el usuario podrá observar como gracias a un slider con el cúal irán variando los parametrós, y en consecuencia la visualizacion de los puntos y el potencial.#Dependencias para su funcionamiento:Numpy(Version: >= 1.7)Matpllotlib(Version >= 3.0.0)PyAstronomy(Version = 0.20.0)#Como usar:(Example ejecution)NombredeFuncion(Masa1,Masa2,Distancia, opcional)Parametros:
* Masa1 (Float)= Masa del objeto más masivo, al tratarse de numeros grandes,en kilogramos. Se puede expresar como potencia de 10 con Numpy(Ej: 1e10)
* Masa2 (Float)= Masa del objeto menos másivo en comparacion al primero, en kilogramos. Se puede expresar como potencia de 10 con Numpy(Ej: 1e10)
* Distancia (Float)= Distancia entre los dos objetos, en kilometros. Se puede expresar como potencia de 10 con Numpy(Ej: 1e10)
Package: lagrange-polynomial
Lagrange PolynomialsModule to generate Lagrange polynomials over integers for 1-dimensional data.
This is generally useful for interpolation.InstallationInstall withpip.UsageExamplefromlagrange_polynomialimportLagrangePolynomialxs=range(100)ys=[f(x)forxinxs]# For some function flp=LagrangePolynomial(xs,ys)# Instantiate a polynomial with sequences of# x- and y-coordinates.forxinxs:assertys[x]==lp(x)# Polynomial will intersect original pointscoefficient=lp.basis[0](x)# Get the 0th basis vector at xInterfaceTheLagrangePolynomialclass takes two equally-sized sequences and an optional integerp.
The instance is a Lagrange polynomialL:x->L(x) over GF(p). Ifpis not provided, it defaults to the 8thMersenne primeM31.It has abasisproperty, aLagrangeBasisobject subclassingSequence.
Each elementℓⱼindexed by integersjinrange(len(xs))is a function takingxto itsjthbasis vectorℓⱼ(x).TestTest withmake test.
Package: lagrange-rmatrix
Lagrange R-MatrixQuick startpip install lagrange-rmatrixDescriptionSolves the radial Bloch-Shrödinger equation in the continuum using the calculable R-Matrix method on a Lagrange-Legendre mesh, following:Descouvemont, P. (2016). An R-matrix package for coupled-channel problems in nuclear physics. Computer physics communications, 200, 199-219,Baye, D. (2015). The Lagrange-mesh method. Physics reports, 565, 1-107,with the primary difference being that this code uses a dimensionless domain for the Shrödinger-Bloch equation, $s = kr$, where $r$ is the radial coordinate and $k$ is the channel wavenumber.Capable of:non-local interactionscoupled-channelsSimple exampleThe following is an example of solving a simple local Woods-Saxon + Coulomb interaction problem in the elastic channelfromlagrange_rmatriximport(ProjectileTargetSystem,# defines channel-independent data for the systemRadialSEChannel,# channel descriptionLagrangeRMatrix,# solverwoods_saxon_potential,# short-range nuclear interactioncoulomb_potential,# long-range EM interactiondelta,# function to calculate phase shift)# Woods-Saxon potential parametersV0=60# real potential strengthW0=20# imag potential strengthR0=4# Woods-Saxon potential radiusa0=0.5# Woods-Saxon potential diffusenessparams=(V0,W0,R0,a0)# We want to have 5 nodes of the wavefunction within the channel radius -# this should allow for the wavefunction to reach its asymptotic phasenodes_within_radius=5# set up the systemsys=ProjectileTargetSystem(incident_energy=20,# [MeV]reduced_mass=939,# [MeV/c^2]Ztarget=40,# charged target and projectileZproj=1channel_radius=nodes_within_radius*(2*np.pi),)# set up the Bloch-SE equation in the elastic channelse=RadialSEChannel(l=1,# p-wave scatteringsystem=sys,interaction=lambdar:woods_saxon_potential(r,params),coulomb_interaction=lambdazz,r:np.vectorize(coulomb_potential)(zz,r,R0))# set up and run solvernbasis=30# number of Lagrange-Legendre functions in the basissolver=LagrangeRMatrix(nbasis,sys,se)R_l,S_l,_=solver_lm.solve()# Get the R and S-Matricesdelta_l,atten_l=delta(S_lm)# get the phase shiftprint(f"phase shift:{delta_lm:.4f}+ i{atten_lm:.4f}[deg]")which should produce the output:phase shift: 38.8723 + i 53.7059 [deg]Example result for a coupled-channel toy problemHere we show a simple toy coupled-channels problem with 3 0 $^+$ levels, and flux incident on the $n=0$ (elastic) channel. For more information, seeexamples/coupled:
Package: lagrange-theorem
Program for decomposition number into sum of four squares
more info:https://ru.wikipedia.org/wiki/РўРµРѕСЂРµРјР°_Р›Р°РіСЂР°РЅР¶Р°_Рѕ_СЃСѓРјРјРµ_С‡РµС‚С‹СЂРµС…_РєРІР°РґСЂР°С‚РѕРІfor install use setup.pyincludes modules:
input_interval - sets the interval of numbers
calculate_numbers - decomposed numbers using Lagrange’s theoremauthor: Dima Skorobogatov
email:dima.skorobogatov.99@mail.ru
Package: lagrang-pack
Практическая работа №6 – Модульные программыИльина Светлана,КИ22-16/1Б,Вариант 15$ python lagrang_pack --help— вызов интерфейса для демонстрации работы$ python lagrang_pack --test— вызов тестов1$ python lagrang_pack/example.py -v— вызов тестов2$ python lagrang_pack/to_sum_of_squares.py -v— демонстрация работы функцииto_sum_of_squares()через тестыПример использования пакета:fromlagrang_pack.to_sum_of_squaresimportto_sum_of_squaresto_sum_of_squares(20,4)[1, 1, 9, 9]
Package: lahar-python
#Lahar Python: Python wrapper for LAHAR APILahar Pythonhelps you to integrate your python based systems
with the mailmarketing software provided by LAHAR.Inspired by the officiallahar-rubypackage.UsageInstall:pip install lahar-pythonThen use it on wherever you need.Import theClientobject:fromlaharimportClientCreate aclientobject passing the API token as parameter.
optionally you can change theevent(defaults tointegration)client=Client('api-token',event='integration')Call the method to send data to the API:# import the LeadStage EnumfromlaharimportLeadStage# create a dict with the data (check the LAHAR api docs for the available keys)data=dict(email_contato='valid@email.com')# create a new lead (sends the data to /conversions endpointclient.create_lead(data)# update a leadstagenew_stage=LeadStage.CLIENTclient.change_lead_status(data,new_stage)ContributeYour contribution is welcome.Setup your development enviroment:git clone git@github.com:virb30/lahar-python.git
    cd lahar-python
    python -m venv .venv
    source .venv/bin/activate
    # or .venv\Scripts\activate on windows
    pip install -r requirements.txt
    python -m unittestLicenseThe MIT License (MIT)Copyright (c) 2021 Vinicius BoscoaPermission 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: lahja
LahjaDocumentation hosted by ReadTheDocsDISCLAIMER: This is alpha state software. Expect bugs.Lahja is a generic event bus implementation written in Python 3.6+ that enables lightweight inter-process communication, based on non-blocking asynchronous IOWhat is this for?Lahja is tailored around one primary use case: enabling multi process Python applications to communicate via events between processes using non-blocking APIs
based on asyncio or trio.Key facts:non-blocking APIs using asynchronous IO (asyncio / trio)lightweight with zero dependenciessimple to useeasy multicasting of events (one event, many independent receivers)easy event routing (e.g route event X only to certain receivers)multiple consuming APIs to adapt to different use cases and stylesDeveloper SetupIf you would like to hack on lahja, please check out theSnake Charmers
Tactical Manualfor information on how we do:TestingPull RequestsCode StyleDocumentationDevelopment Environment SetupYou can set up your dev environment with:gitclonehttps://github.com/ethereum/lahjacdlahja
virtualenv-ppython3venv
.venv/bin/activate
pipinstall-e.[dev]Testing SetupDuring development, you might like to have tests run on every file save.Show flake8 errors on file change:# Test flake8when-changed-v-s-r-1lahja/tests/-c"clear; flake8 lahja tests && echo 'flake8 success' || echo 'error'"Run multi-process tests in one command, but without color:# in the project root:pytest--numprocesses=4--looponfail--maxfail=1# the same thing, succinctly:pytest-n4-f--maxfail=1Run in one thread, with color and desktop notifications:cdvenv
ptw--onfail"notify-send -t 5000 'Test failure ⚠⚠⚠⚠⚠' 'python 3 test on lahja failed'"../tests../lahjaRelease setupFor Debian-like systems:apt install pandocTo release a new version:makereleasebump=$$VERSION_PART_TO_BUMP$$How to bumpversionThe version format for this repo is{major}.{minor}.{patch}for stable, and{major}.{minor}.{patch}-{stage}.{devnum}for unstable (stagecan be alpha or beta).To issue the next version in line, specify which part to bump,
likemake release bump=minorormake release bump=devnum.If you are in a beta version,make release bump=stagewill switch to a stable.To issue an unstable version when the current version is stable, specify the
new version explicitly, likemake release bump="--new-version 4.0.0-alpha.1 devnum"
Package: lahman
template-python-pkgDeveloping# install with development dependenciespipinstall-e.[dev]# or install from requirements filepipinstall-rrequirements/dev.txtTesting# run all tests, see pytest section of pyproject.tomlpytest# run specific markspytest-mex2# stop on first failure, drop into debuggerpytest-x--pdbSetting version number# set version numbergittagv0.0.1# (optional) push to githubgitpushorigin--tags# check versionpython-msetuptools_scm
Package: laiiqa-lab-utilities
LAIIQA Laboratory Utilities PackageLibrería escrita en Python para el análisis numérico y gráfico de los datos obtenidos de los equipos de ozonización (.mat), espectrofotómetro UV/Vis (.asc) y biorreacciones (.csv), en el Laboratorio de Investigación en Ingeniería Química Ambiental (LAIIQA - ESIQIE - IPN).InstalaciónPara Python 2, desde la línea de comandos (cmd o  terminal):>>pipinstalllaiiqa-lab-utilitiesPara Python 3:>>pip3installlaiiqa-lab-utilitiesUso de la libreríaObtención de ozonogramaDesde elIDLEdePython, oJupyter Notebook:import laiiqa.ozonation as oz
import tkinter as tk
from tkinter import filedialog as fd

root = tk.Tk()
root.withdraw()

filetypes = (('MAT-Files', '*.mat'),)

file_path = fd.askopenfilename(
        title='Seleccionar archivo .mat',
        filetypes=filetypes)

c1 = oz.Ozonation()

c1.plot(file_path)