Saravanan666/pypi-org huggingface dataset:
Package: pincode
india-pincode-regexValidate aPostal Index Numberfor India with a few regexes. The regexes are available inregex.txt. There is one regex per area code (the first digit of the PIN, which goes from 1-8).SourceThe source for the data is the"All India Pincode Directory"dataset on data.gov.in.UsageTheregex.txtfile is 32KB in size, so you can easily use it wherever you want, including browsers.PHPThe package is available onpackagist.To use the PHP package:use PIN\Validator as P;P::validate('110011'); // returns true;Node.jsThe package is available onnpm.To use the package:constP=require('pincode-validator');P.validate('110011');// returns trueContributingSeeHACKING.mdfor some development details.Pull requests are welcome for adding libraries in other languages (in the same repo).LicenseLicensed under theMIT License. See LICENSE file for details.
Package: pinda
pindaPip-INstallable Dockerized Applicationspindais designed to deliver dockerized versions of software packages that have a user interface that is as identical
as possible to what would be available if the package was installed in the conventional way.For example, to install Gromacs version 2019:% pinda install gromacs 2019Once the installation is complete, you will find the 'gmx' command in your path.Installation:Easiest via pip:% pip install pindaUsage:To see a list of packages available viapinda:% pinda list
  ambertools 16         AmberTools version 16
  ambertools 18         AmberTools version 18
* gromacs    2019       Gromacs version 2019
  gromacs    2019-cuda  Gromacs version 2019 with CUDA support
* obabel     2.4.1      Open Babel version 2.4.1
  vina       1.1.2      AutoDock Vina and selected AutoDock Tools
%Packages that you have already installed are asterisked.To install a package:% pinda install ambertools 18
%To uninstall a package:% pinda uninstall obabel 2.4.1
%For detailed information on a package:% pinda info ambertools 18

AmberTools version 18

This pinda distribution provides the following commands:

    "sander"      : the Amber/Ambertools "sander" command
    "amber-shell" : drops you into a bash shell from which all other
                    AmberTools commands are accessible (e.g. tleap).

For full license and usage information, please visit http://ambermd.org

%Limitations:You need to haveDockerinstalled on your machine. The containerised versions of the applications can
only 'see' files that are in the directory a command in invoked from, or a subdirectory of this, so for example:% gmx mdrun -s bpti.tpr # This is fine
% gmx mdrun -s ../bpti.tpr # This won't workAuthor:Charlie Laughtoncharles.laughton@nottingham.ac.ukLicense:BSD 3-clause
Package: pindex
IntroductionAbstractAn awesome tool for indexing matrices. propose a new concept “single index” (as in matlab) to index the elements from matrices. exchange python-style index(begin with 0) with matlab-style index(begin with 1)KeywordsIndex, Matrix, Single Index, Style of IndexNew feature:fix some bugsFeature:propose single indexchange to (back from) matlab-style indexarithmetic of the indexContentClasses:SingleIndex: wrapper of int, list, slice
Index: array of SingleIndexInterface:Arith: arithmetic of indexfunction:irange: interval-like indexGrammarBasic grammarimport:import pindex   # python for indexExample:ind = SingleIndex([1,2,3])  # construct a single index
s = ind('helloworld')   # index(array) == array[index]
print(s)

A = np.array([[1,2,6],[3,4,5]])
B = ind(A)
print(B)    # index matrix with single index as in matlab

ind.py2matlab()        # change to matlab style
s = ind('helloworld')
print(s)  # output: hel

ind = Index([1,2,3])    # for 1dim array, Index == SingleIndex
ss = ind('helloworld')
print(ss)

ind = Index(([1,2],[3,4]))  # construct multi-index
try:
    ss = ind(['hello', 'world'])
    print(ss)
except:
    ind.py2matlab()
    ss = ind(['hello', 'world'])
    print(ss)Attention:ind = SingleIndex([1,2,3])
A = [[1,2,6],[3,4,5]]
B = ind(A)  # pindex.py thinks A is a list (of lists, with length 2) instead of matrix
ind = Index(([0,1],[0,1]))   # this is ok, since you use multi-index
Package: pindrop
Pindrop APIA python package that creates the models, the urls, the filters, the pagination, the database and returns GeoJSON for the pindrops and returns JSON for the other models.Free software: MIT licenseDocumentation:https://pindrop.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-07-17)First release on PyPI.
Package: pine
pineA benchmark utility to make requests to a REST API.Pine makes requests to URLs a bunch of times and computes some statistics
about how those requests were responded to. This is ideally useful to run
on every change to your codebase so you can identify changes early.Pine isn’t a load testing tool. If you’re trying to solve C10K, this won’t
help you. Pine (currently) runs requests serially.DocumentationDocumentation is available athttp://pine.readthedocs.io/en/latest/InstallationOn Python 3.6,pip install pinewill do it.On Python 3.7, there is an additional step required before running the
same command. Until PyYAML supports Python 3.7 in a released version,
you will need to install PyYAML from GitHub:pip install git+https://github.com/yaml/pyyaml.git
pip install pinehttps://github.com/briancurtin/pine/issues/1andhttps://github.com/yaml/pyyaml/issues/126are tracking this issue.Usagepine-cmyconfig.yamlis the simplest way to begin. This will run your
configuration and output the results to stdout. If you’d like to write
the output to a file,-omyoutputfile.jsonwill do it. If you’d like
to specify a particular run ID, other than the default of the current
timestamp,-i32a63abwill do it. That’s useful for tracking the
commit hash of what you’re testing.Runpine-hfor complete details.ConfigurationPine uses YAML for configuration. Seeconf/example.yamlfor an example.OutputPine writes its results in JSON, either to stdout or the path you specified
in-o. It looks like the following:{"results": [
    {"times": [1.580882219500005, 1.8884545513215, 1.52546876846],
     "timeouts": 0, "failures": [], "name": "get_all_things",
     "description": "Get all of the things",
     "mean": 1.668359371049998,
     "median": 1.580882219500005,
     "stdev": 0.0969358463985873},
    {"times": [0.4894684654656654, 0.508042131499991, 1.054654684684],
     "timeouts": 0, "failures": [], "name": "get_one_thing",
     "description": "Get one thing",
     "mean": 0.856881387399993,
     "median": 0.508042131499991,
     "stdev": 0.0646515285845596},
 ],
 "name": "Testing the things",
 "version": "1.0",
 "id": "7155eb"}ThanksThanks to Francis Horsman for thepinepackage name.
Package: pineapple
This project is a Python module that defines some utility
functions for the Pineapple IPython/Jupyter front-end.The goal is to standardize notebooks so that notebook authors
can have a consistent and easy way for readers to reproduce their
exact results with the least amount of hassle.UsageAfter importing the module, within IPython notebooks you get
magic functions%pip,%require, and%runtest.The%pipcommand lets you easily use thepipcommand
directly to manage installed packages.The%requirecommand shows all installed packages with versions
if called with no arguments. If called with arguments, it will attempt
to install the requested packages. Arguments are version specifiers,
separated by spaces.The%runtestcommand takes any number of test case or test suite
classes descended fromunittest.TestCaseorunittest.TestSuiteand runs them in the cell. It should also be compatible withunittest2.import pineapple

%pip install numpy

%pip list

%require numpy==1.9.2

%require numpy==1.9.2 ipython==4.0.0

%require

%runtest MyTesterClass
Package: pineaprint
PrettyprintEasily print a complex data structureSupportOSTerminalSupportLinuxTTYsFullLinuxKonsoleFullLinuxYakuakeFullWindowsCommand promptPart [0]WindowsPowershellPart [0]WindowsWindows TerminalFullmacOSTerminalFullCodeMissing0Text coloursIs your terminal not included? Create a PR and add it, along with its support level.Usageimportprettyprint"""prettyprint.pprint(data=any,  # Data to printindent: int = 4,  # How far indented each list, tuple etc. should be indentedshow_types: bool = False,  # If the type of each item should be shown e.g. <int>colour_coded: bool = True,  # If colours should be used to show different typescutoff: bool = True,  # If text over multiple lines should be cut offdebug: bool = False  # Show length of itterables)"""# Enabling debug will automatically enable show_typesprettyprint.pprint({"a":[1,2],"b":{1.4,False},"c":[1,2,[3,(4,5)]]},debug=True)"""<dict | Length: 3> {<str | Length: 1> a: <list | Length: 2> [<int> 1<int> 2]<str | Length: 1> b: <set | Length: 2> {<bool> False<float> 1.4}<str | Length: 1> c: <list | Length: 3> [<int> 1<int> 2<list | Length: 2> [<int> 3<tuple | Length: 2> (<int> 4<int> 5)]]}"""
Package: pinecil
Pinecil V2 interface libraryOverviewPinecil is a lightweight Python library designed to inetrafce with Pinecil V2 soldering iron.RequirementsPython 3.9 or higherbluezInstallationpipinstallpinecilUsage ExampleA complete from-scratch example:frompinecilimportfind_pinecils# if running in a cloned repo, use `from src.pinecil`importasyncioasyncdefmain():devices=awaitfind_pinecils()iron=devices[0]awaitiron.connect()settings=awaitiron.get_all_settings()awaitiron.set_one_setting('SetTemperature',250)awaitiron.save_to_flash()# this is required to preserve settings after powering offinfo=awaitiron.get_info()live=awaitiron.get_live_data()print(settings)print('----------')print(info)print('----------')print(live)if__name__=='__main__':asyncio.run(main())If you already know the address of your pinecil, you can use it directly:frompinecilimportBLE,Pinecilimportasyncioif__name__=='__main__':p=Pinecil(BLE('<your-address>'))asyncio.run(p.get_all_settings())To find addresses of all pinecils nearby:frompinecilimportfind_device_addressesimportasyncioif__name__=='__main__':asyncio.run(find_device_addresses('pinecil'))Testingpoetryshell
pytest-v# for development convenience:ptw--runner'pytest -v'ReferencesOriginally started asPineSAMDocsExceptionsValueOutOfRangeException: Attempting to set a settings value that is out of range.InvalidSettingException: Setting does not exist.DeviceNotFoundException: Indicates the device was not found.DeviceDisconnectedException: Indicates the device was disconnected.Classes and FunctionsClass:PinecilConstructor:__init__(self, ble: BLE): Initializes Pinecil withBLEinstance.Properties:is_connected -> bool: True if Pinecil is connected.Methods:connect(self): Connects to Pinecil.get_all_settings(self) -> Dict[str, int]: Retrieves all settings.set_one_setting(self, setting: str, value: int): Sets a single setting - does not save to flash.save_to_flash(self): Saves all settings to flash.get_info(self) -> Dict[str, str]: Retrieves basic Pinecil info.get_live_data(self) -> Dict[str, int]: Retrieves live data.Class:BLEConstructor:__init__(self, address: str): Initializes BLE device wrapper.Properties:is_connected -> bool: True if connected to the device.Methods:ensure_connected(self): Connects to the device if not connected (does nothing if connected)get_services(self) -> List[str]: Gets list of services.get_characteristics(self, service_uuid: str) -> List[BleakGATTCharacteristic]: Gets characteristics of a service.read_characteristic(self, handle: BleakGATTCharacteristic) -> bytes: Reads value of a characteristicwrite_characteristic(self, handle: BleakGATTCharacteristic, value: bytes): Writes value to a characteristic.Function:find_device_addressesDescription: Finds devices matching a given name and returns their UUIDsReturns:List[str]: List of device addresses.Function:find_pinecilsDescription: Finds nearby pinecils and returns their list.Returns:List[Pinecil]: List of found device instances.
Package: pinecone-pulumi
Pinecone Pulumi ProviderThis Pulumi Pinecone Provider enables you to manage yourPineconecollections and indexes using any language of Pulumi Infrastructure as Code.InstallingThis package is available for several languages/platforms:Node.js (JavaScript/TypeScript)To use from JavaScript or TypeScript in Node.js, install using eithernpm:npminstall@pinecone-database/pulumioryarn:yarnadd@pinecone-database/pineconePythonTo use from Python, install usingpip:pipinstallpinecone_pulumiGoTo use from Go, usego getto grab the latest version of the library:gogetgithub.com/pinecone-io/pulumi-pinecone/sdk.NETTo use from .NET, install usingdotnet add package:dotnetaddpackagePineconeDatabase.PineconeConfigurationThe following configuration points are available for thepineconeprovider:pinecone:APIKey- This is the Pinecone API key. (environment:PINECONE_API_KEY)
Package: pinefarm
PinefarmGeneratePineAPPL gridsfrompinecards.Installationpinefarm is available viaPyPI:pipinstallpinefarmDevFor development you need the following tools:poetry, followinstallation
instructionspoetry-dynamic-versioning, used to manage the version (seerepo)pre-commit, to run maintenance hooks before commits (seeinstructions)Seebelowfor a few more
dependencies (already available on most systems).DocumentationThe documentation is available here:To build the documentation from source run these commandspoetryshellcddocs
makehtml
makeview
Package: pineko
PINEKO is a Python module to produce fktables from interpolation grids and EKOs.InstallationPINEKO is available viaPyPI:pipinstallpinekoDevelopmentIf you want to install from source you can rungitclonegit@github.com:N3PDF/pineko.gitcdpineko
poetryinstallTo setuppoetry, and other tools, seeContribution
Guidelines.DocumentationThe documentation is available here:To build the documentation from source runcddocs
poetryrunmakehtmlTests and benchmarksTo run unit test you can dopoetryrunpytestContributingYour feedback is welcome! If you want to report a (possible) bug or want to ask for a new feature, please raise an issue:Please follow ourCode of Conductand read theContribution Guidelines
Package: pine-md
Pine MarkdownAn acid markdown flavourInstall & Quick Start$pipinstallpine-md
$pine--helpFor Linux users:$pinesource.md>index.htmlFor MacOS users:$python-mpinesource.md>index.htmlFor Windows users (UTF-8 issues involved):>pinesource.md-oindex.htmlIntroductionThis isPine Markdown, or simply,pine-md.Disclaimer:Unfortunately this README.md document wasn't rendered with pine-md. Yet!
Package: pinenut
pinenutA deep learning framework, which was developed by Neil Jiang.
It supports define-by-run computational graph and automatically calculate the gradients of functions.
It supports GPU acceleration.
It is powerful, flexible and easy to understand.Installationpip install pinenutUsagefrompinenutimportTensorimportnumpyasnp# define a computational graphx=Tensor(np.array([1,2,3]))y=Tensor(np.array([4,5,6]))z=x+yz.backward()# calculate the gradients of z with respect to x and yprint(x.grad)# [1, 1, 1]print(y.grad)# [1, 1, 1]GPU accelerationfrompinenutimportTensor,Cuda,matmul,as_arrayx=Tensor([1,2,3])y=Tensor([4,5,6])cuda_is_available=Cuda.available()ifcuda_is_available:x.to_gpu()y.to_gpu()z=matmul(x,y.T)assertz.data==as_array(32)print(type(z.data))z.backward()assert(x.grad.data==[4,5,6]).all()assert(y.grad.data==[1,2,3]).all()examples[mnist]importnumpyasnpimportpinenut.core.datasetsasdssfrompinenutimportMLP,SGD,relu,softmaxfrompinenutimportCudadefdata_transform(x):x=x.flatten()x=x.astype(np.float32)returnx/255.0train=dss.MNIST(train=True,data_transform=data_transform)test=dss.MNIST(train=False,data_transform=data_transform)epochs=5batch_size=100lr=0.1# learning ratemodel=MLP([784,100,10],hidden_activation=relu,output_activation=softmax)optimizer=SGD(model,lr)cuda_is_available=Cuda.available()model.train(train,epochs,batch_size,optimizer,test,enable_cuda=cuda_is_available)model.save_weights('mnist_weights.npz')Features[1] Define-by-run computational graph[2] GPU acceleration[3] Automatic gradient calculation[4] Support for various activation, loss and optimizer functions[5] Pure Python implementation
Package: pinet
piNetTranslate Python Code to HTMLpiNet is a python module built to work with seamlessly Web Development frameworks like Django and Flask. This module renders Python code to HTMLFeaturesCompatible with Python 3Supports all tags and global attributes supported by HTML 5HTML files can either be rendered or can be exported from Python FileDoes not require any dependencies to be installedInstallationpiNet requires Python 3 to run so make sure you're using latest version of PIP and PythonpipinstallpiNetUsagePlace attributes to HTML tags in parameters to the corresponding initializer of the tag.
In case of closing tag, render function takes contents between opening and closing tag.
In other cases render function takes no parameters.Due to conflict with Python keywords name of some tags or attributes have been changes as below.'class' attribute can be accessed by 'clas' parameter.'del' tag can be accessed by 'delete' subclass of HTML tag...More will be  listedfrompinetimport*object=html("Hello World")# Generates HTML object with 'Hello World' as Titlepage_to_be_exported=object.render(object.h1(name="heading_1",id="heading_1",clas="heading_1").render(object.p(name="paragraph",id="paragraph",clas="paragraph").render("Text in first Paragraph"),object.a(href="https://any_link",target='_blank').render(object.p(name="paragraph",id="paragraph",clas="paragraph").render("Text in Second Paragraph"))))export_html(page_to_be_exported,'filename.html')Above code generates a HTML file in current working directory namedfilename.htmlThe contnts of the file would be as follows<!DOCTYPE html>
<html>
  <head>
    <title>Hello world</title>
  </head>
  <body>
    <h1 name="heading_1" id="heading_1" class="heading_1">
        <p name="paragraph" id="paragraph" class="paragraph">
            Text in first Paragraph
        </p>
        <a href="https://any_link" target="_blank">
            <p name="paragraph" id="paragraph" class="paragraph">
                Text in Second Paragraph
            </p>
        </a>
    </h1>
  </body>
</html>BugsSince module is still in Beta testing so few tags are yet to be added. Please let me knnow if you encounter any bug, crash, etc. or If you have any suggestion feel free to let me know.CautionLicenseGNU General Public License
Package: pinetree
pinetreeA flexible gene expression simulator with codon-specific translation rates.RequirementsPinetree requires Python, CMake, and a modern C++ compiler. Python 3 is recommended.InstallationTo install the latest stable version of pinetree from PyPI, run the following:pip3 install cmake  # CMake must be installed before installing pinetree
pip3 install pinetreeThe latest development build may be installed from GitHub as follows:pip3 install cmake   
git clone https://github.com/benjaminjack/pinetree.git
cd pinetree
pip3 install .DocumentationFull documentation is availablehere.You may also build the documentation from the source code. Building the documentation requires sphinx.pinetree/setup.py build_sphinxReproducing plots from manuscriptThis repository contains scripts to reproduce the simulations and plots from the manuscript that describes Pinetree. R and the R packagescowplot,readr,dplyr, andstringrare required to generate plots. Run the following to reproduce the plots from the manuscript:python3 ./examples/three_genes.py
python3 ./examples/three_genes_recoded.py
Rscript plots.RTo simulate a bacteriophage T7 infection, run the following script.# WARNING: This simulation takes approximately 2-3 hours to complete
python3 ./examples/phage_model.py
Package: pineworkslabs
Pineworks Labs Breakout InterfaceInstallationpipinstallpineworkslabsRP2040 GPIO StandaloneThe RP2040 GPIO is a standalone module which uses thetelemetrixlibrary to interface over serial.ImportingTo import this package, run:importpineworkslabs.GPIOasGPIOConnecting to the GPIOWhen the package is imported on a connected PC, the setup code will find a compatible GPIO board on a connected COM port.Example: blink an LEDimportpineworkslabs.GPIOasGPIOimporttimeGPIO.setmode(GPIO.PINEWORKS)pin=20whileTrue:try:GPIO.setup(pin,GPIO.OUT)GPIO.output(pin,GPIO.HIGH)time.sleep(0.25)GPIO.output(pin,GPIO.LOW)time.sleep(0.25)exceptKeyboardInterrupt:GPIO.cleanup()Raspberry Pi 4 / LePotatoPineworks Labs legacy GPIO boards are a breakout module to be used with a Raspberry Pi 4+ or aLibre Computer Board (LePotato AML-905X-CC-V1.0-A).ImportingTo import this package on the RPi or LePotato, run:importpineworkslabs.RPiasGPIOSetting the modeThe relevant difference between the Raspberry Pi and the LePotato for this package is the GPIO pinout. Use the following command to set the appropriate pinout lookup table:setmode(RASPBERRY_PI_LOOKUP)orsetmode(LE_POTATO_LOOKUP)Not all pins are available for output, depending on the mode.Reading and writing pinsTo read a pin, first set it up using theINflag, then read it withinput.pin:int|str=20setup(pin,IN)print(input(pin))Similarly, to write a pin, set it up using theOUTflag, then write to it withoutput.pin:int|str=20setup(pin,OUT)output(pin,HIGH)Cleaning upTo reset all pins toLOW, run:cleanup()Example: blink an LED (LePotato)importpineworkslabs.RPiasGPIOimporttimeGPIO.setmode(GPIO.LE_POTATO_LOOKUP)pin=20whileTrue:try:GPIO.setup(pin,GPIO.OUT)GPIO.output(pin,GPIO.HIGH)time.sleep(0.25)GPIO.output(pin,GPIO.LOW)time.sleep(0.25)exceptKeyboardInterrupt:GPIO.cleanup()AcknowledgementsWe are indebted to the work of thetelemetrixteam for serial connectivity between the PC and the GPIO board, and thegpiodteam for the interface between the Raspberry Pi/LePotato and the GPIO.
Package: pinfab
pin-fabric=======pin-fabric provides 'project-wide' access to commands inside your fabfile.py file. pin-fabric will list your fabric commands in the **pin help** command.$ pin helpusage: pin [-v]optional arguments:-v, --version  show program's version number and exitAvailable commands for /home/dlacewell/dev/pmcs:destroy  - Destroy and unregister the project from pin.go  - Teleport to a specific project.help  -  This help information.init  - Initialize pin in the current directory.fab  --------------------------------------------------------------------------Commands inside your fabfile.update_remote  - Update deployment server and restart apachepush_local  - Push locally commited changes### Commands* **pin fab [fabric args]** : Execute any commands inside your fabfile.py file
Package: pinfer
Protein Interaction Network inFERence (PINFER).===============================Currently this represents a pure Python reimplementation of the approach found in Pinney et al. 2007. Full explanation of the approach can be found in the original paper, and (in time) in examples here.Reconstruction of ancestral protein interaction networks for the bZIP transcription factors.Pinney, J. W., Amoutzias, G. D., Rattray, M., & Robertson, D. L. (2007).Proc Natl Acad Sci U S A, 104(51), 20449–20453.[http://doi.org/10.1073/pnas.0706339104](http://doi.org/10.1073/pnas.0706339104)###  Warning : This module is still very much under development!In the (nearish) future it will include useful things such as...* (more) unit testing* example Jupyter notebooks* novel functionality to enable more flexible inference of protein interaction historiesWhen possible, advances on the original approach will be made available here.