Saravanan666/pypi-org huggingface dataset:
Package: python-lambda-builder
Python Lambda BuilderThis library is a CLI tool to solve the problem of
building together a python project and its dependencies for lambda
deployment. This command with could be integrated into pipeline
for deployment.UsageFor poetry (pyproject.toml):python_lambda_builder--func-srcsrc/--build_destdist/For pip (requirements.txt):python_lambda_builder--func-srcsrc/--build_destdist/--managerpipOther arguments you can pass include:pyproject_path: (defaults to./pyproject.toml) This can be the relative or absolute
path to the pyproject.toml file.requirements_path: (defaults to./requirements.txt) This can be the relative or absolute
path to the requirements.txt file.
Package: python-lang
python-langA simple library for building multilingual applications in PythonInstallationUsingpippip install python-langFrom the sourceClone the repogit clone https://github.com/Programista3/python-lang.gitRunpython setup.py installUsage.pyfileAdd pyLang to your projectimportpython_langaslang_=lang.getAdd language files (you can specify the language symbol as the second parameter)lang.add("C:/project/locales/de.xml")lang.add("C:/project/locales/pl.xml","pl")Select language for translationlang.select('pl')You can turn off the translation usinglang.select()Use_()function to translate textprint(_("Hello World"))You can view the list of added languages usinglang.all()XMLfileUse following template:<?xml version="1.0" encoding="UTF-8"?><languagecode="language symbol"><translationtext="first original text">firsttranslatedtext</translation><translationtext="second original text">secondtranslatedtext</translation>...</language>DocumentationFunctionslang.add(path, code=None)Adds path and language code to the list of languages.Returns True if the language has been added successfully.lang.all()Returns the list of added languageslang.get(text)Returns translated text (if not found translation or language is not selected returns original text)lang.select(lang=None)Selects the language used to translation.Returns True if the language has been selected successfully.Variableslang.fileContains the parsed file of the currently selected languagelang.langsContains the list of added languages with their file pathslang.selectedContains the code of the currently selected language
Package: python-language-server
Python Language ServerA Python 2.7 and 3.5+ implementation of theLanguage Server Protocol.InstallationThe base language server requiresJedito provide Completions, Definitions, Hover, References, Signature Help, and
Symbols:pip installpython-language-serverIf the respective dependencies are found, the following optional providers will be enabled:Ropefor Completions and renamingPyflakeslinter to detect various errorsMcCabelinter for complexity checkingpycodestylelinter for style checkingpydocstylelinter for docstring style checking (disabled by default)autopep8for code formattingYAPFfor code formatting (preferred over autopep8)Optional providers can be installed using theextrassyntax. To installYAPFformatting for example:pip install'python-language-server[yapf]'All optional providers can be installed using:pip install'python-language-server[all]'If you get an error similar to'install_requires' must be a string or list of stringsthen please upgrade setuptools before trying again.pip install-Usetuptools3rd Party PluginsInstalling these plugins will add extra functionality to the language server:pyls-mypyMypy type checking for Python 3pyls-isortIsort import sort code formattingpyls-blackfor code formatting usingBlackPlease see the above repositories for examples on how to write plugins for the Python Language Server. Please file an
issue if you require assistance writing a plugin.ConfigurationConfiguration is loaded from zero or more configuration sources. Currently implemented are:pycodestyle: discovered in ~/.config/pycodestyle, setup.cfg, tox.ini and pycodestyle.cfg.flake8: discovered in ~/.config/flake8, setup.cfg, tox.ini and flake8.cfgThe default configuration source is pycodestyle. Change thepyls.configurationSourcessetting to[‘flake8’]in
order to respect flake8 configuration instead.Overall configuration is computed first from user configuration (in home directory), overridden by configuration
passed in by the language client, and then overriden by configuration discovered in the workspace.To enable pydocstyle for linting docstrings add the following setting in your LSP configuration:` "pyls.plugins.pydocstyle.enabled": true `Seevscode-client/package.jsonfor the full set of supported configuration options.Language Server FeaturesAuto Completion:Code Linting with pycodestyle and pyflakes:Signature Help:Go to definition:Hover:Find References:Document Symbols:Document Formatting:DevelopmentTo run the test suite:pip install .[test] && pytestDevelop against VS CodeThe Python language server can be developed against a local instance of Visual Studio Code.InstallVSCode# Setup a virtual envvirtualenvenv.env/bin/activate# Install pylspipinstall.# Install the vscode-client extensioncdvscode-clientyarninstall# Run VSCode which is configured to use pyls
# See the bottom of vscode-client/src/extension.ts for infoyarnrunvscode--$PWD/../Then to debug, click View -> Output and in the dropdown will be pyls.
To refresh VSCode, pressCmd + rLicenseThis project is made available under the MIT License.
Package: pythonlangutil
This library provides utilities to use features of other languages in Python.You can find a functional example of each feature in the examples directory. Test cases in tests directory run on top of
these examples to ensure the functionality.Access ModifiersTo identify a variable as private::from pythonlangutil.access_modifiers import private_variable

class PrivateVariableTest(object):
   def __init__(self):
       self.id = "123"

   @private_variable('id')
   def __setattr__(self, *args, **kwargs):
       return object.__setattr__(self, *args, **kwargs)

   def insider(self):
       self.id = "321"To identify a method as private::from pythonlangutil.access_modifiers import private_function

class PrivateFunctionTest(object):
   def __init__(self):
       pass

   @private_function
   def private_method(self):
       return 'called from inside my own class'

   def insider(self):
       return self.private_method()Creating OverloadsTo create overloads::from pythonlangutil.overload import Overload, signature

class OverloadTest():
    def __init__(self):
        self.male_pref = "Mr. %s"
        self.female_pref = "Ms. %s"
        self.general_pref = "Dear %s"

    @Overload
    @signature("str", "bool")
    def my_method(self, name, male):
        if male:
            return self.male_pref % name
        return self.female_pref % name

    @my_method.overload
    @signature("str")
    def my_method(self, name):
        return self.general_pref % name

    @my_method.overload
    @signature("int", "str")
    def my_method(self, times, name):
        return "\n".join([self.general_pref % name for i in range(times)])Using Singleton ModelIt prevents the instantiation of the class. The only instance of the class will be accessible through
get_instance() method which will be added to class automatically.To use singleton::from pythonlangutil.singleton import Singleton

@Singleton()
class SingletonTest():
    def __init__(self):
        pass
Package: python-laravel-queue
Python Laravel QueueQueue sync between Python and Laravel using Redis driver. You can process jobs dispatched from Laravel in Python.NOTE: This package is in beta and only Redis is supported currently. Production usage is not recommended until stable release.In the 1.0.0 stable version these implementations are planned:Auto-discovery jobs in both Laravel and Python.Auto-configuration by reading Laravel config in Python side.More clean API.Supporting more queue drivers.Installpipinstallpython-laravel-queueUsageListen for jobs on Python:frompython_laravel_queueimportQueueasPlQueuefromredisimportRedisr=Redis(host='localhost',port=6379,db=0)queue_python=PlQueue(r,queue='python')@queue_python.handlerdefhandle(data):name=data['name']# job namedata=data['data']# job dataprint('TEST: '+data['a']+' '+data['b']+' '+data['c'])queue_python.listen()Sending jobs from Laravel :<?php$job=new\App\Jobs\TestJob('hi','send to','python');dispatch($job)->onQueue('python');Schedule a job to be run in Laravel from Python:frompython_laravel_queueimportQueueasPlQueuefromredisimportRedisr=Redis(host='localhost',port=6379,db=0)queue_laravel=PlQueue(r,queue='laravel')queue_laravel.push('App\\Jobs\\TestJob',{'a':'hello','b':'send to','c':'laravel'})TestJobin Laravel:<?phpnamespaceApp\Jobs;useIlluminate\Contracts\Queue\ShouldQueue;useIlluminate\Bus\Queueable;useIlluminate\Contracts\Queue\ShouldQueue;useIlluminate\Foundation\Bus\Dispatchable;useIlluminate\Queue\InteractsWithQueue;useIlluminate\Queue\SerializesModels;useIlluminate\Support\Facades\Log;classTestJobextendsJobimplementsShouldQueue{useDispatchable,InteractsWithQueue,Queueable,SerializesModels;public$a,$b,$c;/*** Create a new job instance.** @return void*/publicfunction__construct($a,$b,$c){$this->a=$a;$this->b=$b;$this->c=$c;}publicfunctionhandle(){Log::info('TEST: '.$this->a.' '.$this->b.' '.$this->c);}}You need to :listen (or :work) the preferred queue name above to handle data sent from Python in Laravel.phpartisanqueue:listen--queue=laravel
Package: python-latex
python-latexLaTex has a billion different compilers with fiddly controls and lots of dependencies to install.
Turns out there is a latex python package with a nice and simple interface. No fiddling with containerization and volume mounts. No funky interface to learn.pip3 install python_latex
python_latex
touch some-existing-latex-file.texApython_latexcommand is exposed, will watch the current directory forchangesto any.texfile, and compile them to a.pdf, without all those useless intermediary files most compilers create.Use a nice pdf viewer that auto-refreshes, likezathura, to continuously develop a file.
Package: python-latex-bridge
python-latex-bridgePython package to include python variables in a LaTeX document.ExampleSome use cases given a file withfrombridgeimportsavefromuncertaintiesimportufloatfrompintimportUnitRegistryureg=UnitRegistry()Q=ureg.QuantityAny python value:x=1024save(x)# creates `variables/variable.dat` containing "1024"Uncertain value:x=ufloat(3.1,0.2)save(x,name='height')# creates `variables/height.dat` containing "3.10 \pm 0.20"Variable with unitx=Q(42,'mm')save(x,path='values')# creates `values/variable.dat` containing "42\,\si[]{\milli\meter}"Error and unit:x=Q(ufloat(420,7),'ohm')save(x)# creates `variables/variable.dat` containing "(420 \pm 7)\,\si[]{\ohm}"Usage in LaTeXTo fetch the value in a LaTeX document, simply include the.datfile in math mode$\include{variables/variable.dat}$assuming the.texfile and thevariables/folder share the same parent directory.
Package: python-latoken
This is an unofficial Python wrapper, use at your own risk.If you find any bugs or want to contribute, feel free to submit your improvements.If you came here looking for LATOKEN exchange, then gohere.Source codehttps://github.com/purveyor97/python_latokenREST API Documentationhttps://api.latoken.com/doc/v2/STOMP Websockets Documentationhttps://api.latoken.com/doc/ws/LATOKEN API Telegramhttps://t.me/latoken_apiThis library coversAuthentication of private requests for both REST API and STOMP WebsocketsAsyncio websockets with the option to subscribe to multiple streams simultaneouslyGeneral market data such as historic and current prices, orderbooks, active currencies and pairsUser account balances accessDeposit address generationWithdrawalsTransfers within the accountTransfers between accounts (to other users)Crypto Spot TradingThis library doesn’t coverFutures TradingStocks TradingIEO PurchasesResponce exceptions are exchange generated and are not handled by the libraryLogging is not implementedQuick StartRegister an account onLATOKEN.Generate an API keyin your accountwith relevant permissions.There are 4 levels of API key permissions at LATOKEN:Read only (you can view market and account data)Trade on Spot (in addition: place and cancel orders)Trade and Transfer (in addition: transfer within your account)Full access (in addition: transfer to other users, deposit and withdraw)Install python_latoken library:pipinstallpython-latokenExamples of code usage:REST APIWebsockets(async code)
Package: python-launch-library
python-launch-libraryA simple python wrapper for the Launch Library web API. Can also be used asynchronously too.Important: New projects should NOT use this library. Instead, use the OpenAPI definitions provided inhttps://ll.thespacedevs.com/2.0.0/swaggerAvailable models:Agency, Launch, Pad, Location, RocketThe usage of the API is simple.UsageProper documentation is available inRead The Docs.To install, simply use pip:pip install python-launch-library# First, import the libraryimportlaunchlibraryasll# Then, initialize an API objectapi=ll.Api()# And fetch whichever models you'd like.# Either by an explicit API callnext_5_go_launches=api.fetch_launch(next=5,status=1)# Or by one of the simpler methods available for some models.next_5_go_launches=api.next_launches(5)# Now, you can utilize whatever data you'd like. Data from the API is processed recursively, so if a Launch object# contains a Location object, you'll have models for both.launch_loc=next_5_go_launches[0].location# Some properties, like status, are only represented by ID. You can call the appropriate methods to get a proper object from that IDlaunch_status=next_5_go_launches[0].get_status()# It's now possible to also use the regular API names as well as pythonic names.vid_urls=next_5_go_launches[0].vid_urlsvid_urls_2=next_5_go_launches[0].vidURLsChangelogSince version1.0.1, the library is versioned according to semantic versioning rules.Important: New projects should NOT use this library. Instead, use the OpenAPI definitions provided inhttps://ll.thespacedevs.com/2.0.0/swagger2.0.0 - Update to LL2, akahttps://thespacedevs.com/llapi. There are some data changes, so this is a breaking change.This is a quickly hacked together attempt to add some compatibility to LL2 for current users, as there's no point in spending time creating a wrapper when OpenAPI definitions exist.Breaking Changes:The AgencyType, LaunchStatus, and RocketFamily models have been eliminated.All instances, except inLaunchofinfo_urlshave been changed toinfo_url(this is compliant with the new API).Many parameters might be unavailable as many names were changed.Modelizations might not work as well as many names were changed.1.0.3, 1.0.4, 1.0.5, 1.0.6 - Fixed some bugs in the async variant1.0.2 - Added an exception hierarchy. All exceptions now inherit from LlException1.0.1 - Improved caching.1.0 - Changed all fetch calls to be through the Api object. This is a breaking change.# Porting guideimportlaunchlibraryasllapi=ll.Api()# Beforenext_launch=ll.Launch.next(api,1)# Afternext_launch=api.next_launches(1)TodoTidy up the repositoryAdd exceptions to handle server timeoutHandle nested models (i.e. a Pad model inside a Location model inside a Launch model)Handle times with the datetime classPackage properly and upload to PyPIAdd more abstraction methods for the api calls (open to suggestions)Add magic method comparisons (open to suggestions)Asynchronous operationAdd aliases for actual API names with getattrAdd testsYour suggestion hereFeel free to open issues and pull requests! I usually check Github daily.
Package: python-launchpad
# Python-LaunchpadControl a Novation Launchpad with Python## FeaturesAutodiscover the first connected Launchpad, or control more than oneMultiple “page” support (different render states and control sets)Supported controls:
* Momentary button
* Toggle button (multiple states)
* Sliders with variable colors## Known issuesOnly tested with the Launchpad MkIIMultiple launchpads need to be configured separately, and operate independently
Package: python-layer
Python-layerThe python-layer is a script inspired frompython-lambdathat can help managing aws layers. There are 5 available commands with options.RequirementsPython 3GNU LinuxInstallationYou can create a new virtual environment on your computer and then install python-layer via pypi.pip install python-layerGetting StartedThe script searches in a directory for therequirements.txtfile and creates a zip with all the dependencies. If there are.pyfiles, they are included in the zip.To create a new layer:layer build  path/to/mydirHere we suppose thatmydirhas at least the requirements file.To deploy the layer to aws:layer deploy path/to/zip -d myshortdescription --runtime python3.7To deploy the layer to aws to a specific regionlayer deploy path/to/zip -r region_nameTo deploy the layer to aws to a specific region and to a specific profile (e.g. dev profile)layer deploy path/to/zip -p dev_profile -r region_nameTo list the available layers:layer listTo list the available layers from a specific region:layer list -r region_nameTo list the available layers from a specific region and from a specific profile (e.g. dev profile):layer list -r region_name -p dev_profileTo set a layer to a lambda function (appends the latest version of the layer):layer set mylayer mylambdaTo set a layer to a lambda function (appends the latest version of the layer) to a specific region:layer set mylayer mylambda -r region_nameTo set a layer to a lambda function (appends the latest version of the layer) to a specific region and to a specific profile:layer set mylayer mylambda -p dev_profile -r region_nameTo set a list of layers:layer set mylayer1,mylayer2 mylambdaTo set a list of layers replacing the older ones :layer set mylayer1,mylayer2 mylambda -dTo download a layerlayer download mylayerTo download a layer from a specific region:layer download mylayer -v version_number -r region_nameTo download a layer from a specific region and from a specific profile (e.g. dev profile):layer download mylayer -v version_number -r region_name -p dev_profileNotesCurrently the script uses the credentials from the~/.aws/configfile.
Package: python_lconf_lexer
AboutA simple pygments lexer forLCONF.The light and simple readable data serialization format for dynamic configurations and data exchange.For features check out the: CHANGELOG.rstRequirementsRequiresPygmentsInstallationTo install from pypi usingpip/pip3:$ pip3 install python_lconf_lexerTo install from the source:$ python3 setup.py installto check if it installed ok and is available:$ pygmentize -Llconfshould be one of the available lexersProjects using python_lconf_lexerprojectswhich make use of:python_lconf_lexerPSphinxThemeA sphinx theme which has an admonition forLCONFexamples.Online ResourcesPyPI:http://pypi.python.org/pypi/python_lconf_lexerSource:https://github.com/LCONF/python_lconf_lexerpython_lconf_lexeris distributed under the terms of the BSD 3-clause license.
ConsultLICENSEorBSD-3-Clause.(c) 2014,peter1000https://github.com/peter1000All rights reserved.
Package: python-ldap
python-ldap:python-ldap provides an object-oriented API to access LDAP directory servers
from Python programs. Mainly it wraps the OpenLDAP 2.x libs for that purpose.
Additionally the package contains modules for other LDAP-related stuff
(e.g. processing LDIF, LDAPURLs, LDAPv3 schema, LDAPv3 extended operations
and controls, etc.).
Package: python-leaguepedia-db
python-leaguepedia-dbPython DB-API Adaptor for LeaguepediaInstallationpipinstallpython-leaguepedia-dbUsage>>>importleaguepediadb>>>connection=leaguepediadb.connect()>>>cursor=connection.cursor()>>>cursor.execute(...'SELECT SP.Team AS Team, SP.Role AS Role, SP.Link AS Link '...'FROM ScoreboardPlayers SP '...'WHERE SP.OverviewPage = ? '...'GROUP BY SP.Link '...'ORDER BY SP.DateTime_UTC DESC',...('LCK/2022 Season/Spring Season',)...)>>>cursor.fetchone()# {'Team': 'DRX', 'Role': 'Bot', 'Link': 'Taeyoon'}>>>forrowincursor.fetchall():...print(row)...# {'Team': 'Fredit BRION', 'Role': 'Bot', 'Link': 'Gamin'}# {'Team': 'Fredit BRION', 'Role': 'Top', 'Link': 'Soboro'}# {'Team': 'Fredit BRION', 'Role': 'Mid', 'Link': 'Feisty'}# {'Team': 'Fredit BRION', 'Role': 'Support', 'Link': 'Loopy'}...
Package: python-leanplum
python-leanplumA small python wrapper around Leanplum API (https://docs.leanplum.com/reference#api-introduction)Version Compatability0.5.x - Python 30.4.x - Python 2Usagefrom leanplum.client import Client

client = Client(app_id="your_app_id", client_key="your_client_key")

# track events
client.users.track(1234, "custom event")
# advance state
client.users.advance(1234, "Registered")
# set user attributes
client.users.set_user_attributes(1234, {"custom_param": "value"})
# increment attribute
client.users.increment_user_attribute(1234, "Page Views", incr=1)

# delete user
client.admin.delete_user(1234)This wrapper uses thepython-requestslibrary.  Currently, we don't have a need
to support other network clients, but if we do they will be added as a new ClientImpl(HttpClient). (see leanplum.http_client)The return object right now is a requests.Response.body, which is a String.
If your request has errors or warnings, some common ones are raised after the response, and you can see some of them
at leanplum.errorsBy default, POST requests that handle user behaviors are marked withcreateDisposition=CreateNever.  This may be
modified or made configurable in a later versionTODO:requestor better handling of the request (multiple/batch responses?  Right now hard coded to get response[0])Response objects for Message, User, State, Event (current return object is a dict)More precise Errors to match with Leanplum's wrapped responsesAdd support for croKey and cwoKey, maybe dev/prod mode?
Package: python-learning-demopackage
topic3  level-3Topic4   level-4以上标注标题符号长度，要长于文本的长度。AAA加粗test斜体以下三个前置符号都可以表示列表，一二级通过缩进来表示，并且列表每行之间需要有空格列表1子列表1子列表2子列表3列表2列表3import testsublib

print(testsublib.submodule.sub_name)

def sentMessage():
    print("message from sublib:", testsublib.submodule.sub_name)
Package: python-lectio
Python-LectioEn SDK til gymnasie siden LectioDataen bliver returneret som JSONInstallationpip install python-lectioDokumentationDenne dokumentation er til dengamle python-lectiobranch og vil måske ikke returnere/fungere som den gjorde før.Hvis du vil bruge dengamle python-lectiokan du finde denher.En dokumentation til dennye python-lectioer på vej.LoginLogin på Lectio igennem pythonimportlectioclient=lectio.sdk(brugernavn="mit brugernavn",adgangskode="min adgangskode",skoleId="mit skole id")Elev IDimportlectioelevId=client.elevIdSkemaSe dit skema for en hvilken som helst uge. Hvis du ikke skriver uge/år på tager den for ugen næste skoledagskema=client.skema()skemaSpecifikUge=client.skema(uge=35,år=2022)lektierForSpecifikElev=client.lektier(elevId="...")Returneret format:{"modulTider":{"1. modul":"8:15 - 9:15","2. modul":"9:20 - 10:20"...},"ugeDage":["Mandag (31/10)","Tirsdag (1/11)","Onsdag (2/11)"...],"moduler":[{"navn":"...","tidspunkt":"...","hold":"...","lærer":"...","lokale":"...","absid":"...","andet":"..."},...],}LektierFå dine lektier for de kommende 14 dagelektier=client.lektier()lektierForSpecifikElev=client.lektier(elevId="...")Returneret format:[{"dato":"...","aktivitet":{"navn":"...","tidspunkt":"...","hold":"...","lærer":"...","lokale":"...","absid":"..."},"note":"...","lektier":{"beskrivelse":"...","link":"..."}},...]EleverBrug informationer() i stedetFå alle elever på skolen med et bestemt forbogstav.elever=client.elever(forbogstav="A")Returneret format:[{"navn":"...","elevid":"..."},...]To DoTilføj flere funktionerLogin med auto login key