Saravanan666/pypi-org huggingface dataset:
Package: lazer
LazerLazer is a Python library that provides a convenient way to expose Python functions as schemas for OpenAI chat models.For those not in the know:OpenAI - Function CallingWhat it DoesAllows you to more easily inform GPT about functions in your code 😊Warningdon't RCE yourself lolInstallationTo install Lazer, simply run:pipinstalllazerUsageHere is an example of how to use Lazer:fromlazerimportLazer,LazerConversationlazer=Lazer()# GPT is now made aware of your function `qux`@lazer.usedefqux(num:int,name:str)->str:"""Retrieve a number and a name from the user and compute the qux of it"""returnstr(num+len(name)*13)conversation=LazerConversation(lazer,{"model":"gpt-3.5-turbo-0613"})response=conversation.talk("What is the qux of 3 and steven")print(response)# ... 81 ...NoteYou do not have to use the LazerConversation GPT frontend, you can simply use
the Lazer functions.use(decorator) and.get_functions()as well as.dispatch()to build your own GPT frontend utilizing Lazer.NoteIf you are using the LazerConversation frontend be sure to set anOPENAI_API_KEYin a.envfile somewhere in your directory.DemoGo todemo/for some demo code.Authors:@JustinStitt@diamondburned
Package: lazerpay-sdk
**Github Repo**:  [https://github.com/keosariel/lazerpay-py-sdk](https://github.com/keosariel/lazerpay-py-sdk)
**Documentation**: [https://github.com/keosariel/lazerpay-py-sdk/blob/master/README.md](https://github.com/keosariel/lazerpay-py-sdk/blob/master/README.md)
Package: lazgui
Lazgui Helps To Create Lazarus Pascal Gui Project.NoteRight now this project is VERY Alpha… I’m just trying out an idea.See the Code at:https://github.com/sonofeft/LazGUISee the Docs at:http://lazgui.readthedocs.org/en/latest/See PyPI page at:https://pypi.python.org/pypi/lazguiLazGUI will place all of the required files for the Lazarus project
into a subdirectory by project name.  The project can be built using “lazbuild”
that comes with a Lazarus install, or by opening the <project_name>.lpi file with
the Lazarus IDE.On Windows, there is a batch file called <project_name>.bat that will run
lazbuild and run the resulting <project_name>.exe automatically.
Package: lazier
lazierlazier allows you to move faster when you are exploring how functions change with their input, this module was written because I often felt that there had to be an easier way to work in a interactive enviroment with jupyter notebooks.Here is a demonstration:
Without lazier:deffoo(a,b,c,d):print(a)print(b)print(c)print(d)foo(a=1,b=2,c=3,d=4)1
2
3
4foo(d=2)---------------------------------------------------------------------------

TypeError                                 Traceback (most recent call last)

<ipython-input-3-9233fe4ac2c5> in <module>()
----> 1 foo(d=2)


TypeError: foo() missing 3 required positional arguments: 'a', 'b', and 'c'with lazier:fromlazierimportlazier@lazierdeffoo(a,b,c,d):print(a)print(b)print(c)print(d)foo(a=1,b=2,c=3,d=4)1
2
3
4Now suppose you want to see how the output of the function changed if d was 7 in the above function call, with lazier it looks like:foo(d=7)1
2
3
7and so on.foo(a=9)9
2
3
7using reset you can forget all past values that it remebersfoo.reset()foo()foo() missing 4 required positional arguments: 'a', 'b', 'c', and 'd'foo(a=1,b=11,c=3)foo() missing 1 required positional argument: 'd'foo(d=9)1
11
3
9
Package: lazimp
LazImp, The "don't wait for it..." packageLazImp is a package that allows lazy loading of python modules, packages and
symboles for python 3.10+. This package allows you to load modules and packages
onlywhenthe user use it. From dynamic import to "I only need this
function, not the whole framework", the start-up time is speed-up and delayed
over the execution of the software.Using LazImp, you will reduce the memory usage and the start-up time of your
software.ExampleFirst, you may have long loading or memory heavy modules to expose in your
package api:# package/heavy_module.pyprint('Heavy module is loading...')fromtimeimportsleepsleep(10)print('heavy_module loaded')But instead of importing them directly, you can do a lazy import in
the__init__.py:# package/__init__.py of a packageimportlazimpmath:lazimp.ModuleTypeheavy_module:lazimp.ModuleType__getattr__=lazimp.lazy_import('math',heavy_module='package',)Now, when you import the package:# main.pyimportpackageprint('Before access to heavy_module')print(package.heavy_module)print('After access to heavy_module')print('Before access to math')print(package.math)print('After access to math')And the output:Before access to heavy_module
Heavy module is loading...
(wait 10 sec)
heavy_module loaded
<module 'heavy_module' from '...'>
After access to heavy_module
Before access to math
# math loaded
<module 'math' (built-in)>
After access to mathWithout the lazy loading ofheavy_module.py, the output would have been:Heavy module is loading...
(wait 10 sec)
heavy_module loaded  # math loaded too
Before access to heavy_module
<module 'heavy_module' from '...'>
After access to heavy_module
Before access to math
<module 'math' (built-in)>
After access to mathWhy this name: LazImp?lazimpis a portmanteau oflazyandimp.impwas the name of the moduleimportlibbefore python 3.4 and its
deprecation:What's new in Python 3.4: Deprecations in the Python APIThe name could have beenlazy_importbut theimppart was preferred as a
reference to the original module and because an
imp with sunglasses and cocktail is cool 😎, andlazyshorten because it
sounded better.
Package: lazo
LazoSmall utility to work with Rancher. It has been developd to be used in CI environments.Current features:get infos on running cluster/project/workloadget docker image infoupgrade workloadexecute commands in running containersInstall$ pip install lazoor usingpipx$ pipx install lazoHelp$ lazo --help
Usage: lazo [OPTIONS] COMMAND [ARGS]...

Options:
  --version        Show the version and exit.
  --env
  -v, --verbosity  verbosity level
  -q, --quit       no output
  -d, --dry-run    dry-run mode
  --debug          debug mode
  -h, --help       Show this message and exit.

Commands:
  docker
  rancherEnvironment varialblesRANCHER_BASE_URL as--base-urlRANCHER_KEY as--keyRANCHER_SECRET as--secretRANCHER_CLUSTER as--clusterRANCHER_PROJECT as--projectRANCHER_INSECURE as--inxecureDOCKER_REPOSITORY as--repositoryYou can inspect your default configuration with:$ lazo --defaults
Env                  Value                                              Origin
repository           https://hub.docker.com/v2
auth
base_url
cluster
insecure             False
project
use_names            Falseor list handler environment variables with:$ lazo --env
Env                  Value
DOCKER_REPOSITORY    -- not set --
RANCHER_AUTH         -- not set --
RANCHER_BASE_URL     -- not set --
RANCHER_CLUSTER      -- not set --
RANCHER_INSECURE     -- not set --
RANCHER_PROJECT      -- not set --
RANCHER_USE_NAMES    -- not set --ExamplesRancherget infos on running workload$ lazo rancher -i -n info -p cluster1:bitcaster -w bitcaster:bitcaster
Workload infos:
Image: bitcaster/bitcaster:0.3.0a15
Command: ['stack']
imagePullPolicy: Alwaysupgrading workload$ export RANCHER_KEY=key
$ export RANCHER_SECRET=secret
$ lazo upgrade saxix/devpi:latest \
       --base-url https://rancher.example.com/v3/
       --cluster c-wwk6v
       --project p-xd4dguse stdin to read credentials$  cat .pass.txt | lazo --stdin \
    upgrade bitcaster:bitcaster \
    bitcaster/bitcaster:0.3.0a10 \
    --insecureexecute command in running container$ lazo shell bitcaster:db -- ls -al /var/log
total 432
drwxr-xr-x 1 root        root       4096 Jan  1 01:39 .
drwxr-xr-x 1 root        root       4096 Dec 26 00:00 ..
drwxr-xr-x 1 root        root       4096 Jan  1 01:39 apt
-rw-r--r-- 1 root        root      74886 Jan  1 01:39 dpkg.log
-rw-r--r-- 1 root        root      32000 Jan  1 01:39 faillog
drwxr-xr-x 2 root        root       4096 May 25  2017 sysstatDockerlist image available tags$ lazo docker info saxix/devpi
latest
2.3
2.2
2.1
2.0
1.1get information on image$ lazo docker info library/python --filter '3\.6.*alpine3.8' --size
3.6-alpine3.8                  26.2MiB
3.6.8-alpine3.8                26.2MiB
3.6.7-alpine3.8                26.2MiB
3.6.6-alpine3.8                26.2MiB
Package: lazop-sdk
This SDK fromOpen LazadaMIT LicenseCopyright (c) [2022] [Pongsakorn]Permission 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: lazop-sdk-rahmadafandi
This SDK fromOpen LazadaMIT LicenseCopyright (c) [2022] [Pongsakorn]Permission 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: lazr.delegates
Thelazr.delegatespackage makes it easy to write objects that delegate
behavior to another object. The new object adds some property or behavior on
to the other object, while still providing the underlying interface, and
delegating behavior.NEWS for lazr.delegates2.1.0 (2023-03-20)Officially add support for Python 3.6, 3.7, 3.8, 3.9, 3.10 and 3.11.Drop support for Python 2, 3.2, 3.3, and 3.4.Test usingzope.testrunnerrather thannose.Bring coverage to 100%.Switch to declarativesetuptoolsconfiguration.Add linters.Fix thewokelinter.2.0.4 (2017-10-20)Adjust versioning strategy to avoid importing pkg_resources, which is slow
in large environments.2.0.3 (2015-07-08)Restore the public import oflazr.delegates.Passthroughwhich was
inadvertently lost during the port to Python 3.Officially add support for Python 3.5.Drop official Python 2.6 support.2.0.2 (2015-01-05)Always use old-style namespace package registration inlazr/__init__.pysince the mere presence of this file subverts PEP 420 style namespace
packages.  (LP: #1407816)2.0.1 (2014-08-21)Drop the use ofdistributein favor ofsetuptools.  (LP: #1359927)Run the test suite withtox.2.0 (2013-01-10)Port to Python 3, which requires the use of the@delegate_toclass
decorator instead of thedelegates()function call.  Officially support
Python 2.6, 2.7, 3.2, and 3.3.1.2.0 (2010-07-16)Extend Passthrough so that it takes an extra (optional) callable argument,
used to adapt the context before accessing the delegated attribute.1.1.0 (2009-08-31)Remove build dependencies on bzr and egg_inforemove sys.path hack in setup.py for __version__1.0.1 (2009-03-24)specify only v3 of LGPLbuild/developer improvements1.0 (2008-12-19)Initial release
Package: lazr.jobrunner
This file requires editingNote to the author: Please add something informative to this READMEbeforereleasing your software, asa little documentation goes a long way.  Both
README.rst (this file) and NEWS.txt (release notes) will be included in your
package metadata which gets displayed in the PyPI page for your project.You can take a look at the README.txt of other projects, such as repoze.bfg
(http://bfg.repoze.org/trac/browser/trunk/README.txt) for some ideas.CreditsDistributeBuildoutmodern-package-templateNews0.17Remove unused unittest2 from tests_require.Avoid traceback reference cycles inJobRunner.runJobHandleError.0.16Reduce “Scheduling retry” log message to INFO, since messages at WARNING
and above trigger OOPSes in Launchpad and this isn’t really a warning
anyway.0.15Add Python 3 support (requires celery >= 4.3).0.14Add tox testing support.Support and require oops >= 0.0.11.Support celery >= 4.0.0.13Support and require celery >= 3.0.0.12Only run the job if its is_runnable property is True.0.11Add indirection to user error handling to avoid oopses if the Job is
security-proxied.0.10Tweak clear_queuesSpecify specific kombu and celery versions0.9Rename inspect_queues to clear_queues0.8New script: clear-queuesComment updatesShorter timeout for drain_queues0.7No code changes.0.6Support list_queued for celery tasks.0.5removed: manage RabbitMQ server via testresources, instead of using
system rabbit0.4manage RabbitMQ server via testresources, instead of using system rabbitnew script jobrunnerctl0.3Support fast lane/slow lane queuesSupport retry_error_types even when security-proxied0.2Updates to support running via celery in Launchpad0.1Release date: 15-Mar-2012Initial reelease
Package: lazr.lifecycle
This package defines three “lifecycle” events that notify about object
creation, modification and deletion. The events include information about the
user responsible for the changes.The modification event also includes information about the state of the object
before the changes.The module also contains Snapshot support to save the state of an object for
notification, and to compute deltas between version of objects.NEWS for lazr.lifecycle1.2.1 (2021-09-13)Adjust versioning strategy to avoid importing pkg_resources, which is slow
in large environments.1.2 (2019-11-04)Import IObjectEvent from zope.interface rather than zope.component.Add ObjectModifiedEvent.descriptions property, for compatibility with
zope.lifecycleevent >= 4.2.0.Switch from buildout to tox.Add Python 3 support.1.1 (2009-12-03)Add IDoNotSnapshot and doNotSnapshot to allow the exclusion of
certain fields.1.0 (2009-08-31)Remove build dependencies on bzr and egg_inforemove sys.path hack in setup.py for __version__0.1 (2009-03-24)Initial release
Package: lazr.sshserver
This is a restricted SSH server which can authenticate against Launchpad over
XML-RPC.ImportableThe lazr.sshserver package is importable, and has a version number.>>> import lazr.sshserver
>>> print('VERSION:', lazr.sshserver.__version__)
VERSION: ...NEWS for lazr.sshserver0.1.13 (2022-02-11)Officially add support for Python 3.9 and 3.10.Add basic pre-commit configuration.Apply black code formatter.Add isort pre-commit hook.Apply inclusive naming via the woke pre-commit hook.Add support for RSA keys with SHA-2 signatures (given corresponding
Twisted support).0.1.12 (2021-09-13)Adjust versioning strategy to avoid importing pkg_resources, which is slow
in large environments.0.1.11 (2020-10-27)Officially add support for Python 3.8.Fix lazr.sshserver.auth.PublicKeyFromLaunchpadChecker on Python 3: Twisted
passes the username in the credentials object as bytes.0.1.10 (2019-10-30)Stop using deprecated twisted.conch.checkers.SSHPublicKeyDatabase.0.1.9 (2019-04-30)Add Python 3 support.0.1.8 (2018-07-02)Add support-in-principle for authenticating using ECDSA or Ed25519 keys;
this also requires a sufficient version of Twisted (which at the time of
writing supports ECDSA but not Ed25519) and support in the Launchpad
authserver.0.1.7 (2018-02-26)Fix regression in 0.1.5: restore support for unsigned queries for whether
publickey authentication would be acceptable.Stop using deprecated PyCrypto-based attributes of
twisted.conch.ssh.keys.Key.0.1.6 (2018-02-26)Handle the case where Twisted fails to load the user-supplied public key.0.1.5 (2017-12-21)Work around a bug in paramiko < 2.0.0: if the most significant byte of an
RSA signature is zero, then it strips leading zero bytes rather than
zero-padding it to the correct length.  This previously caused sporadic
failures when running with Twisted >= 16.0.0, since cryptography is
pickier about this than PyCrypto was.0.1.4 (2015-11-29)Require gmpy for better twisted.conch performance.0.1.3 (2015-11-18)Fix starting a lazr.sshserver.service.Factory with moduli_path=None.0.1.2 (2015-11-18)Add moduli file handling to lazr.sshserver.service, needed to support the
diffie-hellman-group-exchange-* key exchange algorithms.0.1.1 (2015-01-21)Drop install-time dependency on bzr, although it is still required to run
the test suite.0.1 (2015-01-13)Initial release
Package: lazuli
LazuliStats courtesy of PePy anddwylLazuli is a pip-compatible, Python-based package for interacting withAzureMSv316-based databases, such asElectronMS.Lazuli is inspired by and based on theSwordieDBproject.Lazuli allows access to character and inventory attributes in Odin-like databases.This makes it possible to produce not only feature-rich Discord bots, but also integrated websites.Perks:Easy to set-up -simply install with pip!Lovingly commentedAPI docs and example code providedIDE hints available when importing after pip-installtionAlready used inLapisCurrent Status: Now Available onPyPi(Seechangelog)Note: Lazuli v3 includes several dependency removals.We suggest you delete yourvenvfolder and re-creating the virtual environment when upgrading from v2 to v3.Quick StartInstallation via PyPi/Pip:Runpip install lazuliinside of your venv (or global, if desired)seewikifor how to generate venvImport the module in your projectfrom lazuli.database import LazuliCreate an Azure database object using the Lazuli class constructorazure = Lazuli()See theWikifor full examplesSee theAPI Docsfor more in-depth technical documentationQueryE.g.number_of_players_online = azure.get_online_count()gives number (int) of accounts currently connected to the serverDocumentation:Kindly refer to theProject WikiandAPI Docsfor detailed documentation.TheDiscussions Pageis currently open for any questions!Please report anyissues!Acknowledgements:TheSwordieDBproject byBratah123This project is inspired by and based on SwordieDBMapleStory:IObySenpai#1337The character sprite generation makes use of MapleStory.IO APIsDisclaimer:Lazuli is an open-source third-party implementation of APIs for a particular MapleStory server emulation project (AzureMSv316). Lazuli is non-monetised, provided as is, and is unaffiliated with NEXON. Every effort has been taken to ensure correctness and reliability of Lazuli. We will not be liable for any special, direct, indirect, or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action if contract, negligence or other tortious action, arising out of or in connection with the use of Lazuli (in part or in whole).
Package: lazy
Package Contents@lazyA decorator to create lazy attributes.OverviewLazy attributes are computed attributes that are evaluated only
once, the first time they are used.  Subsequent uses return the
results of the first call. They come handy when code should runlate, i.e. just before it is needed, andonce, i.e. not twice, in the lifetime of an object.You can think of it asdeferred initialization.
The possibilities are endless.TypingThe decorator is fully typed. Type checkers can infer the type of
a lazy attribute from the return value of the decorated method.ExamplesThe class below creates itsstoreresource lazily:fromlazyimportlazyclassFileUploadTmpStore(object):@lazydefstore(self):location=settings.get('fs.filestore')returnFileSystemStore(location)defput(self,uid,fp):self.store.put(uid,fp)fp.seek(0)defget(self,uid,default=None):returnself.store.get(uid,default)defclose(self):if'store'inself.__dict__:self.store.close()Another application area is caching:classPersonView(View):@lazydefperson_id(self):returnself.request.get('person_id',-1)@lazydefperson_data(self):returnself.session.query(Person).get(self.person_id)DocumentationFor further details please refer to theAPI Documentation.Changelog1.6 - 2023-09-14Implementlazy.__set_name__()which helps in cases likefoo=lazy(_foo).
[stefan]Update tox.ini for latest tox.
[stefan]Add GitHub CI workflow.
[stefan]Add .readthedocs.yaml file.
[stefan]Pin sphinx and sphinx-rtd-theme versions in docs extra.
[stefan]Add mypy extra which installs mypy.
[stefan]Fix stray characters in keywords.
[stefan]1.5 - 2022-09-18Allow type checkers to infer the type of a lazy attribute.
Thanks to Elias Keis and Palpatineli for their contributions.
[elKei24] [Palpatineli]Add Python 3.8-3.11 to tox.ini. Remove old Python versions.
[stefan]Replace deprecatedpython setup.py testin tox.ini.
[stefan]Remove deprecatedtest_suitefrom setup.py.
[stefan]Move metadata to setup.cfg and add a pyproject.toml file.
[stefan]Include tests in sdist but not in wheel.
[stefan]1.4 - 2019-01-28Add MANIFEST.in.
[stefan]Release as universal wheel.
[stefan]1.3 - 2017-02-05Support Python 2.6-3.6 without 2to3.
[stefan]Add a LICENSE file.
[stefan]1.2 - 2014-04-19Remove setuptools from install_requires because it isn’t.
[stefan]1.1 - 2012-10-12Usefunctools.wraps()properly; the list of attributes changes with
every version of Python 3.
[stefan]1.0 - 2011-03-24Initial release.
Package: lazy-alchemy
🅛🅐🅩🅨-🅐🅛🅒🅗🅔🅜🅨Lazy-Alchemyis a Python package that loads the database models lazily. It's a wrapper on top of sqlalchemy, so the Lazy-Alchemy can be used with any framework or project that use sqlalchemy.Sqlalchemy loads the entire metadata of all models during the application startup, thus increases the app start up time significantly. In projects where there are 100s of database models, the start up time can be in minutes due to loading of models metadata.Lazy-Alchemy is an attempt to solve the above mentioned problem. Lazy-Alchemy significantly boosts the start up time from minutes to seconds. It also saves memory by only loading the models "on-demand", and not loading every model.CompatibilityThis package is compatible with Python >= 3.6Basic UsageInstall with pip:pipinstalllazy-alchemyfromlazy_alchemyimportget_lazy_classfromsqlalchemyimportcreate_enginedb_engine=create_engine(DB_CONNECT_STRING)lazy_db=get_lazy_class(db_engine)# SqlAlchemy DB Queriesdb_model=lazy_db.my_db_table_fooquery=session.query(db_model).filter(db_model.foo=="bar").all()TestsRun tests:pytestLicenseLazy-Alchemy is released under the MIT License. See the bundledLICENSEfile
for details.
Package: lazyaml
Lazyaml  - PyYaml For Lazy PeopleA full-featured YAML processing framework for Python.Original:PyYamlSelect loader automatically, that's all.I am a lazy person, and I am willing to bear the price for it.InstallationpipinstalllazyamlUsageimportyamlyaml.load(stream)yaml.dump(data)If you don't trust the input YAML stream, you should use:yaml.safe_load(stream)Further InformationFor more information, check thePyYAML homepage.PyYAML tutorial and reference.Discuss PyYAML with the maintainers on
Matrix athttps://matrix.to/#/#pyyaml:yaml.ioor
IRC #pyyaml irc.libera.chatSubmit bug reports and feature requests to thePyYAML bug tracker.LicenseThe PyYAML module was written by Kirill Simonovxi@resolvent.net.
It is currently maintained by the YAML and Python communities.PyYAML is released under the MIT license.See the file LICENSE for more details.