Saravanan666/pypi-org huggingface dataset:
Package: python-dnslb
Python DNS LB & Traffic Director================================This snippet of python is meant to be used with https://github.com/abh/geodns - a geo-awareDNS server in GO. The idea is to monitor a set of services and periodically generate a JSONzone based on the service instances that are up and responding correctly. This can be usedas a poor-mans "global dns load balancer".Installation------------As alwasy, setting up a virtualenv might be a good idea but other than that do the usual,i.e in this case:pip install python-dlslborgit clone git@github.com:leifj/python-dnslb.gitcd python-dnslb./setup.py installRunning-------Create a yaml-file somewhere (lets call it example.com.yaml):```yamlcontact: hostmaster.example.comnameservers:- ns1.example.com- ns2.example.comhosts:host-1:- 1.2.3.4host-2:- 1.2.3.5- 1.2.4.1host-3- 4.3.2.1aliases:- wwwlabels:- north-america- host-1- europe- host-2- host-3checks:- check_http:vhost: "www.example.com"url: "/"```Then run the following command:dnslb --loglevel=DEBUG -z example.com.json -c example.com.yamlThe monitor will startup and connect to each IP address listed for all hosts in thehosts table, issuing a GET request for '/' with the Host header set to www.example.comPeriodically the monitor will write a json zonefile to example.com.json. The zonefilewill always list A and AAAA recoreds for the hosts but will only list A and AAAA forthe zone (example.com in our case) and for each label for those addresses that passesthe test (check_http in this case).The zonefile can be fed directly into geodns.NEWS====0.2---*Release Date: Mon Apr  8 12:49:06 CEST 2013** Initial release0.2.1-----*Release Date: Mon Apr  8 12:49:06 CEST 2013** Fixes label handling0.2.2------*Release Date: Wed Jul 31 13:59:43 CEST 2013** Conditionally export check_* depending on imports0.2.3-----* Release Date: Fri Aug 16 10:19:08 CEST 2013** better logging* email notification (beta)0.2.4-----* Release Date: Wed Mar 11 22:39:49 CET 2015*0.2.5-----* Release Date: Wed Mar 11 22:39:49 CET 2015** sleep configuration0.2.8-----* Release Date: Fre 30 jun 2017 18:07:14 CEST* check https urls
Package: python-doc
python-docOpen Python docs in the browser.BackgroundSearch engines still take you to Python 2.7 docs, and not the docs for the Python version you're using.python-docinstalls all docs on your machine, so you don't need an internet connection to view them.You can also askpython-docto take you to thedocs.python.orgwebsite.Inspired byrustup docwhich opens docs associated with the installed Rust toolchain in your browser.InstallationYou can simply usepipto installpython-doc:$ pip install python-docUsageYou can open the main docs page foryourPython version using:$ python-docYou can also go to a specific module's doc page using the-moption:$ python-doc -m osIf you want to see the docs for a different Python version than your own, you can use the-pyoption:$ python-doc -m os -py 3.6To open docs on thedocs.python.orgwebsite, you can use the-woption:$ python-doc -m os -py 3.6 -wTo look at all the available options, you can check out the help using:$ python-doc --helpVersioningpython-docusesCalendar Versioning. For the available versions, see the tags on the GitHub repository.LicenseThis project is licensed under the Apache License, see theLICENSEfile for details.
Package: python-doc-inherit
==================python-doc-inherit==================Utilities to inherit method documentation from parent classes.Badges------.. image:: https://img.shields.io/travis/kavdev/python-doc-inherit/master.svg?style=flat-square:target: https://travis-ci.org/kavdev/python-doc-inherit.. image:: https://img.shields.io/codecov/c/github/kavdev/python-doc-inherit/master.svg?style=flat-square:target: http://codecov.io/github/kavdev/python-doc-inherit?branch=master.. image:: https://img.shields.io/requires/github/kavdev/python-doc-inherit.svg?style=flat-square:target: https://requires.io/github/kavdev/python-doc-inherit/requirements/?branch=master.. image:: https://img.shields.io/codacy/75dbe2685efe47c3aa203a53154c9e7e.svg?style=flat-square:target: https://www.codacy.com/app/kavanaugh-development/python-doc-inherit/dashboard.. image:: https://img.shields.io/pypi/v/python-doc-inherit.svg?style=flat-square:target: https://pypi.python.org/pypi/python-doc-inherit.. image:: https://img.shields.io/pypi/dw/python-doc-inherit.svg?style=flat-square:target: https://pypi.python.org/pypi/python-doc-inherit.. image:: https://img.shields.io/github/issues/kavdev/python-doc-inherit.svg?style=flat-square:target: https://github.com/kavdev/python-doc-inherit/issues.. image:: https://img.shields.io/github/license/kavdev/python-doc-inherit.svg?style=flat-square:target: https://github.com/kavdev/python-doc-inherit/blob/master/LICENSEInstallation------------Install python-doc-inherit:.. code-block:: bashpip install python-doc-inheritUsage-----Simple method decorator (will cause other decorators to fail)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.. code-block:: pythonfrom doc_inherit import method_doc_inheritclass Foo(object):def foo(self):"""Frobber"""passclass Bar(Foo):@method_doc_inheritdef foo(self):passNow, ``Bar.foo.__doc__ == Bar().foo.__doc__ == Foo.foo.__doc__ == "Frobber"``Simple class decorator~~~~~~~~~~~~~~~~~~~~~~.. code-block:: pythonfrom doc_inherit import class_doc_inheritclass Foo(object):def foo(self):"""Frobber"""pass@class_doc_inheritclass Bar(Foo):def foo(self):passNow, ``Bar.foo.__doc__ == Bar().foo.__doc__ == Foo.foo.__doc__ == "Frobber"``Metaclass~~~~~~~~~.. code-block:: pythonfrom doc_inherit.metaclasses import DocStringInheritorfrom six import add_metaclass  # Note: Six is not included in this distribution.class Animal:def move_to(self, dest):"""Move to *dest*"""pass@add_metaclass(DocStringInheritor)class Bird(Animal):def move_to(self, dest):passNow, ``Animal.move_to.__doc__ == Bird.move_to.__doc__ == "Move to *dest*"``Running the Tests------------------.. code-block:: bashpip install -r requirements/test.txt./runtests.pyChanges=======0.1.1 (2016-06-18)----------------------* small fixes0.1.0 (2016-06-18)----------------------* Initial release
Package: python-dockercloud
# python-docker-cloudPython library for Docker Cloud## InstallationIn order to install the Docker Cloud Python library, you can use pip install:pip install python-dockercloudIt will install a Python module called dockercloud which you can use to interface with the API.## AuthorizationThe authentication can be configured in the following ways:Manually set it in your Python initialization code:import dockercloud
dockercloud.user = “username”
dockercloud.apikey = “apikey”Login with docker cli, and the library will read the configfile automatically:$ docker loginSet the environment variables DOCKERCLOUD_USER and DOCKERCLOUD_APIKEY:export DOCKERCLOUD_USER=username
export DOCKERCLOUD_APIKEY=apikey## Optional parametersYou may set the reconnection interval (Integer, in seconds) using the variable DOCKERCLOUD_RECONNECTION_INTERVAL:export DOCKERCLOUD_RECONNECTION_INTERVAL=240Session uses a socket that may be closed by some peer. To prevent the “Read timed out” issue you should use this option.Possible values:-1(by default) means no reconnect (as usually it works)0means reconnect on each requestany positive value means that the connection will be reopened if the time diff between last 2 requests is more than that value## NamespaceTo support teams and orgs, you can specify the namespace in the following ways:Set it in the Python code:import dockercloud
dockercloud.namespace = “yourteam”Set it in the environment variable:export DOCKERCLOUD_NAMESPACE=yourteam## ErrorsErrors in the HTTP API will be returned with status codes in the 4xx and 5xx ranges.The Python library will detect this status codes and raise ApiError exceptions with the error message, which should be handled by the calling application accordingly.## Quick examples### Services>>> import dockercloud
>>> dockercloud.Service.list()
[<dockercloud.api.service.Service object at 0x10701ca90>, <dockercloud.api.service.Service      object at 0x10701ca91>]
>>> service = dockercloud.Service.fetch("fee900c6-97da-46b3-a21c-e2b50ed07015")
<dockercloud.api.service.Service object at 0x106c45c10>
>>> service.name
"my-python-app"
>>> service = dockercloud.Service.create(image="dockercloud/hello-world", name="my-new- app", target_num_containers=2)
>>> service.save()
True
>>> service.target_num_containers = 3
>>> service.save()
True
>>> service.stop()
True
>>> service.start()
True
>>> service.delete()
True### Containers>>> import dockercloud
>>> dockercloud.Container.list()
[<dockercloud.api.container.Container object at 0x10701ca90>, <dockercloud.api.container.Container object at 0x10701ca91>]
>>> container = dockercloud.Container.fetch("7d6696b7-fbaf-471d-8e6b-ce7052586c24")
<dockercloud.api.container.Container object at 0x10701ca90>
>>> container.public_dns = "my-web-app.example.com"
>>> container.save()
True
>>> container.stop()
True
>>> container.start()
True
>>> container.logs()
"2014-03-24 23:58:08,973 CRIT Supervisor running as root (no user in config     file) [...]"
>>> container.delete()
True
Package: python-docraptor
python-docraptor is an MIT Licensed wrapper for the docraptor API.Synchronous Examplefrom docraptor import DocRaptor

docraptor = DocRaptor()
with open("test.pdf", "wb") as f:
    f.write(docraptor.create({
        'document_content': '<p>python-docraptor Test</p>',
        'test': True
    }).content)Asynchronous Exampleimport time
from docraptor import DocRaptor

docraptor = DocRaptor()

resp = docraptor.create({
    'document_content': '<p>python-docraptor Async Test</p>',
    'test': True,
    'async': True
})
status_id = resp['status_id']

resp = docraptor.status(status_id)
while resp['status'] != 'completed':
    time.sleep(3)
    resp = docraptor.status(status_id)

with open("test_async.pdf", "wb") as f:
    f.write(docraptor.download(resp['download_key']).content)InstallationTo install python-docraptor, simply:$pipinstallpython-docraptor
Package: python-docs-bootstrapper
python-docs-bootstrapperThis repository contains the scripts and data used to bootstrap a new translation of the Python documentation.Installation$pipinstallpython-docs-bootstrapperUsage$bootstrapper--help
usage:bootstrapper[-h][-bBRANCH]language

positionalarguments:languageIETFlanguagetag(e.g.tr,pt-br)options:-h,--helpshowthishelpmessageandexit-bBRANCH,--branchBRANCHCPythonbranch(e.g.3.12)Example$bootstrappertr--branch3.12
Package: python-docs-theme
This is the theme for the Python documentation.Note that when adopting this theme, you’re also borrowing an element of the
trust and credibility established by the CPython core developers over the
years. That’s fine, and you’re welcome to do so for other Python community
projects if you so choose, but please keep in mind that in doing so you’re also
choosing to accept some of the responsibility for maintaining that collective
trust.To use the theme, install it into your docs build environment viapip(preferably in a virtual environment).Configuration optionsTo use this theme, add the following toconf.py:html_theme = 'python_docs_theme'html_sidebars, defaults taken fromhttps://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_sidebarsPreviewSee a demo of the CPython docs using this theme:https://python-docs-theme-previews.readthedocs.io
Package: python-docs-theme-lucit
Python Docs Sphinx Theme (LUCIT Edition)Forked fromhttps://github.com/python/python-docs-themeInstallationTo use the theme, install it into your docs build environment viapip:pip install python-docs-theme-lucithttps://pypi.org/project/python-docs-theme-lucitHowtohttps://www.technopathy.club/2019/11/03/use-python-sphinx-on-github-pages-with-html-and-an-indivdual-theme/DocumentationSettings for source/conf.py:html_theme = 'python_docs_theme_lucit'
html_context = {'github_repo_name': 'unicorn-binance-suite',
                'github_user_name': 'LUCIT-Systems-and-Development',
                'project_name': project}Demo conf.py:https://github.com/LUCIT-Systems-and-Development/python-simplemachinesforum/blob/master/sphinx/source/conf.pyElements are inherited by:https://github.com/sphinx-doc/sphinx/tree/master/sphinx/themes/defaulthttps://github.com/sphinx-doc/sphinx/tree/master/sphinx/themes/basicCommercial SupportDo you need a developer, operator or consultant?Contact usfor a non-binding initial consultation!
Package: python-docs-theme-technopathy
Python Docs Sphinx Theme (technopathy.club Edition)Forked fromhttps://github.com/python/python-docs-themeInstallationTo use the theme, install it into your docs build environment viapip:pip install python-docs-theme-technopathyhttps://pypi.org/project/python-docs-theme-technopathy/Howtohttps://www.technopathy.club/2019/11/03/use-python-sphinx-on-github-pages-with-html-and-an-indivdual-theme/DocumentationSettings for source/conf.py:tml_theme = 'python_docs_theme_technopathy'
html_context = {'github_repo_name': 'python-simplemachinesforum',
                'github_user_name': 'oliver-zehentleitner',
                'project_name': project}Demo conf.py:https://github.com/LUCIT-Systems-and-Development/python-simplemachinesforum/blob/master/sphinx/source/conf.pyElements are inherited by:https://github.com/sphinx-doc/sphinx/tree/master/sphinx/themes/defaulthttps://github.com/sphinx-doc/sphinx/tree/master/sphinx/themes/basicCommercial SupportDo you need a developer, operator or consultant?Contactmefor a non-binding initial consultation via my companyLUCITfrom Vienna (Austria) or viaTelegram/WhatsApp.
Package: python-documentcloud
____                                        _    ____ _                 _
 |  _ \  ___   ___ _   _ _ __ ___   ___ _ __ | |_ / ___| | ___  _   _  __| |
 | | | |/ _ \ / __| | | | '_ ` _ \ / _ \ '_ \| __| |   | |/ _ \| | | |/ _` |
 | |_| | (_) | (__| |_| | | | | | |  __/ | | | |_| |___| | (_) | |_| | (_| |
 |____/ \___/ \___|\__,_|_| |_| |_|\___|_| |_|\__|\____|_|\___/ \__,_|\__,_|/A simple python wrapper for the DocumentCloud APIDocumentation:http://documentcloud.readthedocs.org/Issues:https://github.com/muckrock/python-documentcloud/issuesPackaging:https://pypi.python.org/pypi/python-documentcloudFeaturesRetrieve and edit documents and projects, both public and private, from documentcloud.orgUpload PDFs into your documentcloud.org account and organize them into projectsDownload text and images extracted from your PDFs by DocumentCloudGetting startedInstallation is as easy as...$pipinstallpython-documentcloud
Package: python-docutils-graphviz
===============================Graphviz extension for Docutils===============================A Docutils extension that replaces inline Graphviz definitins with inline SVGs or PNGs!refer: https://github.com/sprin/markdown-inline-graphvizInstall `Graphviz <https://www.graphviz.org/>`_ first! The command "dot" should be in system PATH.register::import docutils_graphvizfrom docutils.parsers.rst import directivesdirectives.register_directive('dot', docutils_graphviz.Graphviz)example:.. dot:: svg:widht: 100%:height: 100%:alt: image.svgdigraph G {node[fontname="simsun"]edge[fontname="simsun"]rankdir=LREarth [peripheries=2]MarsEarth -> Mars}
Package: python-docx
python-docxpython-docxis a Python library for reading, creating, and updating Microsoft Word 2007+ (.docx) files.Installationpip install python-docxExample>>>fromdocximportDocument>>>document=Document()>>>document.add_paragraph("It was a dark and stormy night.")<docx.text.paragraph.Paragraphobjectat0x10f19e760>>>>document.save("dark-and-stormy.docx")>>>document=Document("dark-and-stormy.docx")>>>document.paragraphs[0].text'It was a dark and stormy night.'More information is available in thepython-docx documentation
Package: python-docx-1
Copyright (c) 2019 Atrium LTS,https://github.com/atriumltsPermission 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: # python-docx-1python-docx-1is a Python library for creating and updating Microsoft Word (.docx) files.## Development
### Install dev dependencies`sh pipenv shell pipenv install--dev`## Documentation
Detailed documentation can be found [here](https://python-docx.readthedocs.io/en/latest/index.html)Keywords: docx office openxml word
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
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.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Office/Business :: Office Suites
Classifier: Topic :: Software Development :: Libraries
Package: python-docx-2023
python-docx-2023-docxPython library forked frompython-docx.The main purpose of the fork was to add implementation for comments and footnotes to the libraryInstallationUse the package managerpipto install python-docx-2023.pip install python-docx-2023Usageimport docx

document = docx.Document()

paragraph1 = document.add_paragraph('text') # create new paragraph

comment = paragraph.add_comment('comment',author='Obay Daba',initials= 'od') # add a comment on the entire paragraph

paragraph2 = document.add_paragraph('text') # create another paragraph

run = paragraph2.add_run('texty') add a run to the paragraph

run.add_comment('comment') # add a comment only for the run text

paragraph.add_footnote('footnote text') # add a footnoteLicenseMIT#Release History idtareq/python-docx-2023 forked from (python-openxmm/python-docx)0.2.8 (2020-05-02)add comments implementation on a run levelfix issue with comments date (comments dates are set to current date)0.2.4 (2019-9-4)loop over all the document chieldern (Paragraphs, Tables, Sections) with the right orderdocument.elementsaddons to Paragraph Object (delete, heading_level, merge_paragraph )Add low-level implementation for comments partAdd oxml element for <w:comments> element and sub-elementsAdd add_comment() method for docx.text.ParagraphAdd low-level implementation for footnotes partAdd oxml element for <w:footnotes> element and sub-elementsAdd add_footnote() method for docx.text.Paragraph
Package: python-docx-docm
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: docx office openxml word
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
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.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Office/Business :: Office Suites
Classifier: Topic :: Software Development :: Libraries
Package: python-docx-ext
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: .. image::https://travis-ci.org/python-openxml/python-docx.svg?branch=mastertarget:https://travis-ci.org/python-openxml/python-docxpython-docxis a Python library for creating and updating Microsoft Word
(.docx) files.More information is available in thepython-docx documentation.Keywords: docx office openxml word
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
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.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Office/Business :: Office Suites
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown