Saravanan666/pypi-org huggingface dataset:
Package: pta
Probabilistic Thermodynamic Analysis of metabolic networks.Probabilistic Thermodynamic Analysis (PTA) is a framework for the exploration of
the thermodynamic properties of a metabolic network. In PTA, we consider thesteady-state thermodynamic spaceof a network, that is, the space of standard reaction
energies and metabolite concentrations that are compatible with steady state
flux constraints. The uncertainty of the variables in the thermodynamic space is
modeled with a probability distribution, allowing analysis with optimization and
sampling approaches:Probabilistic Metabolic Optimization (PMO)aims at finding the most probable
values of reaction energies and metabolite concentrations that are compatible
with the steady state constrain. This method is particularly useful to identify
features of the network that are thermodynamically unrealistic. For example, PMO
can identify substrate channeling, incorrect cofactors or inaccurate
directionalities.Thermodynamic and Flux Sampling (TFS)allows to sample the
thermodynamic and flux spaces of a network. The method provides estimates of
metabolite concentrations, reactions directions, and flux distributions.Installation and usagePlease see the onlinedocumentation.Cite usIf you use PTA in a scientific publication, please cite our paper:Gollub, M.G., Kaltenbach, H.M., Stelling, J., 2021. "Probabilistic Thermodynamic
Analysis of Metabolic Networks".Bioinformatics. -DOI
Package: ptable2
ptable2 is a simple Python library designed to make it quick and easy to
represent tabular data in visually appealing ASCII tables, originally
forked fromPTable.InstallationAs ptable2 is a fork of PrettyTable, and compatible with all its APIs,
so ptable2 is usage is the same as PrettyTable, and the installation
would cover on the original PrettyTable.As always, you can install ptable2 in 3 ways.Via pip (recommend):pip install ptable2From source:python setup.py installQuick startptable2 supports two kinds of usage:As a libraryptable2 library API is almost as PrettyTable, you can import the same API fromprettytablelibrary:fromprettytableimportPrettyTablex=PrettyTable()A better hosted document is hosted onReadTheDocument.As command-line toolThis is an original function of ptable2, can be used asptablecommand:ptable--csvsomefile.csvor a Unix style pipe:catsomefile.csv|ptableWill both print a ASCII table in terminal.Relative linksSource Code (GitHub)RTFDPyPIPrettyTable
Package: ptadapter
ptadapterptadapteris a Python 3
package that interfaces with Pluggable Transports.Pluggable Transports (PT) are originally created forToras a modular,
interchangeable (pluggable) method of tunneling and obfuscating
network traffic (transport). This design makes PTs useful not only for
Tor, but many other use cases where traffic obfuscation is desired.
Learn more about Pluggable Transports at the dedicated website,https://www.pluggabletransports.info/This package implements Version 1 of the Pluggable Transport
specifications (relevant specs can be found in thespecificationsdirectory). Version 2 of the specs is in development: refer to the
website linked above for progress.(This package also implements Tor's Extended ORPort protocol, which
can be optionally used to receive server connections from PTs.)This package REQUIRES Python 3.7 or higher.It has no 3rd-party
dependencies.What's IncludedThis package implements several Python classes that execute and
communicate with a PT subprocess, allowing connections to be made
through the PT as a client, or received as a server.
The code is built on top ofasyncio, and uses the familiarStreamReaderandStreamWriterfor connections.Also included is a ready-made tool that can run PTs as a standalone
tunnel. No coding is necessary to use this.What's RequiredPython 3.7 or above.The Pluggable Transport to be used, as an executable program. This
may be installed from the repository, built from source, extracted
from the Tor Browser Bundle, etc.How to get this packageThis package is now uploaded to PyPI, so install it the usual way:pip install ptadapterIf you don't want to install, you could also
clone this repository or download a source package, and put theptadapterdirectory in the working directory or somewhere in your
PYTHONPATH.How to use PTs in you own Python programStart with theDeveloper Guidepage in theDocumentation.How to create a standalone PT tunnelIf the package is installed viapip, an entry script calledptadapteris created, so run the command below to see usage:ptadapter --helpOtherwise, run:python -m ptadapter --helpA configuration file should be provided to the script.
Theconsole script guide pagein theDocumentationincludes
an example config file with detailed comments; the example config file
can also be found in this repository.
Package: ptahcrowd
You can read theptah_crowddocumentation on-line athttp://ptahcrowd.readthedocs.org.This packages provides a nearly-complete user registration and management
facility.  It is similar tocartouchein feature set.  Theptah_crowdpackage contains:User registration formsReset password functionalityAbility to validate & suspend accountsUser modelUser properties models/APIPtah Management Plugin so you can manipulate API in web interfaceptah_crowdis built on-top of Pyramid and Ptah.  It provides quite a few
features and is generic enough to “plug into” instead of build from scratch.
It is a framework and not library.ptah_crowd`does something
out-of-the-box and is meant to be extended.It is worthwhile to understand thatptah_crowdisnota wsgi application.
You need an application such as one of the applications in the examples github
repository,https://github.com/ptahproject/examplesQuick startIf you do not have an application, lets use examples/ptah_models.Installptah_modelsinto your virtualenv:$ cd examples/ptah_models
$ /path/to/virtualenv/bin/python setup.py developThen installptah_crowdinto your virtualenv:$ cd ptah_crowd
$ /path/to/virtualenv/bin/python setup.py developNow all that is remaining is telling the application to useptah_crowd.  This is really easy.  Two ways.#1 - Edit the .ini File:$ cd examples/ptah_models
$ edit settings.iniAddptah_crowdto the end of thepyramid.includesline:pyramid.includes = ptah pyramid_debugtoolbar ptah_crowd#2 - Add it to the WSGI app:$ cd examples/ptah_models/ptah_models
$ edit app.pyBelow theconfig.include('ptah')statment you can add:config.include('ptah_crowd')Then start pyramid:$ /path/to/virtualenv/bin/pserve settings.iniTo learn more about extending Pyramid you can read more in the documentation.http://readthedocs.org/docs/pyramid/en/latest/narr/extending.htmlCHANGES0.2 (2012-11-08)Added Groups.Added user default roles.Added HTTPForbidden view.Addedadminuser auto creation.0.1 (2011-12-22)Initial release
Package: ptah_crowd
This packages provides a nearly-complete user registration and management
facility.  It is similar tocartouchein feature set.  Theptah_crowdpackage contains:User registration formsReset password functionalityAbility to validate & suspend accountsUser modelUser properties models/APIPtah Management Plugin so you can manipulate API in web interfaceptah_crowdis built on-top of Pyramid and Ptah.  It provides quite a few
features and is generic enough to “plug into” instead of build from scratch.
It is a framework and not library.ptah_crowd`does something
out-of-the-box and is meant to be extended.It is worthwhile to understand thatptah_crowdisnota wsgi application.
You need an application such as one of the applications in the examples github
repository,https://github.com/ptahproject/examplesQuick startIf you do not have an application, lets use examples/ptah_models.Installptah_modelsinto your virtualenv:$ cd examples/ptah_models
$ /path/to/virtualenv/bin/python setup.py developThen installptah_crowdinto your virtualenv:$ cd ptah_crowd
$ /path/to/virtualenv/bin/python setup.py developNow all that is remaining is telling the application to useptah_crowd.  This is really easy.  Two ways.#1 - Edit the .ini File:$ cd examples/ptah_models
$ edit settings.iniAddptah_crowdto the end of thepyramid.includesline:pyramid.includes = ptah pyramid_debugtoolbar ptah_crowd#2 - Add it to the WSGI app:$ cd examples/ptah_models/ptah_models
$ edit app.pyBelow theconfig.include('ptah')statment you can add:config.include('ptah_crowd')Then start pyramid:$ /path/to/virtualenv/bin/pserve settings.iniTo learn more about extending Pyramid you can read more in the documentation.http://readthedocs.org/docs/pyramid/en/latest/narr/extending.htmlCHANGES0.1 (2011-12-22)Initial release
Package: ptal-api
ptal-apiPython adapter for Talisman-based appHow to create trivial adapter:graphql_url = 'https://demo.talisman.ispras.ru/graphql' # or another talisman-based app
auth_url = 'https://demo.talisman.ispras.ru/auth/'
realm = 'demo'
client_id = 'web-ui'
client_secret = '<some-secret>'

gql_client = KeycloakAwareGQLClient(
    graphql_url, 10000, 5,
    auth_url=auth_url,
    realm=realm, client_id=client_id, user='admin', pwd='admin',
    client_secret=client_secret
).__enter__()

adapter = TalismanAPIAdapter(gql_client, {})

c = adapter.get_concept('ОК-123456')
Package: ptandroid
PTANDROIDAPK/AXML Data Extractorptandroid is a tool for extracting information from android application packages or android manifest files.Installationpip install ptandroidAdd 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 examplesptandroid -f app.apk                           # Dump information from apk
ptandroid -f AndroidManifest.xml               # Dump information from AndroidManifest
ptandroid -f AndroidManifest.xml -a -p -r      # Print activities, providers, receiversOptions-f   --file          <file>  Load File: app.apk, AndroidManifest.xml [.apk, .xml]
   -m   --manifest              Print axml content
   -i   --info                  Print basic file info
   -c   --components            Print all components information
   -a   --activities            Print activities info
   -p   --providers             Print providers info
   -r   --receivers             Print receivers info
   -s   --services              Print services info
   -cu  --content-urls          Print content urls [apk file required]
   -hu  --https-urls            Print http(s) urls [apk file required]
   -j   --json                  Enable JSON output
   -v   --version               Show script version and exit
   -h   --help                  Show this help message and exitUsage examplesptandroid -f app.apk
   ptandroid -f AndroidManifest.xmlDependencies- androguard
- defusedxml
- ptlibsWe useandroguardandapktoolfor parsing APKs. JRE is required.Version History- 0.0.1 - 0.0.4
    - Alpha releasesLicenceCopyright (c) 2020 HACKER Consulting s.r.o.ptandroid 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.ptandroid 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 ptandroid. 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: ptask
Painless ProjectPainless project is a simple cross-platform command line tool written in Python
for a build task configurations & managementTable of ContentsPainless ProjectGetting StartedInstallationSetup your configurationsGetting StartedInstallationInstall via pypi:pipinstallprojectNow you can use the cli tool to manage your build, here is an overview of it:usage: project build_type [options]

A cli tool for manage and config project build

positional arguments:
  build_type            set the build type based on your task setup

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -i, --info            print the current build's information
  -f FILE, --file FILE  custom file task configuration
  -p PATH, --path PATH  custom build path for the project

Happy building your project! :)Setup your configurationsThe aim of this tool is not a replacement for any build system out there. It's
an addon to them, so you can manage to setup your builds on multiple OS.The tool is looking for one of the file for checking the command:.projecttasktasks.ini.config/tasks.iniIf you don't like the file name or location, you can specify your own file tasks
with-fflag.And here is a task file example:[win32]init=cmake -B build -G "MinGW Makefiles"build=cmake --build buildclean=rmdir /S/Q build && mkdir buildrun=bin\main.exe[macos]init=cmake -B build -H.build=cmake --build buildclean=rm -r build && mkdir buildrun=bin/mainThen you can run theproject initcommand, the tool will look into the right
command to run based on your OS.
Package: ptaxfr
PTAXFRDNS zone transfer testing toolptaxfr is a tool that tests domains for DNS zone transfer.This tool utilizes threading for fast parallel domain testing.Installationpip install ptaxfrAdd 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 examplesptaxfr -d example.com
ptaxfr -d example.com -pr
ptaxfr -d example.com -ps
ptaxfr -d example.com -ps -s
ptaxfr -d example1.com example2.com example3.com
ptaxfr -f domain_list.txt
ptaxfr -f domain_list.txt -V
ptaxfr -f domain_list.txt -V -s -t 10000Options-d   --domain            <domain>   Test domain
-f   --file              <file>     Test domains from file
-pr  --print-records                Print full DNS records
-ps  --print-subdomains             Print subdomains only
-u   --unique                       Print unique records only
-V   --vulnerable-only              Print only vulnerable domains
-s   --silent                       Silent mode (show result only)
-t   --threads           <threads>  Number of threads (default 20)
-v   --version                      Show script version and exit
-h   --help                         Show this help message and exit
-j   --json                         Output in JSON formatDependenciesdnspython
ptlibsVersion History1.0.0
    - Better exception handling
    - Updated for ptlibs v1.0.0
0.0.8
    - Code refactorization and bug fixes
    - Output when printing records now aligns correctly
    - Added additional arg checks for correct business logic
0.0.6 - 0.0.7
    - NS queries now use UDP protocol
0.0.5
    - Fixed double newline when using -V parameter
0.0.4
    - Replaced underscores for dashes in arguments
0.0.3
    - Added unique print argument
0.0.1 - 0.0.2
    - Alpha releasesLicenseCopyright (c) 2023 Penterep Security s.r.o.ptaxfr 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.ptaxfr 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 ptaxfr.  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: ptb
ptb aims to enhance the default python traceback. ptb speeds up
debugging process byTaking away unwanted frames.Bringing more context & relevant information.DemoThe default Python traceback looks like thisptb traceback looks like thisInstallRecomended way is to install it using pip.pip install ptbYou can also install using easy_installeasy_install ptbYou can also install from git repogit clone https://github.com/ChillarAnand/ptb.git
cd ptb/
python setup.py installUsageJust add this line at the top of your scriptimport ptb; ptb.enable()and run your scriptpython my_script.pyFeaturesColored TracebackFunction callsFilter framesFiltering frames from your project.import ptb; ptb.enable(path='/path/to/project')Elastic contextModify context according to your needs.import ptb; ptb.enable(context=5)Valuable ObjectsLocals, BuiltinsGet locals & builtins for all frames.import ptb; ptb.enable(locals=True, builtins=True)
Package: ptb-firebase-persistence
Firebase Persistence forpython-telegram-botThis is an implementation of python-telegram-botBasePersistenceclass that usesGoogle Firebaseas persistence back-end.
This has a very nice advantage of being able to look at youruser_data,chat_data,bot_dataandconvesationsreal-time using the firebase web app.InstallationThe library obviously requires (but does not install) python-telegram-bot. It also requiresand installsofficeial library foor Google Firebase:firebase-adminpipinstallptb-firebase-persistenceUsageBefore you start: obtain credentials from firebaseFirst of all you need to obtain firebase credentials, that look like this:{"type":"service_account","project_id":"YOUR_ID","private_key_id":"YOUR_PRIVATE_KEY","private_key":"-----BEGIN PRIVATE KEY-----\nMII...EwQ=\n-----END PRIVATE KEY-----\n","client_email":"firebase-adminsdk-SOME_STRING@SOME_DOMAIN.iam.gserviceaccount.com","client_id":"11743776666698009","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_x509_cert_url":"https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-SOMES_STRING.iam.gserviceaccount.com"}and the firebase database url that looks like this, something likehttps://YOUR_APP.firebaseio.comInstantiationFrom environment variables (recommended)Store the database URL in an environment variableFIREBASE_URLand the config as a json string in an environment variableFIREBASE_CREDENTIALS.After that instantiation is as easy as:fromptb_firebase_persistenceimportFirebasePersistencefromtelegram.extimportUpdatermy_persistence=FirebasePersistence.from_environment()updater:Updater=Updater('BOT_TOKEN',persistence=my_persistence,use_context=True,)Direct instantiationYou can also just pass the firebase credentials as URL as simple init params:fromptb_firebase_persistenceimportFirebasePersistencefromtelegram.extimportUpdatermy_persistence=FirebasePersistence(database_url='YOUR_DATABASE_URL',credentials='YOUR_CREDENTIALS_DICT')updater:Updater=Updater('BOT_TOKEN',persistence=my_persistence,use_context=True,)That's it! You can now watch your data change live on Firebase.
Package: ptb-menu-pagination
python telegram bot menu paginationDescriptionMakes a google style pagination line for a list of items.In other words it builds a menu for navigation if you have
a lot of search results or whatever list of anythingInstallationpip install ptb-menu-navigationor if you are working with source code and use Poetry tool:make installUsagefrompaginatorimportget_menuUseget_menufunction to create a line of pagesExample:frompaginatorimportget_menufromdataclassesimportdataclass# Define initial menu settings in the dataclass.@dataclassclassMenu:items_per_page:int=10pages_per_line:int=3navigation_signature:str='±'page_label:str=' p. '# Add the initial call of get_menudefhandling_input(update,context):# ...# On first invocationnavigation=get_menu(total_items=len(search_results),current_page=1,menu_settings=Menu)# ...# Add a callback to handle a page switchingdefnavigate(update,context):# ...navigation=get_menu(total_items=len(search_results),current_page=int(current_page),menu_settings=Menu)# ...wheresearch_resultsis a list of strings andcurrent_pageis a number extracted from acallback_data.Seeexamples/search_bot.pyDemo bot launchCreate a.envfile with aTOKENvariable
inside of an/examplesfor launching
thedemobot.eg:TOKEN=<YOUR_TELEGRAM_BOT_TOKEN_FROM_BOT_FATHER>You may also provide some additional menu values in the same.envfile:ITEMS_PER_PAGE=1
PAGES_PER_LINE=1
NAVIGATION_SIGNATURE="±"
PAGE_LABEL=" p. "
Package: ptb-pagination
ptb-paginationPython inline keyboard pagination for Telegram Bot API.Provide an easy way to create number pagination withTelegram Inline Keyboardsforpython-telegram-bot.This project is very based onpython-telegram-bot-pagination, thanksksinn.The main difference it's supposed to only work with thepython-telegram-botlibrary and provide full support toArbitrary callback_data.Installationpipinstallptb-paginationUsagefromptb_paginationimportInlineKeyboardPaginatorpaginator=InlineKeyboardPaginator(page_count,current_page=page,data_pattern='page#{page}')bot.send_message(chat_id,text,reply_markup=paginator.markup,)
Package: ptbtest
ptbtesta testsuite forPython telegram botThis library is meant for people wanting to write unittests for their
python-telegram-bot driven bots. The following things make this library
attractive to create unittestsMockbot - A fake bot that does not contact telegram serversWorks with the updater from telegram.extGeneratorclasses to easily create Users, Chats and Updates.Read thedocumentationfor further reading and check out the
examples.
Package: ptbtok
Penn Treebank tokenizerThis is a simple fork of the famous Penn Treebank tokenizer. It is forked fromDetectorMorseviaNLTK.It is appropriate for English,but not other languages.It is appropriate when applied one sentence at a time,but should not be
applied to paragraphs or documents.Unlike the NLTK equivalent, it has no (library or data) dependencies except the
built-inre. Unlike the NLTK
equivalent, it is nothostilely
polymorphic.
Package: ptb-unittest
ptb unittesta testsuite forPython telegram botNote:This is a derivative work of the originalptbtestThis library is for people wanting to write unittests for theirpython-telegram-botdriven bots. The following things make this
library attractive to create unittests*Mockbot- A fake bot that
does not contact telegram servers* Works with theUpdaterfromtelegram.ext*Generatorclasses to easily createUsers,ChatsandUpdatesobjects.Read thedocumentationfor further reading and check out the examples.