Saravanan666/pypi-org huggingface dataset:
Package: pr-creator
# What is this?A tool to create cross-linked PRs.# How do I install it?pip install git+https://github.com/bwarren2/create-prsNote: you will need a version of git that supports the -C flag.  Casual googling says this is git version >= 1.8, but check yourself withman git.Set some env vars:JIRA_PASSWD: Jira password, ex ‘sooperseekritpass’JIRA_USER: Jira username, ex ‘warrenb’GITHUB_TOKEN: A github API token (from your settings).  ex ‘nicetry’.PROJECTS: Where you have your eab repos checked out.  ex ‘PROJECTS=/Users/warrenb/Projects’If you need to make a github token, try [the github page](https://github.com/settings/tokens/).  You wantrepoprivileges.  YES, I do in fact mean it.  (It’s the privilege level that lets you interact with private PRs.)  For a tale of the woe that befalls you if you don’t do this, ask @eabmahoney.# How do I use it?create-prs -hfor help.  By default, we only change local settings.## Example usage:### Basiccreate-prs –branch some-name –ticket NAV-5000Which translates to:Create branches in each of the projectsName the branchfeature/NAV-5000-some-name### Basic, short namescreate-prs -b some-name -t NAV-5000Same as above, just using shorter flags.### Picking basescreate-prs -pb -b some-name -t NAV-5000Which translates to:Pick the base branches with an autocompleterCreate branches in each of the projectsName the branchfeature/NAV-5000-some-nameThis will start an autocompleter that looks through your local branches to use one as a base.  Useful for bugfixes that need to base off of release branches.### Change all reqscreate-prs –all-reqs -b some-name -t NAV-5000Which translates to:Change ALL the reqs files, not just localCreate branches in each of the projectsName the branchfeature/NAV-5000-some-name# ContributingPRs welcome.
Package: prcs2hg
This directory contains the source code for prcs2hg, which is a command to
convert a PRCS project to Mercurial.  It can help you publish the revision
history of an obsolete project.prcs2hg is free software: you can redistribute it and/or modify it under the
conditions specified in each file.  The main part of prcs2hg is licensed with
the OSI-approved MIT License <http://opensource.org/licenses/MIT>.For more information about prcs2hg, visit the prcs2hg project at
<http://www.vx68k.org/prcs2hg>.# InstallationYou should be able to install prcs2hg by using the included ‘setup.py’ script
as typical Python package.# Third-party componentsThe file ‘prcs/sexpdata.py’ was copied from the sexpdata package
<https://github.com/tkf/sexpdata> and modified not to parse numbers so that we
can handle PRCS version numbers correctly.
Package: prcslib
IntroductionTheprcslibpackageprovides a Python API for PRCS.PRCS(Project Revision Control System) is a legacy version control system
that manages aprojectconsisting of multiple files
and records related changes across them as a unit.See thehome pagefor more information about theprcslibpackage.LicenseThis program is provided under the terms and conditions of theMIT License.LinksAmodified version of PRCSthat runs on recent Linux operating
systems.
Package: prcssr
DescriptionCommand Execution with LoggingDisclaimerNo sanitization is applied by prcssrYou are responsible to sanitize the inputInstallationpip install prcssrUsageFrom command line:python -m prcssr -c CMD [-l LOG]OptionShortTypeDefaultDescription--cmd-cString-The command--log-lStringprcssr.logPath to log fileProgrammatically:fromprcssr.model.ProcessorimportProcessorp=Processor("info.log")p.process("type test.txt")stdout=p.processGetStdOut("type test.txt")forlineinstdout.readlines():print(line)Examplepython -m prccsr -c "type test.txt" -l info.logCreatesinfo.logwith the following content:[1970-01-01 10:10:10,214] | INFO | prcssr started!
[1970-01-01 10:10:10,217] | INFO | ----------
[1970-01-01 10:10:10,219] | INFO | CMD: type .\LICENSE.md
[1970-01-01 10:10:10,224] | INFO | ----------
[1970-01-01 10:10:10,230] | INFO | # This is a test file for prccsr
[1970-01-01 10:10:10,241] | INFO | ----------LicenseMIT
Package: prdg.plone.testing
ContentsIntroductionTODOChangelog0.0.6 (2011-06-24)0.0.5 (17dec2009)0.0.4 (13ago2009)0.0.3 (22jul2009)0.0.2 (26may2009)0.0.1IntroductionProvide useful base classes for testing in Plone.Developed atParadigma Internet[1].[1]http://www.paradigma.com.br/TODOWrite tests.Write documentation.Changelog0.0.6 (2011-06-24)Added Plone 4.x compatibility.0.0.5 (17dec2009)Now requires prdg.plone.util>=0.0.6 because it made collective.wtf an optional
dependency. Also removed the direct dependency on collective.wtf because
it was non-sense.0.0.4 (13ago2009)Added new methods to FunctionalTestCase class.Fixed a bug in ContentTypeTestCase.create_object(): object was being returned
outside acquisition context. Fixed by using getattr instead of __getitem__.0.0.3 (22jul2009)Added collective.wtf as a dependency.0.0.2 (26may2009)Added functionality to InstallationTestCase to check for workflows.Added WorkflowTestCase class.Minor bug fixes.0.0.1Initial release
Package: prdg.plone.util
IntroductionAssorted utilities for Plone.Developed atParadigma Internet[1].DependenciesSee setup.pyOptionally installcollective.wtf[2]to be able to use theprdg.plone.util.utils.sanity_check_workflowfunction.[1]http://www.paradigma.com.br/[2]http://pypi.python.org/pypi/collective.wtfTODOWrite tests.Write documentation.Changelog0.0.9 (2013-11-13)Fixed dependencies.Converted tests to use plone.app.testingMake support for setting allowed content types in thestructuremodule work
with Dexterity content types.0.0.8 (2012-01-12)Updated to work on Plone 4.x0.0.7 (2011-12-27)Added “comment” argument to functions which do workflow transitions.0.0.6 (17dec2009)Made collective.wtf a soft dependency by using a conditional import.0.0.5 (20ago2009)tests/test_file_extension_validator.py: Corrected functional test regarding
to button name which has changed in a recent plone update.structure.py: Changed how File, Image and Reference fields are detected. Now
it’s more precise and can handle file specializations.0.0.4 (13ago2009)Added new functions to utils module.Added new parameters to structure.create_obj_from_dict().0.0.3 (26may2009)Added sample file that was missing for test.Added HISTORY.txt and TODO.txt.
Package: prdg.util
ContentsIntroductionTODOChangelog0.0.7 (2010-08-05)0.0.6 (12jun2009)0.0.5 (26may2009)0.0.40.0.30.0.20.0.1IntroductionGeneral utilities.Developed atParadigma Internet[1].[1]http://www.paradigma.com.br/TODOWrite tests.Write documentation.Changelog0.0.7 (2010-08-05)Added new moduleproc.0.0.6 (12jun2009)Added new modules path and url.Minor additions to other modules.Now depends on rbco.commandwrap 0.0.x.0.0.5 (26may2009)Added ignore and Z2 test runner hack.0.0.4New functions: exists, file_to_str, get_extension, remove_extension,
change_to_file_dir.0.0.3Removed dependency to email package.Renamed email module to emails.0.0.2Added dependency to email package.0.0.1First release.
Package: pr-dir
Print_dir - it`s a directory-visualizer python-packageHow to installpip install print_dirGuidefromprint_dir.visualizerimportVisualizer# You can start work with files from where you wouldmy_dir=my_dir=Visualizer(directory)# directory вЂ“ path to start visualizer# You can see content of directorymy_dir.dir()# You can change directorymy_dir.cd(to)# to вЂ“ path to new folder# Via cd-method you can move backmy_dir.cd('..')# if to == '..' directory changes to parentExample of usagefromprint_dir.visualizerimportVisualizermy_dir=Visualizer('/files/directory/')my_dir.dir()# OUTPUT:"""рџ“Ѓ directory|_ рџ“Ѓ print_dir|_ рџ“Ѓ tests|_ рџ“Ѓ venv|_ рџ“ѓ .gitignore|_ рџ“ѓ README.md|_ рџ“ѓ setup.py"""my_dir.cd('tests')my_dir.dir()# OUTPUT:"""рџ“Ѓ tests|_ рџ“ѓ test_Visualizer.py|_ рџ“ѓ __init__.py"""
Package: prdnn
PRDNNProvable Repair of DNNs. See ourGithub
repositoryfor more information.PrerequisitesYou will need to install Gurobi.If you wish to do polytope patching, you will also need a running SyReNN
server. Seethe SyReNN GitHub repositoryfor more details. We also usePyTorch, please ensure
you have the desired version of PyTorch installed before installing this
package.Supported Python VersionsWe only test against Python 3.7.4, however we believe it should work for other
versions of Python as well.
Package: preacher
Preacher: Web API Verification without CodingPreacher verifies API servers,
which requests to the servers and verify the responses along to given scenarios.Test scenarios are written only inYAMLdeclaratively, without coding.
In spite of that, Preacher can validate your web API flexibly,
which enables you to test using real (neither mocks nor sandboxes) backends.Responses are analyzedjqorXPathqueriesValidation rules are based onHamcrest(implemented byPyHamcrest).The full documentation is available atpreacher.readthedocs.io.TargetsFlexible validation to test with real backends: neither mocks nor sandboxes.Matcher-based validation.CI Friendly to automate easily.A CLI application and YAML-based scenarios.UsageFirst, install Preacher.The most basic way to install Preacher is usingpip. Supports only Python 3.7+.$pipinstallpreacher
$preacher-cli--versionInstead ofpip, Docker images are also available onDocker Hubasymoch/preacher.
By default, the container working directory is/work,
and the host directory may be mounted here.$dockerpullymock/preacher
$dockerrun-v$PWD:/workymoch/preacherpreacher-cli--versionSecond, write your own scenario.# scenario.ymllabel:An example of a scenariocases:-label:An example of a caserequest:/path/to/fooresponse:status_code:200body:-describe:.fooshould:equal:barThen, runpreacher-clicommand.$preacher-cli-uhttp://your.domain.com/basescenario.ymlFor more information such as grammer of scenarios,
seethe full documentation.LicenseCopyright (c) 2019 Yu MOCHIZUKI
Package: preadator
Preadator UtilityStreamlined management of threads and processes for algorithm scaling.Supports Python>=3.9.BugsPreadator is designed to work in Python >= 3.7, but there is abug in Pythonin theProcessPoolExecutorthat causes anOSErrorwith.shutdown(wait=False).Since the bug is in Python itself, currently only Python 3.9 is supported. If
the bug is fixed, then Preadator will support older versions of Python.Installpip install preadator
Package: pre-ai-python
# Project> This repo has been populated by an initial template to help get you started. Please
> make sure to update the content to build a great experience for community-building.As the maintainer of this project, please make a few updates:Improving this README.MD file to provide a great experienceUpdating SUPPORT.MD with content about this project’s support experienceUnderstanding the security reporting process in SECURITY.MDRemove this section from the README## ContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.opensource.microsoft.com.When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.## TrademarksThis project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft’s Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party’s policies.
Package: pream-team
PReam-TeamA TUI utility that lists open github PRs for your team.Get itpython3 -m pip install  pream-team --upgradeHow toYou need a GitHub personal access token with full repo scope
and with admin org read access if you want to specifyorgvalue.Besides the token you also need to provide a list of github usernames. You can do that through command line or yaml config file (see below).pream-team will also dispay a list of pull requests where you (username specified by 'me' value in cli or yaml) or your team (team name specified by 'my_team') has been added as a reviewer. You can see those by clicking on 'Review requested' button on the top right of the TUI.If you provideorgvalue, pream-team will fetch only the prs for repos that belong to the org.
If you providemevalue, pream team will print out your approval status for the
pull request ('v', '@', 'x' for approved, commented, chages requeted) followed by the number of approvals for the PR eg.[v|2] [draft|repo-name] - pr title. If you dont provide themevalue, you will only get the number of approvals eg.[2] [draft|repo-name] - pr titleCommand line options:options:
  -h, --help            show this help message and exit
  --names NAMES [NAMES ...]
                        List of GitHub usernames.
  --days DAYS           Number of past days to search for PRs.
  --token TOKEN         GitHub API token.
  --org ORG             GitHub organization name.
  --me ME               Your GitHub username.
  --my_team MY_TEAM     name of your gh team. used to check for review requests that requested team review but
                        not you explicitly.
  --file FILE           Path to YAML file containing 'names', 'days', 'token' and 'org' fields. (Note that command line
                        arguments override YAML file configuration)Or through a yaml file (default location is ~/.prs/config.yml):org: some-org # optional
token: some-token # required
days-back: 25 # optional
me: username # optional
my_team: team-name # optional
names: # required (at least one)
  - "Teamamte-username-1"
  - "Teamamte-username-2"
  - "Teamamte-username-3"
Package: preapp
preappa tool to help both users and developers create a software project.Goalsthis tool is still very early in developement. the end goal is for users (people with little or no programming experience) to be able to select features and requirements they have for a app or piece of software then have preap automatically generate the project files and github repositories for them. they can then use the github platform to look for developers to work on their project.Usagepreapp is a cli tool it supports both predefined and terminal input.run preapp with user cli input$ python -m preapprun preapp with predefined json input$ python -m preapp --preset config.json --credentials credentials.jsonCurrent Statecurrently preapp can create primitive repositories from some project specifications.Contributingwant to help with preapp starthere
Package: prebuilt-binaries
A setuptools command for packaging pre-built binary python extension modules.If you are already using cmake as your build tool, having to then build your library
with setuptools in order to package it can be annoying.prebuild_binaries allows you to pass an already built extension module (.pyd file) to setuptools
for inclusion in a wheel.Note that it is your responsibility to do this with the same python version as the file was created
with - however this is pretty easy to get right when it’s part of the same build chain.APIclass PrebuiltExtension(input_filename, package=None)input_filenameis the full path to the pre-built extension module (.pyd file)
The stem ofinput_filenameis used for the name of the extension module.Ifpackageis passed then the name of the extension module will be<package>.<name>class prebuilt_binarysetuptools command class that takes PrebuiltExtension instances as parameters and copies the input file to the correct location.  It is a replacement for the setuptoolsbuild_extcommand.Minimal setup.py exampleimport os
from setuptools import setup
from prebuilt_binaries import prebuilt_binary, PrebuiltExtension

ext_module = PrebuiltExtension(os.environ['PREBUILT_FILE'])

setup(
    name='my_package',
    version='version',
    cmdclass={
        'build_ext': prebuilt_binary,
    },
    ext_modules=[ext_module]
)In this example thePREBUILT_FILEenvironment variable contains the desired path.  Thecmdclassmapping is required to tell
setuptools to use theprebuilt_binaryclass to “build” the extensions specified inext_modules.CMakeLists.txt examplefind_package(Python REQUIRED)

file(GLOB build_wheel_SOURCE_FILES pyproject.toml setup.py)

add_custom_target(build_wheel
    COMMAND ${CMAKE_COMMAND} -E env PREBUILT_FILE=$<TARGET_FILE:py_module> ${Python_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/setup.py bdist_wheel
    SOURCES ${build_wheel_SOURCE_FILES}
    )

add_dependencies(build_wheel py_module)In this example cmake filepy_moduleis the name of the target that builds the extension module.
It sets thePREBUILT_FILEenvironment variable used bysetup.pyto the output file of thepy_moduletarget.Build dependenciesDon’t forget to setprebuilt_binariesas a build-time dependancy in yourpyproject.tomlfile:[build-system]
requires = ["setuptools", "prebuilt_binaries"]or in yoursetup.cfgfile:[options]
setup_requires =
    setuptools
    prebuilt_binaries
Package: precept
preceptAsync application framework.InstallInstall with pip:$ pip install preceptUsageBasic:frompreceptimportPrecept,Command,ArgumentclassMyCli(Precept):"""The name of the application will be the spinal-case version ofthe name of the class.Class docstring is added as cli description."""@Command(Argument('argument',type=str))asyncdefmy_command(self,argument):print(argument)defcli():MyCli().start()if__name__=='__main__':cli()For local testing:Setentry_points.console_scripttomy-cli = my_package.my_cli:cliinsetup.pyInstall locally:$ pip install -e .Then call:$ my-cli my-command hello-> printhelloFull documentation
Package: precilaser
PrecilaserPython interface for precilaser devicesImplements a python interface using pyvisa for 3 Precilaser devices:Precilaser Fiber DFBPrecilaser AmplifierPrecilaser SHG AmplifierInstallationpip install precilaseror install directly from source.Implemented FunctionalityPrecilaser Fiber DFBstatusretrieve the laser status, in a dataclass (with some of the boilerplate code removed; seestatus.pyfor more detail):@dataclassclassSeedStatus:status_bytes:bytesendian:strtemperature_set:float# grating temperature setpoint [C]temperature_act:float# grating temperature [C]temperature_diode:float# [C]current_set:int# [mA]current_act:int# [mA]wavelength:float# [nm]piezo_voltage:float# [V]emission:boolpower:intrun_hours:intrun_minutes:inttemperature_setpointget or set the grating temperature in Cpiezo_voltageget or set the piezo voltage, from 0 V to 5 V_get_serial_wavelength_paramsretrieve the parameters required to reconstruct the wavelength from the grating temperaturewavelengthcalculate the wavelength from the retrieved parameters and the grating temperaturePrecilaser Amplifierstatusretrieve the amplifier status, in a dataclass (with some of the boilerplate code removed; seestatus.pyfor more detail):@dataclassclassAmplifierStatus:status_bytes:bytesendian:strstable:boolsystem_status:SystemStatusdriver_unlock:DriverUnlockdriver_current:Tuple[float,...]pd_value:Tuple[int,...]# internal photodiode values in arb. unitspd_status:Tuple[PDStatus,...]temperatures:Tuple[float]# internal temperatures of amplifier stages etc.@dataclassclassSystemStatus:status:intpd_protection:Tuple[bool,...]temperature_protection:Tuple[bool,...]fault:bool@dataclassclassDriverUnlock:driver_unlock:intdriver_enable_control:Tuple[bool,...]driver_enable_flag:Tuple[bool,...]interlock:bool# true if the interlock is ok@dataclassclassPDStatus:status:intsampling_enable:boolhardware_protection:boolupper_limit_enabled:boollower_limit_enabled:boolhardware_protection_event:boolupper_limit_event:boollower_limit_event:boolfault:boolcurrentget or set the amplifier current [A]enable()enable the amplifierdisable()disable the amplifiersave()save amplifier settings to ROMenable_power_stabilization()enable power stabilization mode; varies the amplifier current to keep the output power constantdisable_power_stabilization()disable power stabilization modePrecilaser AmplifierA subclass of theAmplifier, includes allAmplifierfunctionality plus additionally:shg_temperatureget or set the shg crystal temperature [C]ExamplefromprecilaserimportSHGAmplifieramp=SHGAmplifier("COM50",address=0)# change the SHG crystal temperatureamp.shg_temperature=73.15
Package: precious
Value objects for Python.ExamplefrompreciousimportValue,assign_attributesclassColor(Value):@assign_attributesdef__init__(self,red,green,blue,alpha=0):pass@propertydefgrayscale(self):return(self.r+self.g+self.b)/3>>>red=Color(255,0,0)>>>redColor(255,0,0,0)>>>red==Color(255,0,0)True>>>Color.__slots__('red','green','blue','alpha')>>>hash(red)8736776571231852889Installationpip install preciousUsageValue object classes should subclass baseValueclass. EveryValuesubclass has to defineattributes, which is an iterable containing names of all attributes.
This may happen by explicitly setting the attribute on the class:classPoint(Value):attributes=('x','y')def__init__(self,x,y):self.x=xself.y=yBy extracting attribute names directly from__init__definition using one of provided helper decorators:frompreciousimportValue,extract_attributesclassPoint(Value):@extract_attributesdef__init__(self,x,y):self.x=xself.y=yBy using a shortcutassign_attributesto replace a common boilerplate of extracting and assigning all the attributes in__init__:frompreciousimportValue,assign_attributesclassPoint(Value):@assign_attributesdef__init__(self,x,y):passNote that in the example above attributes are not being assigned in parent’s class__init__, thus nosuper()call is required.FeaturesValueimplements__eq____repr____hash__Memory efficiencySubclassingValueautomaticaly assignes names of all attributes to__slots__[1].TestingJust runtoxin package directory:$toxWhy not simply usenamedtuple?Namedtuple definition is equally fine for simple use cases.Point=namedtuple('Point',('x','y'))Having to repeat the classname is a minor inconvinience, but the definition is pretty readable and concise. Also, class gets iterable interface and indexing support, which sometimes is what you want. However, things with namedtuple get very ugly when a default value or a method or a property is required. Subclassing is the only way to go. Consider the following example:classColor(namedtuple('Color_',('r','g','b','alpha'))):__slots__=()def__new__(cls,r,g,b,alpha=0):returnsuper().__new__(cls,r,g,b,alpha)@propertydefgrayscale(self):return(self.r+self.g+self.b)/3# Equivalent toclassColor(Value):@assign_attributesdef__init__(self,red,green,blue,alpha=0):pass@propertydefgrayscale(self):return(self.r+self.g+self.b)/3To sum up, problems with extending namedtuple include:Having to define empty__slots__[1].Overriding__new__when a default values is required.Repeating attributes names in several places.Unintuitive inheritance by generating parent class on the fly.[1](1,2)https://docs.python.org/3/reference/datamodel.html#slots
Package: precise-plus
PRECISE+PRECISE+ is a domain-adaptation tool to predict drug response in human tumors from pre-clinical models. It is presented in the following pre-print:https://www.biorxiv.org/content/10.1101/2020.06.29.177139v1PRECISE+ requires Python 3.6 or higher. PRECISE+ runs on conda and requires matplotlib and pandas installed as follows:conda install matplotlib pandasYou can install PRECISE+ with the following command:pip install precise_plusUse-caseYou can find the code supporting the pre-print with examples of PRECISE+ usage in :https://github.com/NKI-CCB/precise_plus_manuscriptContactPlease contact me : s [dot] mourragui [at] nki [dot] nl