Saravanan666/pypi-org huggingface dataset:
Package: pttagger
pttagger is a simple PyTorch-based tagger which has the following features:stacked bi-directional RNN (GRU or LSTM)variable-sized mini-batchesmultiple inputsQuick StartInstallationRun this command in your terminal:$pipinstallpttaggerPre-processingSuppose that you have the following examples of named entity recognition:Joe/B-PER Smith/I-PER goes/O to/O Japan/B-LOC ./OJane/B-PER Smith/I-PER belongs/O to/O Kyoto/B-ORG University/I-ORG ./O…First, give the examples to construct aDatasetobject like this:frompttagger.datasetimportDatasetexamples=[{'Xs':[['Joe','Doe','goes','to','Japan','.']],'Y':['B-PER','I-PER','O','O','B-LOC','O']},{'Xs':[['Jane','Doe','belongs','to','Kyoto','University','.']],'Y':['B-PER','I-PER','O','O','B-ORG','I-ORG','O']},...]dataset=Dataset(examples)You can also use multiple inputs as a value ofXs. In the following case,Xshas not only word information but also POS information:examples=[{'Xs':[['Joe','Doe','goes','to','Japan','.'],['NNP','NNP','VBZ','TO','NNP','.']],'Y':['B-PER','I-PER','O','O','B-LOC','O']},{'Xs':[['Jane','Doe','belongs','to','Kyoto','University','.'],['NNP','NNP','VBZ','TO','NNP','NNP','.']],'Y':['B-PER','I-PER','O','O','B-ORG','I-ORG','O']},...]dataset=Dataset(examples)Now,datasethas the following two indices:x_to_index: e.g.,[{'<PAD>':0,'<UNK>':1, 'Joe': 2, 'Doe': 3,...}]y_to_index: e.g.,{'<PAD>':0,'<UNK>':1,'B-PER':2,'I-PER':3,...}If you use multiple inputs,x_to_indexhas indices for each input.TrainingConstruct aModelobject and train it as follows:frompttagger.modelimportModelEMBEDDING_DIMS=[100]# if you use multiple inputs, set a dimension for each inputHIDDEN_DIMS=[10]# the same as abovex_set_sizes=[len(x_to_index)forx_to_indexindataset.x_to_index]y_set_size=len(dataset.y_to_index)model=Model(EMBEDDING_DIMS,HIDDEN_DIMS,x_set_sizes,y_set_size)model.train(dataset)You can also use the following parameters:use_lstm- IfTrue, uses LSTM. Default:False(uses GRU)num_layers- Number of recurrent layers. Default:1TestPredict tags for test examples like this:test_examples=[{'Xs':[['Richard','Roe','comes','to','America','.']],'Y':['B-PER','I-PER','O','O','B-LOC','O']}]test_dataset=Dataset(test_examples)results=model.test(dataset)
Package: ptt-article-parser
一個用來分析 PTT 文章的工具。Features根據文章標題或 .DIR 檔案，重新命名檔案名稱白金緩慢增加中InstallFrompypi:pip install ptt-article-parserUsagePTT Article Parser (PAP)

Usage:
  pap rename [--format=<format>] [--dir=<file>] <file>...
  pap rename [--format=<format>] [--dir=<file>] --interactive
  pap (--help | --version)

Options:
  -v --version          Show version.
  -h --help             Show this.
  -f --format=<format>  Set output format.
                        [default: [{board}] {title} [{author}] ({time:%Y%m%d%H%M%S}).ans]
  -d --dir=<file>       Read additional ".DIR" file. The tool always tries to
                        read the ".DIR" file under the parent folder of the
                        article. Use this option to read from other locations.
  -i --interactive      Use interactive mode, get file name from stdin.
  <file>                File path. If the file doesn't exists, pap will try to
                        parse it as glob pattern.For example:pap rename ./M.*Output screenshotChangelog0.6.0 (Jun 30, 2021)Bump dependencies.0.5.0 (Jun 12, 2018)Update dependencies.Fix: handle crlf.Refactor: ptt_article_parser.tools -> ptt_article_parser.renameDrop uao_decode.py, switch to uao.0.4.0 (Feb 19, 2018)Change: automatically find .DIR file.0.3.0 (Dec 5, 2017)Parse .DIR file, use the title by default.0.2.1 (May 14, 2016)Extract author from old_edits.Fix installing issue (maybe more?).0.2.0 (Apr 16, 2016)Change how glob pattern work.Fix same file name bug.Rewrite. Try matching best result.0.1.0 (Apr 15, 2016)First release.
Package: ptt-clk-mal
MALoPotatoClockIt's my first time to write a python package.OverviewA simple potato clock inspired by tomato clock.sadly, I don't have a potato, so I use a scheduled timer instead.It's a simple timer that helps you to focus on your work.A simple timerA simple CLIA simple notification (for Linux only)A simple GUIA simple notification for WindowsRecurring schedule with rests like tomato clockUsageInstallfrom PyPIpipinstallmal-potato-clockfrom releasepipinstallmal-potato-clock-<release>.tar.gzfrom source (using poetry only)gitclone<url>cdmal-potato-clock
poetryinstallRunRun the timerpttClk-t<time>-n<notificationintervals>-a<aimingthings>historypttClkhis-q<lastxdays>-g<aimgroup>settingYou should type below for more information.All commands above's help(-h) information are also available.pttClkset-hExamplepttClk-t25-n5-a"study"pttClkhis-q7-g"study"pttClk-s# show settingImages
Package: ptterm
ptterm======*A terminal emulator widget for prompt_toolkit applications*Features--------- Cross platform: Windows + Linux support.Applications using ptterm-------------------------- `pymux <https://github.com/jonathanslenders/pymux>`_: A terminal multiplexer,written in Python.Example-------Inserting the terminal into a prompt_toolkit application is as easy asimporting a `Terminal` and inserting it into the layout. You can pass a`done_callback` to get notified when the terminal process is done... code:: python#!/usr/bin/env pythonfrom prompt_toolkit.application import Applicationfrom prompt_toolkit.layout import Layoutfrom ptterm import Terminaldef main():def done():application.exit()application = Application(layout=Layout(container=Terminal(done_callback=done)),full_screen=True,)application.run()if __name__ == '__main__':main()Thanks------- Thanks to `pyte <https://github.com/selectel/pyte>`_: for implementing avt100 emulator.- Thanks to `winpty <https://github.com/rprichard/winpty`_: for providing a PTYlike interface for the Windows console.- Thank to `yawinpty` for creating a Winpty wrapper.
Package: ptthreads
PTTHREADSLibrary for easy threadingInstallationpip install ptthreadsHow to useimport ptthreads into your script, and call it's functions.Usage examples# Example of process items from listfromptthreadsimportptthreadsdefmy_function(item):print(item)returnitemmy_list=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]threads=20thread_obj=ptthreads.ptthreads()result=thread_obj.threads(my_list,my_function,threads)print(result)# Example of process items from text filefromptthreadsimportptthreadsdefmy_function(item):print(item)returnitemthreads=20thread_obj=ptthreads.ptthreads()try:withopen("dict.txt","r")asf:items=[i.strip()foriinf.readlines()]result=thread_obj.threads(items,my_function,threads)print(result)exceptExceptionase:exit(e)PrintlockTo avoid overlapping prints between threads, save output to printlock# Example of printlockfromptthreadsimportptthreadsdefmy_function(item):printlock=ptthreads.printlock()printlock.add_string_to_output(item)printlock.add_string_to_output("Some text")printlock.add_string_to_output("Some more text")printlock.lock_print_output()returnitemmy_list=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]threads=20thread_obj=ptthreads.ptthreads()result=thread_obj.threads(my_list,my_function,threads)Version History0.0.1Alpha releaseLicenseCopyright (c) 2020 HACKER Consulting s.r.o.ptthreads 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.ptthreads 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 ptthreads.  If not, seehttps://www.gnu.org/licenses/.
Package: ptt-mail-backup
一個用來備份 PTT 站內信的 CLI 工具。不會再因為站內信打包失敗而把信箱塞爆一整個禮拜。Features使用 SSH 連上 PTT，再一頁頁爬下載回來的檔案為 Big5-UAO 編碼支援自動換行、寬度大於 80 的文章支援上色、閃爍、雙色字Installation> NOTE: This package requires python 3.7+FromPYPI:pip install ptt-mail-backupUsage執行ptt-mail-backup...:usage: ptt-mail-backup [-h] [-u USER] [-p PASSWORD] [-d DEST] [-v]
                       [-f FILENAME_FORMAT] (-r START END | --all)

Backup PTT mail.

optional arguments:
  -h, --help            show this help message and exit
  -u USER, --user USER  username, otherwise prompt for the value.
  -p PASSWORD, --pass PASSWORD
                        password, otherwise prompt for the value.
  -d DEST, --dest DEST  save to dest. Default: '.'
  -v, --verbose         print verbose message.
  -f FILENAME_FORMAT, --filename-format FILENAME_FORMAT
                        filename format. Default: '{index}. [{board}] {title}
                        [{author}] ({time:%Y%m%d%H%M%S}).ans'
  -r START END, --range START END
                        specify a range (inclusive). Negative values and zeros
                        are allowed, they are treated as (last_index + value)
                        i.e. --range 0 0 would download the last mail. This
                        option could be used multiple times.
  --all                 download all或是python-mptt_mail_backup ...。範例下載所有信件到 2018-06-12 資料夾:ptt-mail-backup -d 2018-06-12 --all下載最新的十封信件:ptt-mail-backup -r -9 0從 CLI 傳入使用者名稱、密碼，並下載最舊的信件:ptt-mail-backup -u myusername -p mypassword -r 1 1LicenseThe distributed packageincludes a branch of pytewhich supports blinking text.pyteis licensed under LGPL v3 andptt_mail_backupitself is licensed under MIT.Changelog0.6.0 (Feb 28, 2024)Bump dependencies.Change: require python 3.7+.Fix: issues with wcwidth 0.2.13.0.5.0 (Feb 3, 2024)Bump dependencies.Fix: hang while refreshing screen.0.4.0 (Jun 30, 2021)Bump dependenciesFix: hang while fetching index0.3.0 (Aug 26, 2019)Breaking: stop relying on the footer information.Fix: unable to download articles including**sor**n.0.2.3 (Aug 21, 2019)Fix: handle login views.0.2.2 (Nov 18, 2018)Fix: Support Python 3.7.0.2.1 (Jul 25, 2018)Fix: handlemailbox is fullmessage.Fix: handleadd new board to favoritemessage.0.2.0 (Jun 22, 2018)The distributed package now includespytewith blinking text support.Add: a better way to get full title.Add: allow multiple--range.Fix: handle password error.Fix: handle article recovery screen.Fix: handle password attack alert screen.0.1.1 (Jun 12, 2018)Fix: missing deps.0.1.0 (Jun 12, 2018)First release.
Package: pttn
pttnDeveloper GuideSetup# create conda environment$mambaenvcreate-fenv.yml# update conda environment$mambaenvupdate-npttn--fileenv.ymlInstallpipinstall-e.# install from pypipipinstallpttnnbdev# activate conda environment$condaactivatepttn# make sure the pttn package is installed in development mode$pipinstall-e.# make changes under nbs/ directory# ...# compile to have changes apply to the pttn 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/pttn.gitor fromconda$condainstall-cdsm-72pttnor frompypi$pipinstallpttnDocumentationDocumentation can be found hosted on GitHubrepositorypages. Additionally you can find
package manager specific guidelines oncondaandpypirespectively.
Package: pttp
pttpA Python tracing profiler.Tracing profilers trace every function call in your Python program.Tracing profilers in Python are fairly trivial (mostly just callingsys.settrace()).pttp's notable feature is it calls your code, so you don't have to modify your source code.Installationpip install pttpUsage## Generate Python trace datapython -m pttp your_script.pypython -m pttp -m your_script## Upload 'your_script.speedscope.json' to https://speedscope.app to view the profile.Licensepttpis distributed under the terms of theMITlicense.
Package: pt-trainer
IntroductionThis package contains a Trainer class that streamlines the training of models and recording of results.
The Trainer class is designed in a modular way using Mixins.
This approach can be used to extend its capabilities beyond what it currently provides.
Additionally, the class makes use of an eventing pattern that allows users to register event handlers that will be executed at specified points in training.
The Trainer class can be found in trainer.py.
All of the Mixins are stored in mixins.py.
The module events.py contains the definitions of possible events and utils.py contains other miscellaneous code.Installationsimply install from PyPi usingpip install pt-trainerUsageInitialize a Trainer instance by passing a PyTorch model (inherited from nn.Module), PyTorch Dataloader instance, optimizer (PyTorch or apex) and a loss function that accepts the model prediction and targets and returns a loss tensor.
Alternatively, a Trainer can be created from a config file.
The config file should be another python file and contain the following variables:MODEL:        class of the modelDATASET:      class of the datasetLOSS:         class of the loss functionOPTIMIZER:    class of the optimizerLOGDIR:       path to the directory in which files generated by the trainer will be writtenmodel:        dict with kwargs for MODELdataset:      dict with kwargs for DATASETdataloader:   dict with kwargs for the dataloader that will wrap DATASETloss:         dict with kwargs for LOSSoptimizer:    dict with kwargs for OPTIMIZERtrainer:      dict with kwargs for the Trainer class, such as split_sampleOptionally the APEX variable and apex dict can be specified to wrap the OPTIMIZER.Once initialized, you can register event handlers using the method register_event_handler, specifying the handler and the event on which it will be called.
There are four possible events: before training, each step, each epoch and after training.Training is then executed using the train method and passing either n_epochs or n_steps.ExampleIn the folder titled 'examples' I have set up a simple case of training a feed-forward neural net on a portion of MNIST.
This examples illustrates how to setup the config and how to use the trainer. Try running dummy_training.py if you want
to train the model.
Package: ptu
pitupython 开源命令行P图工具。安装pipinstallpitu命令行使用方式缩放 zoompitu zoom <photo_path>  [width [height]]pituzoomphoto.jpg0.5
pituzoomphoto.jpg0600pituzoomphoto.jpg00300旋转 rotatepitu rotate <photo_path>  [color]piturotatephoto.jpg45piturotatephoto.jpg45green
piturotatephoto.jpg45'#ff0000'翻转(镜像) flippitu flip <photo_path> <x|y>pituflipphoto.jpgx
pituflipphoto.jpgy裁剪 cutpitu cut <photo_path> <x> <y> <width> <height>pitucutphoto.jpg100100200200灰度 graypitu gray <photo_path>pitugrayphoto.jpg文本 textpitu text <photo_path> <text> [x [y [font_size [color [pf|yh]]]]]pitutextphoto.jpg'我的P图工具'pitutextphoto.jpg'我的P图工具'300100pitutextphoto.jpg'我的P图工具'30010050pitutextphoto.jpg'我的P图工具'30010050'#f0f'pitutextphoto.jpg'我的P图工具'30010050bluepf
pitutextphoto.jpg'我的P图工具'30010050cyanyh拼图 pinpitu pin <x|y> <photo1_path photo2_path [photo3_path ... photon_path]> [diff]pitupinxzoom-photo.jpgrotate-photo.jpgflip-photo.jpgcut-photo.jpggray-photo.jpgtext-photo.jpg
pitupinyzoom-photo.jpgrotate-photo.jpgflip-photo.jpgcut-photo.jpggray-photo.jpgtext-photo.jpg

pitupinxzoom-photo.jpgrotate-photo.jpgflip-photo.jpgcut-photo.jpggray-photo.jpgtext-photo.jpgdiff
pitupinyzoom-photo.jpgrotate-photo.jpgflip-photo.jpgcut-photo.jpggray-photo.jpgtext-photo.jpgdiff头像 avatarpitu avatar <photo_path> [mode]pituavatarphoto.jpg
pituavatarphoto.jpgex封面 coverpitu cover <photo_path> [mode [ratio]]pitucoverphoto.jpg
pitucoverphoto.jpgex
pitucoverphoto.jpgce2.35
pitucoverphoto.jpgex'16:9'9宫格和任意网格 gridpitu grid <photo1_path photo2_path [photo3_path ... photon_path]>  \[':rows=行数 :cols=列数 :width=宽 :height=高 :gap=间距 :padding=边距 :color=背景色']pitugrid1.jpg2.jpg3.jpg4.jpg5.jpg6.jpg7.jpg8.jpg9.jpg

pitugrid1.jpg2.jpg3.jpg4.jpg':rows=2 :cols=2 :width=600 :height=300 :gap=10 :padding=20 :color=#555'编程：批量执行多个P图命令pitu -fpitu -f <program_file>省略 program_file 参数，默认执行文件pitu.txt中的P图命令, 如果执行其他文件，必须显式提供该参数。pitu-f
pitu-fother_pitu.txtcontent of filepitu.txt:zoom 1.jpg 0 0 300
rotate 2.jpg 45 #ff0000
flip 3.jpg y
cut 4.jpg 100 120 200 220
gray 5.jpg
text 6.jpg "hello world!" 300 100 50 #f00
pin x 7.jpg 8.jpg 9.jpg 10.jpg
pin y 7.jpg 8.jpg 9.jpg 10.jpg
avatar 11.jpg
avatar 11.jpg ex
cover 12.jpg ce 2.35
cover 12.jpg ex 16:9

text 1.jpeg "你好！ 我是 Python P图工具，我的英文名叫 pitu ！" 10 10 50 #f00
grid 1.jpeg 2.jpeg 3.jpeg 4.jpeg 5.jpeg 6.jpeg 7.jpeg 8.jpeg 9.jpeg ':rows=2 :cols=4 :width=940 :height=400 :gap=5 :padding=0 :color=#eee'
Package: ptulsconv
ptulsconvParse Pro Tools text exports and generate PDF reports, JSON output.Quick StartFor a quick overview of how to cue ADR withptulsconv, check out theQuickstart.InstallationThe easiest way to install on your site is to usepip:% pip3 install ptulsconvThis will install the necessary libraries on your host and gives you
command-line access to the tool through an entry-pointptulsconv. In a
terminal window typeptulsconv -hfor a list of available options.
Package: ptutils
This library provides oft-reused boilerplate functions and classes. This library is under construction.  Please see LICENSE.txt for licensing information.
For the moment theGitLab repositoryis private, but will be made available soon.UsageInstall with PIPInstall the package (or add it to yourrequirements.txtfile):pipinstallptutilsImport in PythonImport the library in python:fromloggingimportgetLoggerfromptutils.ioimportFilefromptutils.encodingimportpretty_jsonlogger=getLogger(__name__)f=File('/etc/docker/daemon.json')data=f.contenttext=pretty_json(data)logger.debug(text)
Package: ptvertmenu
ptvertmenuVertical menu widget for the excellentprompt-toolkit, with optional
fzf-inspired searchThis is a demo of the includedptvertmenu-manutility:Getting startedThe example below creates a menu that shows the contents of files and
directories as the cursor goes over them, with full mouse support:#!/usr/bin/env python3
"""
Look at files in the current directory
"""

import os
from typing import Optional, Any

import ptvertmenu
from prompt_toolkit import Application
from prompt_toolkit.key_binding import KeyBindings
from prompt_toolkit.key_binding.bindings.focus import focus_next
from prompt_toolkit.key_binding.key_processor import KeyPressEvent
from prompt_toolkit.layout.containers import VSplit
from prompt_toolkit.layout.layout import Layout
from prompt_toolkit.styles import Style
from prompt_toolkit.widgets import Frame, TextArea

E = KeyPressEvent


def showfile(contents: TextArea, item: Optional[tuple[str, Any]], index: int) -> None:
    assert item
    name = item[1]
    try:
        if os.path.isdir(name):
            contents.text = '\n'.join(os.listdir(name))
        else:
            with open(name, "r", encoding="utf-8", errors="replace") as fd:
                contents.text = fd.read()
    except Exception as exc:
        contents.text = f"Error: {exc}"


def main() -> None:
    files = [(f, f) for f in os.listdir(".")]
    contents = TextArea(text="", multiline=True, wrap_lines=True, read_only=True)
    menu = ptvertmenu.VertMenu(
        items=files,
        selected_handler=lambda item, index: showfile(contents, item, index),
    )
    root_container = VSplit(
        [
            Frame(title="Files", body=menu),
            Frame(title="Contents", body=contents),
        ]
    )
    layout = Layout(root_container)
    style = Style.from_dict({"vertmenu.selected": "reverse"})
    kb = KeyBindings()

    @kb.add("tab")
    def tab(event: E) -> None:
        focus_next(event)

    @kb.add("c-d")
    @kb.add("c-c")
    def close(event: E) -> None:
        app.exit()

    app: Application[None] = Application(
        layout=layout,
        full_screen=True,
        style=style,
        key_bindings=kb,
        mouse_support=True,
    )
    app.run()


if __name__ == "__main__":
    main()InstallationReleasesptvertmenu can be installed viapypi:pip install ptvertmenuFornixusers, it is also available as aflake.RepositoryWe can also clone the github repository and install ptvertmenu from it with:pip install .We can also install it for the current user only by running instead:pip install --user .Developmentptvertmenu uses the standard python3 infra. To develop and test the module:Clone the repository and go into the directory:git clone git@github.com:lpenz/ptvertmenu.git
cd ptvertmenuUsevenvto create a local virtual environment withpython -m venv venvActivate the environment by running the shell-specificactivatescript in./venv/bin/. For [fish], for instance, run:source ./venv/bin/activate.fishInstall ptvertmenu in "editable mode":pip install -e '.[test]'To run the tests:pytestOr, to run the tests with coverage:pytest --covFinally, to exit the environment and clean it up:deactivate
rm -rf venv
Package: ptvpy
A free and open-source command line tool and Python library forparticle tracking velocimetryenabling a flexible workflow with reproducible
and reliable results.
PtvPy depends on and extends functionality from the excellent librarytrackpyand
provides a periphery to visualize, analyze and export the data involved.It is developed at theChair of Measurement & Sensor System Techniqueat the TU
Dresden to facilitate data analysis.
It was eventually published in 2019 as free and open-source software.
Package: ptvulnsearcher
PTVULNSEARCHERCommon Vulnerabilities and Exposures Searcherptvulnsearcher is a tool for searching CVE (Common Vulnerabilities and Exposures). This tool allows searching using keywords or exact CVE.Installationpip install ptvulnsearcherAdd 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 examplesptvulnsearcher -cve CVE-2022-29885            
ptvulnsearcher -vn Redhat                     
ptvulnsearcher -pn linux                      
ptvulnsearcher -vn Redhat -pn linux           
ptvulnsearcher -vn Redhat -pn linux -pv 9.0   
ptvulnsearcher -pn linux -pv 9.0Options-cve  --cve              <CVE ID>            Search based on CVE
   -vn   --vendor_name      <vendor_name>       Search based on vendor
   -pn   --product_name     <product_name>      Search based on product
   -pv   --product_version  <product_version>   Search based on product version
   -j    --json                                 Output in JSON format
   -v    --version                              Show script version and exit
   -h    --help                                 Show this help message and exitDependenciesrequests
ptlibsVersion History0.0.2
    - New options
0.0.1
    - Alpha releasesLicenseCopyright (c) 2023 Penterep Security s.r.o.ptvulnsearcher 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.ptvulnsearcher 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 ptvulnsearcher. 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: ptwidget
PivotTable-WidgetThis package provides ipywidget wrapper around Pivot Table package fromhttps://pypi.org/project/pivottablejs/The wrapper is needed to render Pivot Table in webpage via servers like voila.The wrapper is written using Iframe widget provided by package -https://pypi.org/project/ipyiframe/.Build:python3 -m buildInstall:pip3 install --user ./dist/ptwidget-0.1.0-py3-none-any.whlExample:
import pandas as pdimport numpy as npfrom ptwidget import pivottable as wddf = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),columns=['a', 'b', 'c'])wd.ptwidget(df)