Saravanan666/pypi-org huggingface dataset:
Package: plumage-dash-components
Plumage Dash Componentsplumage_dash_componentsis a Dash component library. A storybook showing all available components will be made availableYou can quickly get started with:Runpip install plumage-dash-componentsRunpython usage.pyVisithttp://localhost:8050in your web browserHow to contributeInstall dependenciesIf you want to build and develop yourself, you should fork + clone the repository, and
then:Install npm packages.npm ci --ignore-scripts --prefix ./reactInstall python packages required to build components.pip install .[dependencies]
pip install dash[dev]Install the python packages for testing.pip install .[tests]Write component code inreact/src/lib/components/<ComponentName>/<ComponentName>.tsxHave a look at other components to see how the directory and file structure looks like.The demo app is inreact/src/demoand is where you will import an example of your
component. To start the existing demo app, runnpm start --prefix ./react.To test your code in a Python environment:Build your codenpm run build --prefix ./reactInstall the Python pacakge in development mode (if not already done and
assuming you are using a virtual environment):pip install -e .Create a new example inexamples/which uses your new component.Write tests for your component.PythonPython tests exist intests/. Take a look at them to see how to write tests using
the Dash test framework.Run the tests withpytest tests.JavaScriptJavaScript tests exist inreact/tests. Take a look at them to see how to write tests using
the Jest test framework.Add custom styles to your component by putting your custom CSS files into
your distribution folder (plumage_dash_components).Make sure that they are referenced inMANIFEST.inso that they get
properly included when you're ready to publish your component.Make sure the stylesheets are added to the_css_distdict inplumage_dash_components/__init__.pyso dash will serve them
automatically when the component suite is requested.You can also include stylesheets directly in your component by adding the stylesheet to your component's directory and importing it viaimport "./<ComponentName>.css. Make sure that the class names in your stylesheet
are starting with your component's name and two underscores:.MyComponent__MyClassName.Setup using VS Code Dev ContainerTo setup the project using a dev container, open the project in VS Code and select "Reopen in Dev Container".
This will install all dependencies automatically.Note: Tests have to be run in headless mode in the dev container, which can be done with$ pytest tests --headless.
Package: plumb
Author:SpectroDate:2018-10-01Version:1.2.5License:MIT LicenseProvides higher level interfaces to work with data producers and consumers.plumbsupports five backends: RabbitMQ,
Redis, Amazon SQS and SNS services, Kafka, and a memory implementation (designed to be a testing artifact).The focus is onpython 3andboto3(for AWS support).The APIplumbuses the concepts ofSourceandSinkto abstract the backend. Data is transfered encoded in JSON, and by
default compressed using zlib.To fetch raw packages use a “Package Source” object, which handles a backend connection and its configuration and
exposes a “get()” method. Similarly, a “Package Sink” object exposes a “put(pkg)” method.You can either create the Sources and Sinks directly by instantiating them from their packages or use the convenience
factory functions exposed in theplumbpackage. This functions receive a JSON with the configuration for the Sources
or Sinks and returns a list of such configured devices.TestsThe library is provided with unit tests and integration tests for Redis and AWS. To run the unit tests:python setup.py testor usingnose:nosetests tests/unitThe integration tests can be run using nose:nosetests tests/integrationKeep in mindthatboto3will fetch your AWS credentials. It currently tries the environment variablesAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY, then tries the~/.awsdirectory. For details, seeBoto3 Credentials Configuration.
Package: plumberhub-client
plumberhub-clientA Client SDK of PlumberHub impliemented by python.plumberhub-clientcan be used with Python >= 3.7.InstallationInstallplumberhub-clientwith:pip install plumberhub-clientor,pipenv install plumberhub-clientBasic exampleHere's a example. It will print each sample.fromplumberhubimportPlumberHubClientdefhandleSample(sample):print(sample)defsayHello():print('hello')device=client.get_device()gain=client.get_gain()sampling_rate=client.get_sampling_rate()print(device)print(gain)print(sampling_rate)client.start()defsayBye():print('bye')client=PlumberHubClient(# plumberhub server hostnamehostname='127.0.0.1',# plumberhub server portport=8080,# A clientId applied from plumberhubclient_id='f7e9e4cabe7ed2f95ee506199cd41e0a0d352e91466ef7f2c87793a92e76d198',# Do something on sample incomingonsample=handleSample,onready=sayHello,onclose=sayBye)time.sleep(2)client.stop()client.close()Working with BDF/EDF fileAn exampleLicenseplumberhub-clientis a free Open Source software released under the MIT license.
Package: plumbery
Infrastructure as code at Dimension Data with Apache LibcloudDocumentation:Plumbery at ReadTheDocsPython package:Plumbery at PyPiSource code:Plumbery at GitHubFree software:Apache License (2.0)Features50+ tutorials covering popular use casesRead fittings plan in YAMLLoad parameters in separate YAMl fileUse cloud API to create the network infrastructure, and to build nodesBootstrap nodes with cloud-init configuration directivesInject actual addresses and on-the-fly secrets to contextualisationCreate RSA keys and passwords to secure deploymentsPass environment variables to target nodesPreserve random secrets across multiple invocationsCreate network domains and Ethernet networksReserve public IPv4 addressesManage network address translation rulesManage firewall rulesCreate load balancers with pools of nodesAll images in libraries are available to new nodesSpecify number of CPU, or core per CPU, and CPU speedSpecify node memoryAdd virtual disks and specify tiers of storageAdd multiple network interfaces to nodesSet private IPv4 staticallyAdd public IPv4 addresses to nodesAdd monitoring to nodesAdd backup to nodesBuild all blueprintsBuild a blueprint across multiple locationsStart all nodesStart nodes belonging to the same blueprintPolish Linux nodes for quick bootstrappingBuild a full inventory of nodes that have been deployedReflect fittings into a ready-to-use inventory for ansibleStop all nodesStop nodes belonging to the same blueprintWipe all nodesWipe nodes belonging to the same blueprintDestroy part of the setup, or all blueprintsYou can extend plumbery with your own software, it has been designed for thatRun from the command line, or as a python library, or as a containerAccept custom actions from the command line tooLimit plumbing to some locations if neededContributorsBernard Paques[Dimension Data employee] (development lead)Anthony Shaw[Dimension Data employee]Olivier Grosjeanne[Dimension Data employee]Jacques Clément[Dimension Data employee]Asim Khawaja[Dimension Data employee]Geoffrey CristalloMartijn LohmeijerCreditsCloud-InitApache LibcloudnetifacesPyYAMLCookiecuttercookiecutter-pypackage
Package: plumbing
plumbingversion 2.11.2This project contains functions and classes that help with plumbing-type programing and pipeline building.It contains many classes and functions which have not yet all been documented.PrerequisitesSinceplumbingis written in python, it is compatible with all operating systems: Linux, macOS and Windows. The only prerequisite ispython3(which is often installed by default) along with thepip3package manager.To check if you havepython3installed, type the following on your terminal:$ python3 -VIf you do not havepython3installed, please refer to the sectionobtaining python3.To check you havepip3installed, type the following on your terminal:$ pip3 -VIf you do not havepip3installed, please refer to the sectionobtaining pip3.InstallingTo install theplumbingpackage, simply type the following commands on your terminal:$ pip3 install --user plumbingAlternatively, if you want to install it for all users of the system:$ sudo pip3 install plumbingExtra documentationMore documentation is available at:http://xapple.github.io/plumbing/plumbingThis documentation is simply generated with:$ pdoc --html --output-dir docs --force plumbing
Package: plumbium
Plumbium is a Python package for wrapping scripts so that their inputs and
outputs are preserved in a consistent way and results are recorded.Examplefromplumbiumimportcall,record,pipelinefromplumbium.artefactsimportTextFile@record()defpipeline_stage_1(f):call(['/bin/cat',f.filename])@record()defpipeline_stage_2(f):call(['/bin/cat',f.filename])defmy_pipeline(file1,file2):pipeline_stage_1(file1)pipeline_stage_2(file2)defexample_pipeline():pipeline.run('example',my_pipeline,'/my/data/directory',TextFile('month00/data.txt'),TextFile('month12/data.txt'))if__name__=='__main__':example_pipeline()Installationpip install plumbiumRequirementsPlumbium is tested with Python v2.7 - 3.5.  Use of the MongoDB or SQLDatabase
result recorders requires the installation of thepymongoorsqlalchemymodules as appropriate.  Depending on your database SQLAlchemy may require
additional support libraries to be installed.DocumentationFull documentation is hosted onRead the Docs.ContributeIssue Tracker:github.com/jstutters/plumbium/issuesSource Code:github.com/jstutters/plumbiumSupportIf you are having problems, please let me know by submitting an issue in the tracker.
Package: plumbline
PlumblineA unix filter script for whether or not a point cloud data source matches a known
benchmark DEM.Exampleplumbline /vsicurl/https://hobu-lidar.s3.amazonaws.com/nasadem.vrt  \
    https://s3-us-west-2.amazonaws.com/usgs-lidar-public/USGS_LPC_MI_31Co_Jackson_2016_LAS_2019/ept.json \
    --sample_count 3 --plot jackson.pdf
Package: plumbus
Easy enums for Python.>>>RGB=StringEnum(['Red','Green','Blue'])>>>RGB.Red'Red'Contents1Installation2Features3Use4Contributing4.1Installing for development4.2Running the tests4.3Adding documentation5Credits1InstallationInstallezenumwith:pipinstallezenum2FeaturesPure Python.Compatible with Python 3.5+.Easy creation of usefull enum objects.String enums with unified value and name attributes.3UseStringEnumEasilly get a string enum from a string list.4ContributingPackage author and current maintainer is Shay Palachy (shay.palachy@gmail.com); You are more than welcome to approach him for help.4.1Installing for developmentClone:gitclonegit@github.com:shaypal5/ezenum.gitInstall in development mode with test dependencies:cdezenumpipinstall-e".[test]"4.2Running the testsTo run the tests, use:python-mpytest--cov=ezenum4.3Adding documentationThis project is documented using thenumpy docstring conventions, which were chosen as they are perhaps the most widely-spread conventions that are both supported by common tools such as Sphinx and result in human-readable docstrings (in my personal opinion, of course). When documenting code you add to this project, please followthese conventions.5CreditsCreated by Shay Palachy (shay.palachy@gmail.com).
Package: plum-dispatch
Plum: Multiple Dispatch in PythonEverybody likes multiple dispatch, just like everybody likes plums.The design philosophy of Plum is to provide an implementation of multiple dispatch that is Pythonic, yet close to howJuliadoes it.See here for a comparison between Plum,multipledispatch, andmultimethod.Note:Plum 2 is now powered byBeartype!
If you notice any issues with the new release, please open an issue.InstallationPlum requires Python 3.8 or higher.pipinstallplum-dispatchDocumentationSeehere.What's This?Plum brings your type annotations to life:fromnumbersimportNumberfromplumimportdispatch@dispatchdeff(x:str):return"This is a string!"@dispatchdeff(x:int):return"This is an integer!"@dispatchdeff(x:Number):return"This is a general number, but I don't know which type.">>>f("1")'This is a string!'>>>f(1)'This is an integer!'>>>f(1.0)'This is a number, but I don'tknowwhichtype.'>>>f(object())NotFoundLookupError:`f(<objectobjectat0x7fd3b01cd330>)`couldnotberesolved.Closestcandidatesarethefollowing:f(x:str)<functionfat0x7fd400644ee0>@/<ipython-input-2-c9f6cdbea9f3>:6f(x:int)<functionfat0x7fd3a0235ca0>@/<ipython-input-2-c9f6cdbea9f3>:11f(x:numbers.Number)<functionfat0x7fd3a0235d30>@/<ipython-input-2-c9f6cdbea9f3>:16This also works for multiple arguments, enabling some neat design patterns:fromnumbersimportNumber,Real,Rationalfromplumimportdispatch@dispatchdefmultiply(x:Number,y:Number):return"Performing fallback implementation of multiplication..."@dispatchdefmultiply(x:Real,y:Real):return"Performing specialised implementation for reals..."@dispatchdefmultiply(x:Rational,y:Rational):return"Performing specialised implementation for rationals...">>>multiply(1,1)'Performing specialised implementation for rationals...'>>>multiply(1.0,1.0)'Performing specialised implementation for reals...'>>>multiply(1j,1j)'Performing fallback implementation of multiplication...'>>>multiply(1,1.0)# For mixed types, it automatically chooses the right optimisation!'Performing specialised implementation for reals...'
Package: plum-econet
Plum Econet api wrapperThis package aims to simplify using Plum Econet api available via local network.Based on and tested with local router connected to HKS Lazar SmartFire pellet furnace.Basic usageimportasynciofromplum_econetimportSmartfireasyncdefmain():smartfire=Smartfire("<host>","username","password")awaitsmartfire.update()print(f"Current temperature{smartfire.boiler.temperature}")print(f"Target temperature{smartfire.boiler.target_temperature}")awaitsmartfire.boiler.set_target_temperature(76)awaitasyncio.sleep(5)awaitsmartfire.update()print(f"Target temperature{smartfire.boiler.target_temperature}")if__name__=="__main__":asyncio.run(main())
Package: plumed
Install using the following command:python -m pip install plumedWARNING: You will need to also build and install the plumed library (seehttp://www.plumed.org) and make sure the filelibplumedKernel.so(orlibplumedKernel.dylib) is available on your system.You should then make sure the library is found setting the environment variablePLUMED_KERNEL:export PLUMED_KERNEL=/path/to/libplumedKernel.so
python
>>> import plumed
>>> p=plumed.Plumed()If you manage multiple plumed versions on your system using tcl environment modules, this should be taken care automatically
by the plumed module.Alternatively, a pure python solution is:>>> import plumed
>>> os.environ["PLUMED_KERNEL"]="/path/to/libplumedKernel.so"
>>> p=plumed.Plumed()Finally, notice that you can set the path to the plumed library directly when declaring a Plumed object:>>> import plumed
>>> p=plumed.Plumed(kernel="/path/to/libplumedKernel.so")This will allow you to mix different plumed versions in the same python script.CHANGES: See the PLUMED documentation.
Package: plumi.locales
IntroductionA package containing locales/translations for the Plumi suiteChange history4.4 (2012-07-25)Release for Plumi 4.4add .mo files, to correct permission issues [mgogoulos]4.3 (2011-12-18)Release for Plumi 4.3Add Italian translation [giacomos]Moved repo to github [garbas]4.2 (2011-05-10)Release for Plumi 4.2Add a few Indonesian strings [dimo, yerry]Update po files [dimo]4.1 (2011-03-02)Release for Plumi 4.14.1rc1 (2011-02-11)Release for Plumi 4.1rc1Added brazilian/portuguese translation [clopy]4.0.1 (2010-11-25)Fix po file parse error [dimo]4.0 (2010-11-23)Rebuild pot and po files using i18ndude [dimo]0.4 (2010-08-09)Release for Plumi 3.1 final [Dimitris Moraitis]0.3 (2010-04-27)Release for Plumi 3.0 final [Dimitris Moraitis]0.2 (2010-03-25)Release for Plumi 3.0-rc1 [Dimitris Moraitis]0.1 (2010-02-18)Initial Release for Plumi 3.0 beta 2 release [Andy Nicholson]ContributorsAndy Nicholson <andy@infiniterecursion.com.au>
Victor Rajewski <vik@engagemedia.org>
Dimitris Moraitis <dimo@unweb.me>
Package: plumi.migration
ContentsChange history0.6 (2010-10-09)0.5 (2010-04-27)0.4 (2010-04-13)0.3 (2010-04-11)0.2 (2010-02-18)0.1 (2009-09-03)ContributorsDownloadPlumi migration code - from Plumi 0.2.x to Plumi 3Code repository:https://svn.plone.org/svn/collective/plumi.migration/trunkQuestions and comments todiscuss@lists.plumi.orgReport bugs athttp://plumi.org/newticketChange history0.6 (2010-10-09)Define some tags i18n [magagua]0.5 (2010-04-27)Release for Plumi 3.0 final [Dimitris Moraitis]0.4 (2010-04-13)Release for Plumi 3.0 rc3 [Dimitris Moraitis]0.3 (2010-04-11)Release for Plumi 3.0 rc2 [Dimitris Moraitis]0.2 (2010-02-18)Release for Plumi 3.0 beta 2 [Andy Nicholson]0.1 (2009-09-03)Release for Plumi 3.0 beta 1 [Andy Nicholson]ContributorsAndy Nicholson <andy@infiniterecursion.com.au>Download
Package: plumitas
PlumitasPythonic analysis and visualization of Plumed output files. For more
info, please go to the repositoryREADME.Licenseplumitasis licensed under the terms of the MIT license. See the file
“LICENSE” for information on the history of this software, terms & conditions
for usage, and a DISCLAIMER OF ALL WARRANTIES.All trademarks referenced herein are property of their respective holders.Copyright (c) 2018–, Josh Smith, The University of Washington
Department of Chemical Engineering.
Package: plumkdocs
pluMkdocsA very, very hacky way to document multiple dispatch function implemented using the wonderfulplumpackage⚠️ DesclaimerHave I mentioned that this is very hacky? It raises a whole lot of warnings, the vast majority of which I don't understand. Also, it is not heavly tested and only checked against mkdocs-material. It contains a lot of hard coded stuff and is not very flexible. It is also not very well documented.I'm uploading this with the hope that someone will find it useful and will improve it.Contributions welcome:)Also, I need this as a dependency for other projects, so I will probably not be able to maintain this very well.How to useFor a quickstart, check out the example inexample_moduleand theindex.mdpage in thedocsfolder. To see it in action,cdintoexample_moduleand runmkdocs serve.The source code contains something like this:# Define some function to test@dispatch.abstractdeffoo(a,b):"""Base description of the generic `foo` function"""pass@dispatchdeffoo(a:int,b:int):"""Add two integers.Args:a (int): First integer.b (int): Second integer.Returns:int: Sum of a and b."""returna+b@dispatchdeffoo(a:str,b:str):"""Concatenate two strings.Args:a (str): First string.b (str): Second string.Returns:str: Concatenation of a and b."""returna+b...You should see something like this in the documentation:More detailsThis package exposes animplementationsmacro that can be used to list the dispatched implementations of a function in your mkdocs.To use it, in yourmkdocs.ymlfile, make sure to load themkdocs-macrosplugin usingplugins:macros:module_name:docs/macroswheredocs/macroscan be any path to a module that contains the macros. Then, in yourdocs/macros.pyfile, you can define the macros you want to use. If you don't have any other macro, you simply need to expose the functiondefine_envfrom theplumkdocsmodule, like so:fromplumkdocsimportdefine_env__all__=['define_env']If you have other macros, you can simply add the macro to yourdefine_envfunction, like so:fromplumkdocsimportmod_to_stringdefdefine_env(env):@env.macrodefimplementations(module:str,function=None):returnmod_to_string(module,function)In both cases, you can then use theimplementationsmacro in your markdown files, like so:... some markdown ...

{{ implementations('my_package', 'foo') }}

... some more markdown ...This will list all the implementations of thefoofunction in themy_packagemodule. The docstrings will be (hopefully) correctly formatted, and the code will be highlighted using thepygmentssyntax highlighter. The signature of each method will also be displayed.ExamplesTo see a working example, check out thejaxdfandjwavedocumentation.
Package: plumpy
plumpyA python workflows library that supports writing Processes with a well defined set of inputs and outputs that can be
strung together.RabbitMQ is used to queue up, control and monitor running processes via thekiwipylibrary.Features:Processes can be remotely controlled by sending messages over RabbitMQ all from a simple interfaceProgress can be saved between steps and continued laterOptional explicit specification of inputs and outputs including their types, validation functions, help strings, etc.Installationpipinstallplumpyorcondainstall-cconda-forgeplumpyDevelopmentThis package utilisestoxfor unit test automation, andpre-commitfor code style formatting and test automation.To install these development dependencies:pipinstalltoxpre-commitTo run the unit tests:toxFor thermqtests you will require a running instance of RabbitMQ.
One way to achieve this is using Docker and launchingtest/rmq/docker-compose.yml.To run the pre-commit tests:pre-commitrun--allTo build the documentation:tox-edocs-cleanChanges should be submitted as Pull Requests (PRs) to thedevelopbranch.Publishing ReleasesCreate a release PR/commit to thedevelopbranch, updatingplumpy/version.pyandCHANGELOG.md.Fast-forward mergedevelopinto themasterbranchCreate a release on GitHub (https://github.com/aiidateam/plumpy/releases/new), pointing to the release commit onmaster, namedv.X.Y.Z(identical to version inplumpy/version.py)This will trigger thecontinuous-deploymentGitHub workflow which, if all tests pass, will publish the package to PyPi. Check this has successfully completed in the GitHub Actions tab (https://github.com/aiidateam/plumpy/actions).(if the release fails, delete the release and tag)