Saravanan666/pypi-org huggingface dataset:
Package: python-poppler
python-popplerpython-poppleris a Python binding to the poppler-cpp library. It allows to read, render, or modify PDF documents.
More specifically, it currently allows to:read an modify document meta data;list and read embedded documents;list the fonts used by the document;search or extract text on a given page of the document;render a page to a raw image;get info about transitions effects between the pages;read the table of contents of the document.Documentationhttps://cbrunet.github.io/python-poppler/Documentation is currently a work-in-progress. Here you will find information about
installation of the package, compilation from sources, and usage.Meanwhile, because it follows the interface ofpoppler-cpp, you can refer to thedocumentation of the C++ library.UsageThe package is installed aspoppler.Example:frompopplerimportload_from_file,PageRendererpdf_document=load_from_file("sample.pdf")page_1=pdf_document.create_page(0)page_1_text=page_1.text()renderer=PageRenderer()image=renderer.render_page(page_1)image_data=image.dataContributingContributions are welcome.Please use theGitHub issue trackerto report bugs or request features.
You can also submit Pull requests.Code is formatted usingblack.
Ensure that everything is well formatted. You can usetox -e lintto lint your code.Please ensure that all tests pass, by runningtox.Please provide unit tests covering the new feature, or proving
that a bug is corrected, when possible.
Package: python-poppler-qt4
A Python binding for libpoppler-qt4 that aims for completeness and for being
actively maintained.Created and currently maintained by Wilbert Berendsen <wbsoft@xs4all.nl>.Homepage:https://pypi.python.org/pypi/python-poppler-qt4/Usage:import popplerqt4
d = popplerqt4.Poppler.Document.load('file.pdf')DocumentationThe Python API closely follows the Poppler Qt4 C++ interface library API,
documented athttp://people.freedesktop.org/~aacid/docs/qt4/.Whereever the C++ API requiresQList,QSetorQLinkedList, any
Python sequence can be used.
API calls that returnQList,QSetorQLinkedListall return Python
lists.There are a few differences:Poppler::Document::getPdfVersion(int*major, int *minor)can simply be
called asd.getPdfVersion(), (wheredis aPoppler::Documentinstance); it will return a tuple of two integers (major, minor).Poppler::FontIterator(returned byPoppler::Document::newFontIterator)
is also a Python iterable (e.g. has__iter__()and__next__()methods).
So although you can use:it = document.newFontIterator()
while it.hasNext():
    fonts = it.next()  # list of FontInfo objects
    ...you can also use the more Pythonic:for fonts in document.newFontIterator():
    ...In addition to the Poppler namespace, there are two toplevel module
functions:popplerqt4.version()returns the version of thepython-poppler-qt4package as a
tuple of ints, e.g.(0, 18, 2).popplerqt4.poppler_version()returns the version of the linked Poppler-Qt4 library as a
tuple of ints, e.g.(0, 24, 5).This is determined at build time. If at build time the Poppler-Qt4
version could not be determined and was not specified, an empty
tuple might be returned.
Package: python-poppler-qt5
A Python binding for libpoppler-qt5 that aims for completeness and for being
actively maintained.Created and maintained by Wilbert Berendsen <wbsoft@xs4all.nl>, with help of
other contributors, especially where it concerns supporting many platforms and
build systems. Thanks for everyone’s help!Homepage:https://pypi.python.org/pypi/python-poppler-qt5/Usage:import popplerqt5
d = popplerqt5.Poppler.Document.load('file.pdf')DocumentationThe Python API closely follows the Poppler Qt5 C++ interface library API,
documented athttps://poppler.freedesktop.org/api/qt5/.Note: Releases of PyQt5 < 5.4 currently do not support the QtXml module,
all methods that use the QDomDocument, QDomElement and QDomNode types are
disabled. This concerns theDocument::toc()method and some constructors
and thestore()methods in theAnnotationsubclasses. So, using
PyQt5 >= 5.4 is recommended.Wherever the C++ API requiresQList,QSetorQLinkedList, any
Python sequence can be used. API calls that returnQList,QSetorQLinkedListall return Python lists.There are a few other differences:Poppler::Document::getPdfVersion(int*major, int *minor)can simply be
called asd.getPdfVersion(), (wheredis aPoppler::Documentinstance); it will return a tuple of two integers (major, minor).Poppler::Documenthas__len__and__getitem__methods,
corresponding tonumPages()andpage(int num).Poppler::FontIterator(returned byPoppler::Document::newFontIterator)
is also a Python iterable (e.g. has__iter__()and__next__()methods).
So although you can use:it = document.newFontIterator()
while it.hasNext():
    fonts = it.next()  # list of FontInfo objects
    ...you can also use the more Pythonic:for fonts in document.newFontIterator():
    ...In addition to the Poppler namespace, there are two toplevel module
functions:popplerqt5.version()returns the version of thepython-poppler-qt5package as a tuple of
ints, e.g.(0, 18, 2).popplerqt5.poppler_version()returns the version of the linked Poppler-Qt5 library as a tuple of ints,
e.g.(0, 24, 5).This is determined at build time. If at build time the Poppler-Qt5 version
could not be determined and was not specified, an empty tuple might be
returned.
Package: python-postgres-cdc
pypgcdcChange Data Capture (CDC) tool for PostgresThis project is a Python implementation of a Postgres CDC client.
It is intended to be used as a library for building CDC applications.
It is not intended to be used as a standalone application but there is a running example useful as a starting point.The main problem with CDC and Postgres in practice is that Postgres runs with a hot stand-by used for failover
in case of a primary node failure. The change is usually behind a DNS record so clients just re-connect and run fine.
The problem is that the replication slot is not copied over to the new primary node and the CDC client will either
fail to start (no slot) or create a slot but potentially miss some data (slot created after some data was written).You can, of course, create a new slot, do the initial sync where you copy over all the available data,
and then start replicating as usual. The problem is that the initial sync can take a long time if you have big tables.This library doesn't really solve the problem, but it provides a way to react to the failover event. The idea is
that you add triggers to the tables you want to replicate (published tables) and store the inserts/updates/deletes
in separate tables (log tables).
The initial sync when you start your CDC app can justselect *from the published tables and then tail the changes
on these tables. You will need some persistence to store the commits you have already processed so when a failover
event occurs, you can use the last processed commit to select any changes from the log tables and then carry on
tailing the published tables. This way you can avoid the initial sync and catch up with any pending changes faster.Env VarsPYPGCDC_DSN, default "postgres://postgres:postgrespw@localhost:5432/test" -- Postgres connection stringPYPGCDC_SLOT, default "test_slot" -- Postgres replication slot namePYPGCDC_PUBLICATION, default "test_publication" -- Postgres publication namePYPGCDC_LSN, default 0 -- Postgres LSN to start fromPYPGCDC_VERBOSE, default "False" -- A flag used to control print output of the example datastore.
Use one of ("1", "true", "yes") to enable more verbose output.ExampleThe library comes with an example which can be used to see how it works. The example requires a running
Postgres database with some tables and an existing publication. The example will create a replication slot
if it doesn't exist and start tailing the changes. The example will print the changes to stdout.Once you finish with the example, remember to drop the replication slot. Leaving an unused replication slot
is dangerous as the WAL files used for replication might not be removed, and you can run out of disk space
(not an issue on your local computer but quite a problem on your production servers...).
Package: python-postman
Python Postmanpypostmanis a command-line interface that allows toautomatemultiple api calls from postman collections, additionally it also allow you tocompressandsavethe response to a local directory or to an AWS S3 bucket.
Thereby allowing you to manage your api calls using postman, thenautomateandprocesstheir response using python.Example:from pypostman.postman import Postman
from pypostman.modules.http import Request

postman = Postman()

collections_dir = "../collections"
collections = postman._get_collections(dir=collections_dir)
pokeapi_collection = postman._get_collection(name="PokeAPI", collections=collections)
pokeapi_requests = postman._get_requests(collection=pokeapi_collection)

def pokemon(self, **kwargs):
    # Make an API request.
    # The request name should match the Postman request name.
    name = "/pokemon"
    pokemon = postman._get_request(name=name, requests=pokeapi_requests)
    prepared_request: Request = Request(request=pokemon)
    prepared_request.set_path_vars(kwargs)
    prepared_request.set_params(kwargs)
    response = prepared_request.send
    return responseWhat is Included?Thepypostmansource code.collectionsCoinmarketcap.postman_collection.jsonPokeAPI.postman_collection.jsonmodelscoinmarketcap_example.pypokeapi_example.pyIncluded Modulesfile.pyhttp.pylogger.pyInstallationPython >= 3.8Pypi Test:pip install -i https://test.pypi.org/simple/ python-postmanPypi (Not implemented Yet):pip install python-postmanHow to Use ItSee examples.
Package: python-postmark-inbound
Postmark Inbound Hook [![Build Status](https://travis-ci.org/jpadilla/postmark-inbound-python.png?branch=master)](https://travis-ci.org/jpadilla/postmark-inbound-python)=====================This is a simple API wrapper for [Postmark Inbound Hook](http://developer.postmarkapp.com/developer-inbound.html)in Python inspired by [jjaffeux](https://github.com/jjaffeux/postmark-inbound-php).## InstallUsing Github:```git clone git@github.com:jpadilla/postmark-inbound-python.git```Using pip:```pip install python-postmark-inbound```Using easy_install:```easy_install python-postmark-inbound```Usage-----``` pythonfrom postmark_inbound import PostmarkInbound# load jsonjson_data = open('./tests/fixtures/valid_http_post.json').read()inbound = PostmarkInbound(json=json_data)# contentinbound.subject()inbound.sender()inbound.to()inbound.bcc()inbound.tag()inbound.message_id()inbound.mailbox_hash()inbound.reply_to()inbound.html_body()inbound.text_body()inbound.send_date()# headersinbound.headers()  # default to get Dateinbound.headers('MIME-Version')inbound.headers('Received-SPF')# spaminbound.headers('X-Spam-Checker-Version')inbound.headers('X-Spam-Score')inbound.headers('X-Spam-Tests')inbound.headers('X-Spam-Status')# attachmentsinbound.has_attachments() # booleanattachments = inbound.attachments()first_attachment = attachments[0]first_attachment.name()second_attachment = attachments[1]second_attachment.content_length()for a in attachments:a.name()a.content_type()a.content_length()a.download('./tests/', ['image/png'], '10000')# raw datainbound.jsoninbound.source```Bug tracker-----------Have a bug? Please create an issue here on GitHub!Contributions-------------* Fork* Write tests* Write Code* Pull requestThanks for your help.TODO----* Write more testsAuthors-------**José Padilla**+ http://twitter.com/jpadilla_+ http://github.com/jpadillaInspiration-----------Thanks to [jjaffeux](https://github.com/jjaffeux/) for the original PHP wrapper+ https://github.com/jjaffeux+ https://github.com/jjaffeux/postmark-inbound-phpOther libraries---------------+ Ruby: https://github.com/r38y/postmark-mitt+ PHP: https://github.com/jjaffeux/postmark-inbound-php+ Node.js + CouchDB: https://gist.github.com/1647808License---------------------MIT License
Package: python-postnl-checkout
What is it?PostNL checkout support for Python and Django.StatusStable and being used in production.CompatibilityTested to work with Django 1.8 and 1.9 under Python 2.7.RequirementsPlease refer torequirements.txtfor an updated list of required packages.DjangoInstallationpip install-egit+https://github.com/dokterbob/python-postnl-checkout.git#egg=python-postnl-checkoutAddpostnl_checkout.contrib.django_postnl_checkouttoINSTALLED_APPS.Setup required settingsPOSTNL_CHECKOUT_USERNAME,POSTNL_CHECKOUT_PASSWORDandPOSTNL_CHECKOUT_WEBSHOP_IDsettings.SettingsPOSTNL_CHECKOUT_USERNAMEPOSTNL_CHECKOUT_PASSWORDPOSTNL_CHECKOUT_WEBSHOP_IDPOSTNL_CHECKOUT_ENVIRONMENTPOSTNL_CHECKOUT_TIMEOUTTestsTests for pull req’s and the master branch are automatically run throughTravis CI.LicenseThis application is released
under the GNU Affero General Public License version 3.Changes0.9 (6-5-2016)Support (only) Django 1.8 and 1.9.Reorganize test infrastructure.Stable release after a year of internal production use.0.1Initial version.
Package: python-postx
Python PostXPostX is a package that provides a simple interface for posting messages to multiple platforms.
The user has the ability to send the same message to multiple services or to an indivdual service.
The same message is translated to the appropriate calls for the each platform.Full Docs:HereGetting StartedInstalling via pippip install python-postxQuick StartfrompostximportBrokerfrompostx.messageimportMessage# Create the brokerbroker=Broker()# You can register as many endpoints as you wish of any combinationbroker.register('slack','your slack webhook url')broker.register('teams','your teams webhook url')# Make your messagemessage=Message()message.title('My Awesome Update')message.sub_title('This is an awesome update')message.text('The update is for all people to see and affects everything')message.list_unordered(['item 1','item 2'])message.link('Read More Here','link to more information')# Or a shorter waymessage=Message()message.title('My Awesome Update')\.sub_title('This is an awesome update')\.text('The update is for all people to see and affects everything')\.list_unordered(['item 1','item 2'])\.link('Read More Here','link to more information')# Or even shortermessage=Message()message.title('My Awesome Update')\.sub('This is an awesome update')\.text('The update is for all people to see and affects everything')\.ul(['item 1','item 2'])\.link('Read More Here','link to more information')# Send the message to allbroker.send(message)# Send the message to slack onlybroker.send_single_service(message,'slack')# Send the message to a single endpointbroker.send_single_link(message,'your registered endpoint url')Supported targetsMicrosoft TeamsSlackMetaKyle Mason -Mediatech15 - GitlabDistributed under the MIT license. See LICENSE for more information.
Package: python-potr
Python OTRThis is a pure Python OTR implementation; it does not bind to libotr.Install the potr Python module:sudo python setup.py installDependencies: pycrypto >= 2.1 (seedlitz/pycrypto)Usage NotesThis module uses pycrypto’s RNG. If you use this package in your application and your application
usesos.fork(), make sure to callCrypto.Random.atfork()in both the parent and the child process.Reporting bugsPlease read theFAQbefore submitting your
issue to thetracker.
Package: python-powerstrip
Thepowerstripmodule is a simple helper module to manage Python plugins.Plugins can be developed in an independent plugin directory, then packed and
distributed as plugin packages. The packed plugins can then be installed to
an applications plugin folder and be discovered and used by the application.Please notice that the module is still in beta phase so breaking changes
may appear. Do not use this in production environments!SetupThe easiest way to install the current version ofpowerstripis by usingpip:# install the module
pip install -U python-powerstrip

# or install the module with mkdocs support
pip install -U python-powerstrip[docs]DocumentationBuild the documentation as follows:cd docs
mkdocs buildDevelopmentpython -m venv env
source env/bin/activate
pip install -e .

# testing
cd test
pytestLinksWebsite:https://github.com/keans/powerstrip
Package: python-ppnetwork
PPNetworkPPNetwork 是无中心节点的网络驱动，包括 pp_link，pp_control，pp_flow 三部分pp_link类似于链路层，主要实现ppnetwork的基础功能pp_control类似于SDN网络中的控制器，主要实现节点发现，心跳等信令机制pp_flow类似于SDN网络中的数据流，主要实现节点的数据连接和交互安装`     pip installpython-ppnetwork`使用ppnetwork 不能独立运行，需要根据接口，开发上层应用。
Package: python-pppd
Simple library for controlling PPP connections with pppd. Under the hood it uses
thesubprocessmodule to interact withpppdto create and disconnect PPP
connections. Positional and keyword arguments are passed to thepppdcommand-
line although there is protection for shell exploits.This library has been production tested connecting daily to 280+ remote
locations via dial-up PPP connection for over a year. I have simply packaged and
cleaned up the module as some may find it useful.Anyone wanting to do something similar in a Windows environment should probably
take a look atwin32ras.RequirementsYou will requirepppd, the PPP daemon and PPP kernel modules.InstallationTo install simply:pip install python-pppdAlternatively, install from the repository:git clonehttps://github.com/cour4g3/python-pppdcd python-pppd
python setup.py installGetting StartedYou can connect to an existing configured PPP connection:>>>frompppdimportPPPConnection>>>ppp=PPPConnection(call='work')# blocks until connected>>>ppp.connected()# check if connected, raises error if connection errorTrue>>>ppp.laddr# address of local host'10.0.0.1'>>>ppp.raddr# address of remote client'10.0.0.2'You can specify any positional or keyword arguments:PPPConnection('/dev/ttyS0',connect='/usr/bin/chat -v -f /etc/chatscripts/A1')Which is equivalent to the following:sudo pppd /dev/ttyS0 connect “/usr/bin/chat -v -f /etc/chatscripts/A1”Normally you requiresudoto usepppd, if you don’t have it and have setup
thepppdbinary with setuid-root or are running as root you can use:PPPConnection(sudo=False)You can also specify an alternate paths topppdorsudoif the libary cannot
find them:PPPConnection(sudo_path='/usr/local/bin/sudo',pppd_path='/usr/local/sbin/pppd')LicenseDistributed under the MIT license.
Package: python-pptx-fork
Copyright (c) 2013 Steve Canny,https://github.com/scannyPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.Description: UNKNOWN
Keywords: powerpoint ppt pptx office open xml
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Office/Business :: Office Suites
Classifier: Topic :: Software Development :: Libraries
Package: python-pptx-templater
python-pptx-templater is a tool to create highly customizable PowerPoint presentation using the jinja template languages.
User specifies the layouts and placeholders and the template will render the presentation.ExampleInputUsing Template JSON:{
    'slides': [
        {
            'layoutSlideNum': 0,
            'text': {
                'name': 'Paul'
            }
        },
        {
            'layoutSlideNum': 0,
            'text': {
                'name': 'Joe'
            }
        },
        {
            'layoutSlideNum': 1,
            'text': {
                'dog': {
                    'name': 'John Cena'
                }
            }
        },
    ]
}OutputInstallpip install python-pptx-templaterUsagefrom pptx_templater.core import convert


def test_conversion():
    currpwd = os.path.dirname(os.path.abspath(__file__))
    srcpath = f'{currpwd}/fixtures/test_presentation_layout.pptx'
    destpath = f'{currpwd}/test_outputs/updated.pptx'

    j = {
        'slides': [
            {
                'layoutSlideNum': 0,
                'text': {
                    'name': 'Paul'
                }
            },
            {
                'layoutSlideNum': 0,
                'text': {
                    'name': 'Joe'
                }
            },
            {
                'layoutSlideNum': 1,
                'text': {
                    'dog': {
                        'name': 'John Cena'
                    }
                }
            },
        ]
    }

    convert(srcpath, destpath, j)
Package: python-pptx-templating
Namepython-pptx-templatingDescriptionThe goal of this library is to add templating feature to python-pptx.
By templating I mean a possibility to create new slides & slide decks based on pre-populated master slides.
It requires a certain way to name placeholders and placeholder content using mustache templating.Installationpipinstallpython-pptx-templatingUsageTODO Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.Authors and acknowledgmentSerhiy MasyutinLicenseMIT License
Package: python-ppvlan
PPVLANPPVLAN 是无中心节点的虚拟局网。任何节点，无论位于Internet或者防火墙后，只需要安装该软件，运行后，就可以建立和其他节点之间的虚拟局域网。如办公室和家庭电脑直接组建虚拟局网，或者亲友之间建立虚拟局网，在局网上进行文件共享等。简要原理节点运行后，会尝试连接网络上其他节点，通过网络各节点寻找相同的VLAN号和Secret的节点，并启动虚拟网卡，虚拟局域网就可以使用了。安装Linuxpip install python-ppvlanwindows需要先安装openvpn中的tapdriver如果安装了python和pip , 可以直接:pip install python-ppvlan如果不想安装python，则可以下载 执行版
pan.baidu.com配置配置文件采用yaml格式。文件名称自定义，如ppnetwork.yaml示例如下
::
{
#ppnet
node_id: 818300194,
node_port: 54194,node_nic: “无线网卡”,
DebugLevel: 20,
#DebugFile: ‘pplink.log’,node_file: nodes.pkl,
node_type: client,#flow
flow :  {
flow_port: 9000,
},#service
“services”: {
“vpn”: enable,
},#vpn
vpn: {
VlanId : 0,
IPRange : { start : 192.168.33.1, end : 192.168.33.255 },
VlanIP : 0.0.0.0,
VlanMask : 255.255.255.0,
VlanSecret : “12345678”,
}
}
::
运行
=====
ppnetwork -h | –help   帮助
ppnetwork  –config  pp.yaml   用指定的配置文件（pp.yaml） 运行。
ppnetwork     用缺省配置文件ppnetwork.yaml 运行安全说明任何节点加入虚拟局网接入都需要验证，网络号+密钥 +时间窗口。所有虚拟网络中数据传输为透传，没有使用加密。虚拟网中的地址分配，可以自行指定，也可以动态获得（配置文件中为0.0.0.0）。如果自行指定有冲突，后进入者会动态分配另一个空闲地址。可以通过网络命令 如 ifconfig 或 ipconfig 查看网络号和网络地址段必须保持一致，否则会导致地址分配错误。## 激励原则
1.   按转发流量、时段、区域（时延） 激励
Package: python-pqclient
Python client library for Fujitsu PRIMEQUEST MMBFree software: Apache licenseDocumentation:https://docs.openstack.org/python-pqclient/latestSource:https://git.openstack.org/cgit/openstack/python-pqclientBugs:https://bugs.launchpad.net/python-pqclientFeaturesTODO