Saravanan666/pypi-org huggingface dataset:
Package: lambeq
lambeqAboutlambeq is a toolkit for quantum natural language processing (QNLP).Documentation:https://cqcl.github.io/lambeq/User support:lambeq-support@cambridgequantum.comContributions: Please readour guide.If you want to subscribe to lambeq's mailing list, let us know by sending an email tolambeq-support@cambridgequantum.com.Note:Please do not try to read the documentation directly from the preview provided in therepository, since some of the pages will not be rendered properly.Getting startedPrerequisitesPython 3.9+Installationlambeq can be installed with the command:pipinstalllambeqThe default installation of lambeq includes Bobcat parser, a state-of-the-art statistical parser (seerelated paper) fully integrated with the toolkit.To install lambeq with optional dependencies for extra features, run:pipinstalllambeq[extras]To enable DepCCG support, you will need to install the external parser separately.Note:The DepCCG-related functionality is no longer actively supported inlambeq, and may not work as expected. We strongly recommend using the default Bobcat parser which comes as part oflambeq.If you still want to use DepCCG, for example because you plan to applylambeqon Japanese, you can install DepCCG separately following the instructions on theDepCCG homepage. After installing DepCCG, you can download its model by using the script provided in thecontribfolder of this repository:pythoncontrib/download_depccg_model.pyUsageThedocs/examplesdirectory contains notebooks demonstrating usage of the various tools in
lambeq.Example - parsing a sentence into a diagram (seedocs/examples/ccg2discocat.ipynb):fromlambeqimportBobcatParserparser=BobcatParser()diagram=parser.sentence2diagram('This is a test sentence')diagram.draw()TestingRun all tests with the command:pytestNote: if you have installed in a virtual environment, remember to
install pytest in the same environment using pip.Building documentationTo build the documentation, first install the required dependencies:pipinstall-rdocs/requirements.txtthen run the commands:cddocs
makeclean
makehtmlthe docs will be underdocs/_build.LicenseDistributed under the Apache 2.0 license. SeeLICENSEfor
more details.CitationIf you wish to attribute our work, please citethe accompanying paper:@article{kartsaklis2021lambeq,
   title={lambeq: {A}n {E}fficient {H}igh-{L}evel {P}ython {L}ibrary for {Q}uantum {NLP}},
   author={Dimitri Kartsaklis and Ian Fan and Richie Yeung and Anna Pearson and Robin Lorenz and Alexis Toumi and Giovanni de Felice and Konstantinos Meichanetzidis and Stephen Clark and Bob Coecke},
   year={2021},
   journal={arXiv preprint arXiv:2110.04236},
}
Package: lambert
Lambert-pythonA pure python module to convert from Lambert to WGS84 positioning system
Highly inspired byhttps://github.com/yageek/lambert-javaThank you Yannick Heinrich !InstallTo install this module just typepip install lambertExamplefromlambertimportLambert93,convertToWGS84Degprint(str(Lambert93.n()))pt=convertToWGS84Deg(780886,6980743,Lambert93)print("Point latitude:"+str(pt.getY())+" longitude:"+str(pt.getX()))
Package: lamberthub
lamberthub: a hub of Lambert's problem solversA collection of Lambert's problem solvers implemented using modern Python.Install the latest stable release by running:pipinstalllamberthubJust in case you are interested on knowing what the problem is about, how to
solve it or which applications it has, please check theofficial documentation
of the project. For further
information about software internals, refer toAPI
documentation.Which solvers are available?Once installed, you can start by checking which solverslamberthubships with
by running:fromlamberthubimportALL_SOLVERSprint([solver.__name__forsolverinALL_SOLVERS])At this moment, the following algorithms are available:>>>['gooding1990','avanzini2008','arora2013','izzo2015']How can I use a solver?Any Lambert's problem algorithm implemented inlamberthubis a Python function
which accepts the following parameters:# Import a solver of your choice from the ones listed abovefromlamberthubimportauthorYYYYv1,v2=authorYYYY(mu,r1,r2,tof,prograde=True,low_path=True,maxiter=35,atol=1e-5,rtol=1e-7,full_output=False)whereauthoris the name of the author which developed the solver andYYYYthe year of publication. Any of the solvers hosted by theALL_SOLVERSmacro
can be used.Parametersmu: the gravitational parameter, that is the mass of the attracting body
times the gravitational constant.r1: initial position vector.r2: final position vector.tof: time of flight between initial and final vectors.Additional parametersprograde: this parameter controls the inclination of the final orbit. If set
toTrue, the transfer will have an inclination between 0 and 90 degrees
while ifFalseinclinations between 90 and 180 are provided.low_path: selects the type of path when more than two solutions are available.
There is no actual advantage on one or another solution, unless you have
particular constrains on your mission.maxiter: maximum number of iterations allowed when computing the solution.atol: absolute tolerance for the iterative method.rtol: relative tolerance for the iterative method.full_output: ifTrue, it returns additional information such us the number
of iterations.Returnsv1: initial velocity vector.v2: final velocity vector.Additional returnsnumiter: number of iterations. Only iffull_outputhas been set toTrue.tpi: time per iteration. Only iffull_outputhas been set toTrue.Documentation and performance comparison toolsTheofficial lamberthub
documentationcontains different
how-to guides, explanations, tutorials and references related to the package.If you are interested in the performance comparison tools provided, please refer
tothis documentation
chapter,
were you can find a brief tutorials on how to use those tools.
Package: lambkin
Deprecation WarningLambkin was designed as a simple tool for simple tasks. Today, it’s
difficult to recommend over more functional systems such asServerlessandApex. Please consider alternatives before getting
too involved with Lambkin.LambkinLambkin is a CLI tool for generating and managing simple functions in
AWS Lambda.Supporting Node.js and Python, Lambkin generates skeleton functions,
provides lightweight help for managing dependencies, and does its best
to hide the complexity of publishing and running functions in Lambda.Quick StartPrerequisitesA valid~/.aws/credentialsfile. eg.[default]
aws_access_key_id = AKIAUAVOHGHOOWEEYIED
aws_secret_access_key = 90kX2Y2bykTH9CpQFHCzN92tukYf26… or the equivalent environment variables (AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY).A workingvirtualenvcommand if you will be writing Lambda
functions in Python.Installingpip install lambkinExamplesCreate a new Python function from a basic templatelambkincreatecool-funccdcool-func$EDITORcool-func.py…or a maybe you prefer Node.jslambkincreatecool-func--runtime=nodejscdcool-func$EDITORcool-func.jsInstall packages and dependencies for a Python function$EDITORrequirements.txtlambkinbuildInstall packages and dependencies for a Node.js function$EDITORMakefilelambkinbuildBundle up your function (with libraries) and send it to Lambdalambkinpublish--description'The best function ever.'Increase the timeout for a long-running functionlambkinpublish--description'Slow'--timeout=300Increase the memory allocation for a functionlambkinpublish--description'Big'--memory=1024Invoke the published function, right now!lambkinrunSchedule the function to run at regular intervalslambkinschedule--rate='10 minutes'Remove the function from Lambda, but keep it locallylambkinunpublishDependencies - pip and npmPython functions get arequirements.txtfile where you can specify
dependencies. They will be installed into your function’s virtualenv bylambkin build.For now, Node.js functions just get a Makefile. Nicer, more Node-ish
dependency management is planned for the future.
Package: lamblackbox
LamblackboxThis is a AWS Lambda function logging library.Installpip install lamblackboxUsageAPI GatewayCode.import lamblackbox
import json


@lamblackbox.apigateway
def lambda_handler(event, context):
    return {
        "statusCode": 200,
        "body": json.dumps({
            "message": "hello world",
        }),
    }Logged.START RequestId: 52fdfc07-2182-154f-163f-5f0f9a621d72 Version: $LATEST
[INFO]	2019-03-09T18:51:44.232Z	52fdfc07-2182-154f-163f-5f0f9a621d72	{"event": {"body": "eyJ0ZXN0IjoiYm9keSJ9", "resource": "/{proxy+}", "path": "/path/to/resource", "httpMethod": "POST", "isBase64Encoded": true, "queryStringParameters": {"foo": "bar"}, "pathParameters": {"proxy": "/path/to/resource"}, "stageVariables": {"baz": "qux"}, "headers": {"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", "Accept-Encoding": "gzip, deflate, sdch", "Accept-Language": "en-US,en;q=0.8", "Cache-Control": "max-age=0", "CloudFront-Forwarded-Proto": "https", "CloudFront-Is-Desktop-Viewer": "true", "CloudFront-Is-Mobile-Viewer": "false", "CloudFront-Is-SmartTV-Viewer": "false", "CloudFront-Is-Tablet-Viewer": "false", "CloudFront-Viewer-Country": "US", "Host": "1234567890.execute-api.us-east-1.amazonaws.com", "Upgrade-Insecure-Requests": "1", "User-Agent": "Custom User Agent String", "Via": "1.1 08f323deadbeefa7af34d5feb414ce27.cloudfront.net (CloudFront)", "X-Amz-Cf-Id": "cDehVQoZnx43VYQb9j2-nvCh-9z396Uhbp027Y2JvkCPNLmGJHqlaA==", "X-Forwarded-For": "127.0.0.1, 127.0.0.2", "X-Forwarded-Port": "443", "X-Forwarded-Proto": "https"}, "requestContext": {"accountId": "123456789012", "resourceId": "123456", "stage": "prod", "requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef", "requestTime": "09/Apr/2015:12:34:56 +0000", "requestTimeEpoch": 1428582896000, "identity": {"cognitoIdentityPoolId": null, "accountId": null, "cognitoIdentityId": null, "caller": null, "accessKey": null, "sourceIp": "127.0.0.1", "cognitoAuthenticationType": null, "cognitoAuthenticationProvider": null, "userArn": null, "userAgent": "Custom User Agent String", "user": null}, "path": "/prod/path/to/resource", "resourcePath": "/{proxy+}", "httpMethod": "POST", "apiId": "1234567890", "protocol": "HTTP/1.1"}}, "x-application-trace-id": "d2ca8a85-6a7f-420b-abdb-30f4e75a0662"}
[INFO]	2019-03-09T18:51:44.233Z	52fdfc07-2182-154f-163f-5f0f9a621d72	{"result": {"statusCode": 200, "body": "{\"message\": \"hello world\"}", "headers": {"x-application-trace-id": "d2ca8a85-6a7f-420b-abdb-30f4e75a0662"}}, "x-application-trace-id": "d2ca8a85-6a7f-420b-abdb-30f4e75a0662"}
END RequestId: 52fdfc07-2182-154f-163f-5f0f9a621d72
REPORT RequestId: 52fdfc07-2182-154f-163f-5f0f9a621d72	Duration: 6.70 ms	Billed Duration: 100 ms	Memory Size: 128 MB	Max Memory Used: 22 MB
Package: lamblbs
lamblbsUnofficial Lambdalabs CLI⚡ Minimalistic CLI to manage your Lambdalabs Cloud instances ⚡IntroductionThis is a personal project that helped me automate the provisioning and deprovisioning of Lambdalabs Cloud instances while I was playing withRay on-prem clusters. I thought it might be useful for others and decided to share it for anyone to use it. This CLI is leveraging the LambdalabsAPI, but it is by no means endorsed by or associated with the Lambdalabs company.Pre-requisitesConfigure your Lambdalabs API key usingexport LAMBDALABS_API_KEY=....Installationpip install lamblbsUsageList instance typeslamblbsinstancetypesList running instanceslamblbsinstanceshow-allLaunch a new instancelamblbsinstancelaunch\--nameray-head-node\--typegpu_1x_a10\--regionus-west-1\--ssh_keylambdalabs-ssh-ray\--qty1NOTE: This assumes you've created thelambdalabs-ssh-raybefore hand.Check and wait for your instances to be activelamblbsinstancecheck-status--statusactiveThere are other supported commands as well which can be displayed using:lamblbs--help
Package: lambo
LamboSimple and visually pleasing logger for AWS Lambda that prepends your log lines with the log level and the AWS request ID, making searching CLoudWatch for event logs a cinch!Before installing lambo…START RequestId: 03cf3256-f2e1-461c-a4a0-60eb91ac8149 Version: $LATEST
This log line was generated with ``print()``
END RequestId: 03cf3256-f2e1-461c-a4a0-60eb91ac8149
REPORT RequestId: 03cf3256-f2e1-461c-a4a0-60eb91ac8149	Duration: 3000.00 ms	Billed Duration: 3000 ms	Memory Size: 128 MB	Max Memory Used: 128 MBAfter installing lambo…START RequestId: 03cf3256-f2e1-461c-a4a0-60eb91ac8149 Version: $LATEST
DEBUG RequestId: 03cf3256-f2e1-461c-a4a0-60eb91ac8149 This log line was generated with ``logger.debug()``
INFO RequestId: 03cf3256-f2e1-461c-a4a0-60eb91ac8149 This log line was generated with ``logger.info()``
WARNING RequestId: 03cf3256-f2e1-461c-a4a0-60eb91ac8149 This log line was generated with ``logger.warning()``
ERROR RequestId: 03cf3256-f2e1-461c-a4a0-60eb91ac8149 This log line was generated with ``logger.error()``
END RequestId: 03cf3256-f2e1-461c-a4a0-60eb91ac8149
REPORT RequestId: 03cf3256-f2e1-461c-a4a0-60eb91ac8149	Duration: 3000.00 ms	Billed Duration: 3000 ms	Memory Size: 128 MB	Max Memory Used: 128 MBWhy not useaws_lambda_powertools? If you are already building your Lambda package with external dependencies well then you could probably use that great tool by AWS.But if you are looking for a lighter-weight solution with no external dependencies, then this might help you.InstallationpipinstalllamboUsageCreate a logger using thegetLogger()method and bind it to your Lambda handler functions with the@binddecorator.importlambologger=lambo.getLogger('my-logger')@logger.binddefhandler(event,context):logger.info('HELLO!')return{'ok':True}Or, if brevity is your thing, import the built-in logger:fromlamboimportlogger@logger.binddefhandler(event,context):logger.info('HELLO!')return{'ok':True}CustomizationThe default log level for lambo loggers isINFOand the default format string is%(levelname)s %(awsRequestId)s %(message)s, whereawsRequestIdis extracted from the Lambda execution context.You can override these values at runtime…importlambologger=lambo.getLogger('my-logger','DEBUG','%(message)s')Or with ENV variables…exportLAMBO_LOG_LEVEL=DEBUGexportLAMBO_LOG_FORMAT="%(message)"
Package: lambpack
Creates Python 2.7 packages for AWS Lambda, installing requirements and setting
build-time variables.Bare minimumLambpack’s purposely minimal - it only packages functions. No uploading,
no publishing, no aspirations to become a framework.Command-line exampleGiven a directorymy-functioncontaining:index.pywith ahandler(event, context)function.An optionalrequirements.txtlisting required packages.Run the following to getpackaged.zip, ready for upload to AWS
Lambda:$pipinstalllambpack$lambpackmy-functionpackaged.zipindex.handler--envDEBUG=yes--envMY_OTHER_FLAG=123Your function can access the--envvariables viaos.environ.API exampleAs above, but via the API:importlambpacklambpack.to_zip(path="my-function",dest="packaged.zip",handler="index.handler",env={"ENV":"prod"})Seesrc/lambpack/packager.pyfor more info.
Package: lamd
LaMDA set of scripts for converting markdown files into talks.The scripts rely on the generic preprocessor,gpp,https://github.com/logological/gpp. On Linux it can be installed usingapt-get install gppAnd on OSX it's available through brew.brew install gppThe code wraps gpp and creates make files for doing the conversion.maketalk: for converting talk files from markdown to other formats.makecv: for converting CVs from markdown to other formats.flags: For extracting flags for pandoc's use from the configuration file_config.ymlmdfield: for extracting a field from markdown header file.dependencies: for listing the dependencies in a given markdown file.
Package: lamden
Lamden BlockchainGet a computer with Ubuntu 18.04.DigitalOcean droplets are our favorites if you are new.Install Pip3sudoapt-getupdate
sudoapt-getinstallpython3-pip-yInstall MongoDBAs copied from here:https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/wget-qO-https://www.mongodb.org/static/pgp/server-4.2.asc|sudoapt-keyadd-echo"deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse"|sudotee/etc/apt/sources.list.d/mongodb-org-4.2.list
sudoapt-getinstall-ymongodb-orgecho"mongodb-org hold"|sudodpkg--set-selectionsecho"mongodb-org-server hold"|sudodpkg--set-selectionsecho"mongodb-org-shell hold"|sudodpkg--set-selectionsecho"mongodb-org-mongos hold"|sudodpkg--set-selectionsecho"mongodb-org-tools hold"|sudodpkg--set-selections
sudosystemctlstartmongodInstall Haveged (Recommended)For some reason, DigitalOcean droplets, and perhaps other cloud providers, have/dev/randomblocking problems. This probably is because they are running many small computers on a single Linux instance and the entropy pool dries up pretty quickly. If this doesn't make sense, install Haveged and don't worry about it.If it does,libsodium, which is the public-private key cryptography library we use, uses/dev/randomwith no option to use/dev/urandom. Haveged solves this problem.sudoapt-getinstallhaveged-y
systemctlstarthaveged
systemctlenablehavegedInstall Lamdenpip3 install lamdenMake a Constitutionnano ~/constitution.json

{
  "masternodes": [<list of vks here>],
  "masternode_min_quorum": <int>,
  "delegates": [<list of vks here>],
  "delegate_min_quorum": <int>
}

Ctrl+X, save the file.Start your nodelamden <masternode | delegate> -k <sk in hex format> -bn <list of ip addresses that are currently online>AutoinstallYou can install a script to install the entire software.wget https://raw.githubusercontent.com/Lamden/lamden/dev/INSTALL.shAlways practice good saftey and examine the bash file before executing it.
Package: lamedec
LAME MP3 decoding wrapperUsagelamedec.decode(src,dst)ParameterssrcInstance of io.RawIOBase (eg. FileIO, ByteIO ...).dstSame parameter for wave module.Sampleimportioimportlamedecsrc=io.FileIO("src.mp3","rb")dst="dst.wav"lamedec.decode(src,dst)Seesamples.
Package: laminar
laminar"slow is smooth, and smooth is fast"laminaris the workflow framework that works for you. It aims to be a modern container first framework that enables you to rapidly go from local development into production as quickly as possible.Easy to write, container first, cloud firstConfigureable statically at definition time and dynamically at runtimeFully definined in Python and fully typedEasily testableForeach fanoutsComposable workflowsConditional branchingNo AST introspection, shared global state, or function hijacking magicTo learn more, read thedocumentation.# main.pyfromlaminarimportFlow,Layer# Declare the FlowclassHelloFlow(Flow):...# Register Layers@HelloFlow.registerclassHello(Layer):def__call__(self)->None:self.value="hello"# Register a Layer dependency@HelloFlow.registerclassWorld(Layer):def__call__(self,hello:Hello)->None:print(f"{hello.value}world")# Execute the Flowifflow:=HelloFlow():flow()pythonmain.py>>>"hello world"InstallationTo install the latest release oflaminar:python-mpipinstalllaminarTo upgrade to the latest release oflaminar:python-mpipinstall--upgradelaminarContributingWe welcome contributions to laminar.
Package: laminated
Laminated provide dictionary like object with the layers support. The
general suppose is a data set with fluctuations in differents pieces.Quick ExamplesExample 1fromlaminatedimportLaminated# The company FOO has employeers with this paymenths in monthinition_employee_pay={'John':120000,'Mike':150000,'Sara':80000,'David':60000,}l=Laminated()l.add_layer(name='2017-01',data=inition_employee_pay,)# John have increase pays in februaryl.add_layer(name='2017-02',data={'John':130000,},)# March have no any differences, that layer is emptyl.add_layer({},'2017-03')# In April Sara groing upl.add_layer(name='2017-04',data={'Sara':100000,},)# how many company FOO spend money on they workers by monthsamount=0formonthinl.get_layers_names():foremployeeinl:amount+=l.get_value_at_layer(month,employee)# the result will be 1690000print('Total amount of pays is{}'.format(amount))
Package: lamindb
LaminDB - A data framework for biologyLaminDB is an open-source Python framework to manage biological data & analyses:Access data & metadata across storage & databases.Track data lineage across notebooks & pipelines.Manage registries for experimental metadata & in-house ontologies.Validate, standardize & annotate data.Organize and share data across a mesh of LaminDB instances.Manage data access, leverage an auditable system of record.DocumentationRead thedocs.
Package: laminekali
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>=42",
    "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/