Saravanan666/pypi-org huggingface dataset:
Package: ptoolbox
Problem ToolboxTools to work with multiple problem formats: DSA, Hackerrank, CMS, repl...DescriptionMain functionsDSA problem toolsHackerrank problem toolsInstallationNormal installationpipinstallptoolboxDevelopment installationgitclonehttps://gitlab.com/thucnguyen/ptoolbox.gitcdptoolbox
pipinstall--editable.UsageDSA problem toolsptoolboxdsa--helpHackerrank problem toolsptoolboxhackerrank--helpChange log[0.7.7] - 2020-10-27FixedFix utf-8[0.7.5] - 2020-08-28AddedRejudge Codesignal tournament result: count full-score tasks only[0.7.0] - 2020-08-13AddedAdded get Codesignal tournament result[0.6.6] - 2020-05-14FixedAdded get multiple chapters from logiclike[0.6.6] - 2020-05-14FixedAdded logiclike[0.6.0] - 2020-05-13FixedComplete Beestar[0.5.8] - 2020-05-11FixedBeestar redirect domain[0.5.6] - 2020-05-11Addedrefactor beestar getFix bugs[0.5.3] - 2020-04-27Addedbeestar supportdsa problem translation supportFix bugs[0.5.1] - 2020-04-18Addeducode supportFix bugs[0.4.1] - 2020-03-23AddedAdded img support for codeforcesFix bugs[0.4.0] - 2020-01-29AddedAddptoolbox kt getcommand to get problem from kattis.com[0.3.2] - 2020-01-12AddedAdd_editorial.mdfile for editorialAddstatement.vi.mdfile for translationFixedFix newline in cf sample test[0.3.1] - 2019-11-20AddedAddstatement.md.enfile for translationFixedAddjinja2to requirements[0.3] - 2019-11-20AddedAdd codeforces command: get codeforces problem and save to a local folder[0.2.7] - 2019-09-18FixedAdd template files to package[0.2.6] - 2019-09-08FixedFixed wrong tab in problem format: using jinja2 as template[0.2.5] - 2019-08-04FixedFixed bug empty test case[0.2.2] - 2019-07-18ImprovedHandle the case that problem file has different name to the containing folder[0.2.1] - 2019-07-18AddedAdd detect source link in problem statement[0.2.0] - 2019-07-11AddedAdd hackerrank CLI tools[0.1.8] - 2019-07-10AddedAdd Difficulty to problem statement[0.1.6] - 2019-07-10AddedAuto fix problem statement format:ptoolboxdsacheck-problem{problem-folder}--autofix[0.1.5] - 2019-07-09AddedCheck problem folder for proper format:ptoolboxdsacheck-problem{problem-folder}[0.1.4] - 2019-07-08UpdatedUpdate template: add tags, problem title[0.1.3] - 2019-07-03UpdatedUpdate template with Latex sample[0.1.2] - 2019-07-02UpdatedUpdate template for testcase generator[0.1.0] - 2019-07-01AddedCreate problem templatePrepare Hackerrank testcases (.zip) format[0.0.1] - 2019-07-01AddedInit projectSetup CLI with click
Package: ptools
ptools======Cross Platform Process Infomation (cmdline, environ) and Managementptools has windows and linux implementations of several functions:* list_pids - list all processes* get_pid_info - get the command line used to launch the process andthe environment as a map* kill_pid - forcefully kill the processget_pid_info may fail with ptools.OperationException especially if youdo not have the required access to see the processes command line orenvironmentTo get the functions for your current os do:from ptools.current import *
Package: ptop.py
DWhirlpoolPresentsPtopTop, But Written in PythonBrought to you usingTable of contentsGeneral infoUsageGeneral infoBased on the Unix commandtopBut written in pythonUsageExtract FilesMove All the Files into the C:\Users\username, or if you have administrative access, C:\Windows\System32.If You did C:\Users\username, then open up Windows Command Processor(cmd) without administrative accessC:\Users\username>ptopIf you did C:\Windows\System32, then open up Windows Command Processor(cmd) as AdministratorC:\Windows\System32>ptopHave Fun! :D
Package: ptorru-matmul
ptorru-matmulLearning about pipy, distributing a simple matrix multiply exampleTo consult how to distribute a package in PyPI take a look at thepublish_notes.mdInstalling this packageUsingPyPIpipinstallptorru-matmulAlternatively usepoetrypoetryaddptorru-matmulUsing this packageimportnumpyasnpfromptorru_matmulimportmatmulsides=3a=np.arange(sides*sides).reshape(sides,sides)b=np.arange(sides*sides).reshape(sides,sides)c=matmul(a,b)assertnp.array_equal(c,np.matmul(a,b))print(a,b)print(c)
Package: ptpimg-uploader
Upload image file or image URL to the ptpimg.me image hosting.InstallationUsing pip:pipinstallptpimg_uploaderUsing setup.py:pythonsetup.pyinstallManually:Install python3 packagerequests(usuallyapt-getinstallpython3-requestsorpip3 install requests).If you want clipboard support, installpypercliptoo.API keyTo find your PTPImg API key, login tohttps://ptpimg.me, open the page source
(i.e. “View->Developer->View source” menu in Chrome), find the string api_key
and copy the hexademical string from the value attribute. Your API key should
look like 43fe0fee-f935-4084-8a38-3e632b0be68c.You can export your ptpimg.me API key (usually in .bashrc or .zshenv) using:exportPTPIMG_API_KEY=<yourhexkey>or use the-k/--api-keycommand-line switch.How to useRunptpimg_uploader-hto get command-line help.To upload an image file:ptpimg_uploader~/seed/mytorrent/folder.jpgTo rehost an imgur image:ptpimg_uploaderhttps://i.imgur.com/eaT6j3X.jpgAn uploaded URL will be printed to the console.If--bbcodeparameter is specified, URLS will be wrapped in BBCode[img]tags:ptpimg_uploader--bbcode~/seed/mytorrent/folder.jpgIf pyperclip python package is installed, the URL will be additionally copied to the clipboard.
Additionally, you can upload an URL from the clipboard:ptpimg_uploader--clipIf output is a terminal, a bell will be ringed on completion (can be disabled with a--nobellparameter).You can specify multiple files and URLs on the command line:ptpimg_uploader~/seed/mytorrent/folder.jpghttps://i.imgur.com/eaT6j3X.jpgThe resulting URLs are printed each on separate line, and copied to your
clipboard with newlines in between.LicenseBSDAcknowledgmentsmjpieters - a great refactoring and Python packaginglukacoufyl - fixing image upload order
Package: ptplot
ptplotptplotmakes it easy to turn player-tracking data into beautiful,
interactive visualizations — including animations! These visualizations can be used to guide
data exploration/analysis work, or to embed in webpages to share with
the world.Installationptplotcan be installed via pip:$pipinstallptplotIt is strongly recommended that you installptplotinto a virtual
environment, such as withconda:[Afterinstallingconda]$condacreate-nplayer_trackingpython=3$condaactivateplayer_tracking
$pipinstallptplotYou may wish to install some ofptplot's dependencies
via conda, specificallypandasandbokeh:[Afterinstallingconda]$condacreate-nplayer_trackingpython=3pandasbokeh
$condaactivateplayer_tracking
$pipinstallptplotGetting StartedMaking your first plot can be as simple asimportpandasaspdfrombokeh.plottingimportshowfromptplotimportPTPlotfromptplot.nflimportFieldfromptplot.plotimportPositionsdata=pd.read_csv("YOUR PLAYER TRACKING DATA")plot=PTPlot(data)+Field()+Positions("X_COORDINATE_COLUMN","Y_COORDINATE_COLUMN")show(plot.draw())For additional documentation and examples, check out the
notebooks in thenotebooks/directory, which can be viewed
online with all of the plots correctly rendered via nbviewer:Basic PlotsAnimationsFacetingTips and TricksAdditionally, layers withinptplothave docstrings with
more usage details. Those can be accessed either by reading the
source code or runninghelp([FUNCTION])inside of Python.Development DocsSeehere
Package: ptprssi
PTPRSSIPath-relative style sheet import testing toolInstallationpip install ptprssiAdd to PATHIf you cannot invoke the script in your terminal, its probably because its not in your PATH. Fix it by running commands below.Add to PATH for Bashecho"export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"">>~/.bashrcsource~/.bashrcAdd to PATH for ZSHecho"export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"">>~/.zshhrcsource~/.zshhrcUsage examplesptprssi -u https://www.example.com/
ptprssi -u https://www.example.com/ --redirectsOptions-u   --url         <url>           Connect to URL
-p   --proxy       <proxy>         Set proxy (e.g. http://127.0.0.1:8080)
-H   --headers     <header:value>  Set custom header(s)
-T   --timeout     <timeout>       Set timeout (default 10s)
-ua  --user-agent  <ua>            Set User-Agent header
-c   --cookie      <cookie>        Set cookie
-r   --redirects                   Follow redirects (default False)
-C   --cache                       Cache HTTP communication (load from tmp in future)
-v   --version                     Show script version and exit
-h   --help                        Show this help message and exit
-j   --json                        Output in JSON formatDependenciesrequests
bs4
lxml
ptlibsVersion History1.0.0
    - Code improvements
    - Updated for ptlibs 1.0.0
0.0.1 - 0.0.4
    - Alpha releasesLicenseCopyright (c) 2023 Penterep Security s.r.o.ptprssi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.ptprssi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along with ptprssi. If not, seehttps://www.gnu.org/licenses/.WarningYou are only allowed to run the tool against the websites which
you have been given permission to pentest. We do not accept any
responsibility for any damage/harm that this application causes to your
computer, or your network. Penterep is not responsible for any illegal
or malicious use of this code. Be Ethical!
Package: ptracer
Ptracer is a library providing on-demand system call tracing in Python
programs.Basic Usageimporttracebackimportptracerdefcallback(syscall):print('{}({}) ->{}'.format(syscall.name,', '.join(repr(arg.value)forarginsyscall.args),syscall.result.text))print('Traceback: ')print(''.join(traceback.format_list(syscall.traceback)))withptracer.context(callback):open('/dev/null','wb')FilteringPtracer allows elaborate syscall filtering via thefilterargument:flt=[ptracer.SysCallPattern(name='open',args=[re.compile(b'/tmp/.*'),lambdaarg:arg.value&os.O_WRONLY],result=lambdares:res.value>0)]withptracer.context(callback,filter=flt):# traced code...In the above example, ptracer will invoke the callback only for successful
attempts to open files in the “/tmp” directory for writing.DocumentationThe documentation is available onptracer.readthedocs.io.
Package: ptrader-py
import pandas as pd
import pytrader.MarketData as md
import plotly.graph_objects as go#print(md.getPairs())md.setTickDataRoot('C:\TickData')#df = md.getMarketData("AUDUSD", md.TimeFrame.M1, 2023, 11, 4)df = md.getMarketDataFrom("AUDUSD", md.TimeFrame.H4, 2023, 11, 4)
#df = md.getMarketDataFromTo("AUDUSD", md.TimeFrame.H1, 2023, 5, 5, 2023,6,4)print(df)#fig = go.Figure(data=[go.Candlestick(x=df['Date'], open=df['Open'], high=df['High'], low=df['Low'], close=df['Close'])])
#fig.show()
Package: ptrail
PTRAIL:  AParallelTRajectory 
dAta
preprocessIngLibraryIntroductionPTRAIL is a state-of-the art Mobility Data Preprocessing Library that mainly deals with filtering data, generating features and interpolation of Trajectory Data.The main features of PTRAIL are:PTRAIL uses primarily parallel computation based on
     python Pandas and numpy which makes it very fast as compared
     to other libraries available.PTRAIL harnesses the full power of the machine that
     it is running on by using all the cores available in the
     computer.PTRAIL uses a customized DataFrame built on top of python
     pandas for representation and storage of Trajectory Data.PTRAIL also provides several Temporal and spatial features
     which are calculated mostly using parallel computation for very
     fast and accurate calculations.Moreover, PTRAIL also provides several filteration and
     outlier detection methods for cleaning and noise reduction of
     the Trajectory Data.Apart from the features mentioned above,fourdifferent kinds of Trajectory Interpolation techniques are
     offered by PTRAIL which is a first in the community.Documentation↪PTRAIL DocumentationPip Installationpip install PTRAILExamples↪PTRAIL ExamplesMiscellaneousCitationTo cite PTRAIL in your academic work, please use the following citation:@article{haidri2021ptrail,title={PTRAIL -- A python package for parallel trajectory data preprocessing},author={Salman Haidri and Yaksh J. Haranwala and Vania Bogorny and Chiara Renso and Vinicius Prado da Fonseca and Amilcar Soares},year={2021},eprint={2108.13202},url={https://arxiv.org/abs/2108.13202},archivePrefix={arXiv},primaryClass={cs.DC}}
Package: ptranking
IntroductionThis open-source project, referred to asPTRanking(Learning to Rank in PyTorch) aims to provide scalable and extendable implementations of typical learning-to-rank methods based on PyTorch. On one hand, this project enables a uniform comparison over several benchmark datasets leading to an in-depth understanding of previous learning-to-rank methods. On the other hand, this project makes it easy to develop and incorporate newly proposed models, so as to expand the territory of techniques on learning-to-rank.Key Features:A number of representative learning-to-rank models, including not only the traditional optimization framework via empirical risk minimization but also the adversarial optimization frameworkSupports widely used benchmark datasets. Meanwhile, random masking of the ground-truth labels with a specified ratio is also supportedSupports different metrics, such as Precision, MAP, nDCG and nERRHighly configurable functionalities for fine-tuning hyper-parameters, e.g., grid-search over hyper-parameters of a specific modelProvides easy-to-use APIs for developing a new learning-to-rank modelPlease refer to thedocumentation sitefor more details.
Package: ptray
pytrayA Python module to interact with the Windows tray.InstallationFrom PyPIpip3installptrayFrom GitHubpip3installgit+https://github.com/donno2048/pytrayUsageHere is a simple example:importpytray,time,ospytray.create_tray_element()pytray.create_menu(("Exit",1),("Close",2))pytray.add_icon()i=0whileTrue:start_time=time.time()whiletime.time()-start_time<0.3:click=pytray.what_is_clicked()ifclick==1:exit()elifclick==2:pytray.hide_menu()elifclick==None:passtime.sleep(0.1)# make sure only one click is registeredpytray.set_icon(os.path.abspath(f"cat\\{i}.ico"))# requires the cat directory from this repo (by Kyome22)i=(i+1)%5
Package: ptrc
ptrcDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-nptrc--fileenv.ymlInstallpipinstall-e.# install from pypipipinstallptrcnbdev# activate conda environment$condaactivateptrc# make sure the ptrc package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the ptrc package$nbdev_preparePublishing# publish to pypi$nbdev_pypi# publish to conda$nbdev_conda--build_args'-c conda-forge'$nbdev_conda--mambabuild--build_args'-c conda-forge -c dsm-72'UsageInstallationInstall latest from the GitHubrepository:$pipinstallgit+https://github.com/dsm-72/ptrc.gitor fromconda$condainstall-cdsm-72ptrcor frompypi$pipinstallptrcDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.PyTorch Documentation:TorchDataHow to Package PyTorch
Modelstorch.monitor.Eventtorchvisiontorchvision.Datasets.VisionDatasettorchvision.utils.flow_to_imagePyTorch Models to Consider:Diffusion Video
AutoEncodersConvLSTM
AutoEncoderRecurrent All Pairs Field Transforms for Optical
FlowOptical Flow Toolbox
(mmflow)torchvision.models.optical_flow.raft
Package: ptr-claim
ptr-claimScrape the Tamriel Rebuilt and Project Tamriel websites and visualize claim progress.
Currently only works with interior claims on the Tamriel Rebuilt website claims browser.InstallationMake sure you have python version 3.7 or higher installed and that python is
added to your PATH (i.e., accessible from the command line). For Windows,see instructions here.Install the Tesseract OCR (optical character recognition) engine -- see theinstall instructions.
On Windows, grab the binary fromthe UB Mannheim site).On the command line, typepip install ptr-claim. This should download the program
and all required dependencies.On Windows, you will additionally need to installMicrosoft C++ Build Tools.UsageOpen the command line and typeptr-claim. You will be asked for your Tamriel Rebuilt
website login and password. This is only needed to populate the claimant and reviewer
fields. If those aren't needed, you can enter empty values. The end result will, by
default, be output as an HTML file in the working directory. For more options, typeptr-claim -h:Visualize interior claims on the Tamriel Rebuilt claims browser.

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     Claims browser page containing claims to be scraped. Defaults to 'https://www.tamriel-rebuilt.org/claims/interiors'.
  -o OUTPUT, --output OUTPUT
                        Output image filename. If the file extension is .html, the image will be interactive. Extensions like .png, .jpeg, .webp, .svg, or .pdf will result in a static image. Defaults to 'TR_int_claims.html'.
  -s SCRAPEFILE, --scrapefile SCRAPEFILE
                        JSON file to store scraping outputs in. Defaults to 'interiors.json'
  -w WIDTH, --width WIDTH
                        Output image width (px). Defaults to 1000.
  -t TITLE, --title TITLE
                        Title to be printed on the output. Defaults to 'Tamriel Rebuilt interior claims {date.today()}'.
  -M METHODS, --methods METHODS
                        How to locate missing claim coordinates. 'i' uses optical character recognition on claim images. 't' uses parts of the title to guess the coordinates. 'u' uses known URLs. 'e' fixes Embers of Empire coordinates. You can specify
                        several flags. Defaults to "itue".
Package: ptrcreate
Date:2013-10-11 09:51tags:Rackspace, PTR, DNS, CloudServer, NextGen. cloudcategory:*nixThis is a simple script that will create a PTR record for a Next Generation Cloud Server.The function of the script is such that, you simply need to enter your details and all of the rest is done automagically.Use Case :Create a PTR (Reverse DNS) RecordUpdate a PTR (Reverse DNS) RecordApplication :The Script is run with a series of command line arguments.Function :The script will query the Rackspace API for your cloud server, build a PTR record from the provided data and set the record for you.Example Command:./ptrcreate.py-U<UserName>-A<Password>-R<Region>-N<ServerName>-D<DomainName>Please runptrcreate.py--helpfor all available options.ptrcreate.pycreateyouaNewPTRrecordforyourcloudserver.optionalarguments:-h,--helpshowthishelpmessageandexit-D,--domain-nameDomainNameforthePTRRecord--ttlTTLofDNSRecord-N,--server-nameThenameofyourserver-I,--server-idTheIDofyourserver-U,--userYourRackspaceUsername-P,--passwordYourRackspacePassword-A,--apikeyYourRackspaceAPIKey-T,--tokenYourRackspaceToken-R,--regionRegions:['dfw','ord','iad','lon','syd']--auth-urlOptionalOverridefortheAuthenticationURL--auth-versionOptionalRackspaceAuthenticationVersion--debugEnableDebugMode--no-confirmSkipRecordConfirmation.-V,--versionshowprogram'sversionnumberandexitGPLv3LicensedPTRCreateVersion2.0.You can also export your Rackspace Credentials into environment variables which can help in automating the creation of PTR Records.Here are All of the Available Environment Variables:OS_USERNAME="Your Rackspace Username"OS_PASSWORD="Your Rackspace Password"OS_APIKEY="Your Rackspace API Key"OS_TOKEN="Your Rackspace Token"OS_REGION="Your Rackspace Region"OS_AUTH_URL="Optional Override for the Authentication URL"OS_AUTH_VERSION="Optional Rackspace Authentication Version"Want to see the Application in Action? Check outhttp://asciinema.org/a/5877License:Copyright [2013] [Kevin Carter]This software has no warranty, it is provided ‘as is’. It is your
responsibility to validate the behavior of the routines and its accuracy
using the code provided. Consult the GNU General Public license for further
details (see GNU General Public License).http://www.gnu.org/licenses/gpl.html
Package: ptree
ptreePairTreeis a technique from the digital preservation community for
safely mapping identifiers to file paths, and back again. It can be helpful
when writing resources to disk so that they can be identified later on by
merely looking at the file system layout.The ptree module has two functions to help you work with PairTree identifiers
and file paths:id2ptreeandptree2id.>>>importptree>>>ptree.id2ptree("info:lccn/12345678")'/in/fo/+l/cc/n=/12/34/56/78/'>>>ptree.ptree2id('/in/fo/+l/cc/n=/12/34/56/78/')u'info:lccn/12345678'Thanksptree draws fromBen O'Steen'sPairTree Python module, which provides a
lot more functionality for storing bitstreams on disk. For better or worse
ptree focuses solely on the identifier/path mapping, and leaves IO operations
up to you. The unit tests were shamelessly stolen from John Kunze'sFile::PairTree.LicenseCC0
Package: p-tree
# p-tree 0.1.14## About```This package is used to count the CFUs in petri dishes.In order to use it you must provide it with a shared dropbox link to a directory containing the images in a png format.Only images must be contained in the directory no subdirectories.```### Installation```This package requires python==3.6to install type:pip install p-treeorpip install --upgrade p-tree```### Example Script```pythonfrom p_tree.run import CountColoniesif __name__ == '__main__':url = 'https://www.dropbox.com/sh/vq4wb9fd9k1fz49/AADLR3IIgj8lMWs8m9QLzdPoa?dl=1'cc = CountColonies(url=url)dfs = cc.main()print(dfs)```# IMPORTANT (for now)At the end of your dropbox-link it says **?dl=0**. change it to **?dl=1**.# TODO1. Provide rotate angle option and number of rotations.2. Accept directory as input and not only dropbox shared link.3. Save DataFrames to csv.4. Output analytics such as bell curves (mean and std) for all petries.
Package: ptrender
Conveniences for rendering text files from pyratemp templates and json or yaml var filesSeepyratempfor template syntax.ptrenderptrender 0.0.3

Use json or yaml var_files to render template_file to an adjacent
file with the same name but the extension stripped

Usage:
    ptrender [SWITCHES] template_file var_files...

Meta-switches:
    -h, --help         Prints this help message and quits
    --help-all         Prints help messages of all sub-commands and quits
    -v, --version      Prints the program's version and quits

Switches:
    -f, --force        Overwrite any existing destination filevwritevwrite 0.0.3

Use json or yaml vars files to render each template file found recursively
under the working folder, to an adjacent file with the same name but the
extension stripped, overriding any vars in ./vars.json in the following
order:

    <root_path>/vars.json,
    <root_path>/vars.yml,
    <root_path>/vars.yaml,
    <template.parent>/vars.json,
    <template.parent>/vars.yml,
    <template.parent>/vars.yaml

Later entries override earlier ones.

Usage:
    vwrite [SWITCHES] [root_path=<CWD>]

Meta-switches:
    -h, --help                        Prints this help message and quits
    --help-all                        Prints help messages of all sub-commands and quits
    -v, --version                     Prints the program's version and quits

Switches:
    -f, --force                       Overwrite any existing destination file
    -n, --vars-name VALUE:str         Filename (excluding extension) for each vars file; the default is vars
    -t, --template-ext VALUE:str      Filename extension for templates; the default is tInstallationpipinstallptrenderFor yaml support:pipinstall'ptrender[yaml]'