Saravanan666/pypi-org huggingface dataset:
Package: docgrep
Likegrep, but only searches through docstrings (in Python code).InstallationFrom pip:$ pip install --upgrade docgrepExample$ docgrep 'Python 3.4' .
./asyncio/futures.py:113: """This class is *almost* compatible with concurrent.futures.Future.

    Differences:

    - result() and exception() do not take a timeout argument and
      raise an exception when the future isn't done yet.

    - Callbacks registered with add_done_callback() are always called
      via the event loop's call_soon_threadsafe().

    - This class is not compatible with the wait() and as_completed()
      methods in the concurrent.futures package.

    (In Python 3.4 or later we may be able to unify the implementations.)
    """
Package: doCheck
doCheckIntroductiondoCheckis an open-source type checking module written in Python, released under the Mulan Permissive Software License v2 (MulanPSL-2.0). This module provides a set of reusable Checker classes for validating properties and conditions of different types of values.InstallationpipinstalldoCheckFeaturesProvides various logical operator overload methods such as intersection, union, complement, negation, etc., for composing complex data validation rules.IncludesLiteralChecker(also known asEnumChecker) to check if a value is in a predefined list.TypeCheckeris used to validate if a value belongs to a specific collection of data types.RangeCheckersupports conditional checks within a numeric range and allows customization of interval closure.Additionally,CallableCheckerandRegexCheckerare provided to check if a value is a callable object and if a string matches a regular expression, respectively.Usage ExampleimportdoCheckasdc# Create checker instancesis_integer=dc.TypeChecker(int)is_even=dc.RangeChecker(0,float('inf'),leftClosed=True,step=2)is_valid_name=dc.RegexChecker(r'^[A-Za-z]+\s[A-Za-z]+$')# Apply checkersprint(is_integer.check(42))# Output: Trueprint(is_even.check(10))# Output: Trueprint(is_valid_name.check("John Doe"))# Output: TrueLicensedoCheck module is licensed under the Mulan Permissive Software License v2.0. For more information about this license, please visit:https://opensource.org/license/mulanpsl-2-0/||||Note: To use this module, make sure to import it correctly and comply with the relevant open-source license terms.
Package: docimage
IntroductionA library to process document images (with particular focus on Indic
languages).UsagePlease see the generated python sphynx docs in one of the following
places:project
page.http://docimage.readthedocs.iounder docs/_build/html/index.htmlDesign considerations for data containers corresponding to the
various submodules (such as books and annotations) are given below -
or in the corresponding source files.For contributorsContactHave a problem or question? Please head togithub.Packaging~/.pypirc should have your pypi login credentials.python setup.py bdist_wheel
twine upload dist/* --skip-existingDocument generationSphynx html docs can be generated withcd docs; make htmlhttp://docimage.readthedocs.io/en/latest/docimage.htmlshould
automatically have good updated documentation - unless there are
build errors.
Package: doc-intel
doc_intelpip install doc-intelThis package is subject to several potential fixes and until then any benefits derived by using this is very much intended.doc_intel is your solution to a largely cleansed and intact text extract from a PDF.change 0.0.1 (8 / 23 / 2021) :Line breaks lead to breakage of full words into smaller potentially non dictionary words and changes have been made to fix that.A dictionary has been used to identify how to reconstruct the broken words.change 0.0.2 (8 / 28 / 2021) :Updated dictionary, maybe inverse document frequency will later be used instead to fix the line breaks.Inverse document frequency has been used to precisely split and reconstruct stitched or meaninglessly spaced words.change 0.0.3 (9 / 10 / 2021) :added and removed words in word.txt, fixed dot spacing and conserved number word detachment post processing"change 0.0.4 (9 / 14 / 2021) :added and removed words in word.txt, maintained the positions of apostrophes.Major Version Update 1.0.0 (10 / 19 / 2021) :A new module has been added to serve requirements of deletion and addition of words in the words text file.Usage demonstration can be found under the feature instruction section.change 1.0.1 (10 / 21 / 2021) :fixed issue by which decimal numbers were spaced from the decimal point.closed the words text file in the main code block to prevent unclosed file issues.Feature instruction:REMOVE THE HEADER AND FOOTER TERMS FORM YOUR DOCUMENT:from doc_intel import text_laundry

file_path = / your_path/ your_file.pdf

texts = text_laundry.head_foot(file_path).remove()SCRUB OFF TEXTUAL NOISE FROM YOUR TEXTS:Arguments :serial numerical noise[bool]: noise like(text) + (random numbers, spaced or continous)will be removed.sentences or words interrupted with special characters[bool] : All cohesive words and sentences interruptions likeco -hesiveorsol **utionsshould be removed.lower case[bool] : toggle between bool values for lower or upper casing.s u b s t r i n g s w h i c h a r e a t t a c h e d w i l l b e s e p a r a t e d-->substrings which are attached will be separated(based on the fequency of the constituent words in the document).text_object = text_laundry.load_text([input str], remove_serial, sents_or_word_breaks, lower)
cleaned_text = text_object.launder()ADDANDDELETEWORDS FROM IN-BUILT DICTIONARY:PDF documents are not purposely written to suite document extraction and therefore, a lot of discontinued words in the documents end up broken with ordinary text extraction.doc-intel's in-built dictionary support identification of many 1000s of words which is noweditable. Add and remove words as you require for your smooth text extraction.do-cument-->documentfrom doc_intel import manage_diction

word_list = " your list of words to either add or delete "
manage_diction.register_words(word_list).Add()  #or
manage_diction.register_words(word_list).Delete()Authored & Maintained By: Vishak Arudhra
Package: docit
=================================================================docit=================================================================.. # POST TITLE.. # BEGIN BADGES|pypi-version-badge| |license-badge| |pypi-downloads-badge|.. |pypi-version-badge| image:: http://img.shields.io/pypi/v/docit.svg:alt: [latest version on pypi]:target: https://pypi.python.org/pypi/docit.. |pypi-downloads-badge| image:: http://img.shields.io/pypi/dm/docit.svg:alt: [downloads on pypi]:target: https://pypi.python.org/pypi/docit.. |license-badge| image:: http://img.shields.io/badge/license-GPLv3+-brightgreen.svg:alt: [GPLv3+]:target: https://www.gnu.org/licenses/gpl.html.. # END BADGES**docit** is a python package which provides some simple tools to use with sphinxautodoc to control whether or not members are included in the documentation or not... contents:: **Page Contents**:local::depth: 2:backlinks: toptl;dr---------------What?~~~~~~~~~~~~~~A `sphinx <http://sphinx-doc.org/>`_ extension to control autodoc for individualmembers.Install?~~~~~~~~~~~~~.. code:: bash$ pip install docitOr, from source:.. code:: bash$ python setup.py installExamples?~~~~~~~~~~~~~~~~~~.. todo::Example code.. code:: python>>> import docit>>>Dependencies?~~~~~~~~~~~~~~~~docit is developed against `python <https://www.python.org/>`_ version 2.7.To build the sphinx docs from source (as is), you'll need the `sphinx_rtd_theme`_:.. code:: bash$ pip install sphinx_rtd_themeDocs?~~~~~~~~* `Read The Docs (.org) <http://docit.readthedocs.org/>`_* `Python Hosted (.org) <http://pythonhosted.org/docit/>`_Misc.---------------Contact Information~~~~~~~~~~~~~~~~~~~~~~~~This project is currently hosted on `bitbucket <https://bitbucket.org>`_,at `https://bitbucket.org/bmearns/docit <https://bitbucket.org/bmearns/docit/>`_.The primary author is Brian Mearns, whom you can contact through bitbucket at`https://bitbucket.org/bmearns <https://bitbucket.org/bmearns>`_.Copyright and License~~~~~~~~~~~~~~~~~~~~~~~~~~\ ``docit``\  is \ *free software*\ : you can redistribute it and/or modifyit under the terms of the \ **GNU General Public License**\  as published bythe Free Software Foundation, either version 3 of the License, or(at your option) any later version.\ ``docit``\  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 theGNU General Public License for more details.A copy of the GNU General Public License is available in the\ ``docit``\ distribution under the file LICENSE.txt. If you did notreceive a copy of this file, see`http://www.gnu.org/licenses/ <http://www.gnu.org/licenses/>`_... _sphinx_rtd_theme: https://github.com/snide/sphinx_rtd_theme
Package: docite
dociteSome tools to format references in documentationThis is a small package I created to help me format references in my documentation.
It uses pandoc to convert the references from bibtex to a format that can be used
in markdown files.For example, thisinput filealong with the correspondingbibliography filecan be used to generate thisoutput file.InstallationYou can install the package via pip:pip install dociteUsageYou can use the package from the command line as follows:docite --inputfile <INPUTFILE> --outputfile <OUTPUTFILE> --bibfile <BIFILE>or:python -m docite.cli --inputfile <INPUTFILE> --outputfile <OUTPUTFILE> --bibfile <BIFILE>You can also use the package from python as follows:from docite import convert
convert.convert_with_refs(inputfile, outputfile, bibfile)My personal workflow is:I use Zotero to manage my references and then export them to a Better Bibtex file.I use the Citation Picker for Zotero extension within VSCode to add the references to my markdown files.I use docite to generate an output markdown file with the references formatted.Here is a gif showing how I use the package:CustomizeBy default, the package will use the IEEE citation style. You can change the citation style by using the–stylefileoption, e.g., to change the citation style to APA you can use the following command:docite --inputfile <INPUTFILE> --outputfile <OUTPUTFILE> --bibfile <BIFILE> --stylefile path/to/downloaded/apa.cslYou can find citation style language files in thecitation-style-language repository.Making Changes & ContributingThis project usespre-commit, please make sure to install it before making any
changes:pip install pre-commit
cd docite
pre-commit installIt is a good idea to update the hooks to the latest version:pre-commit autoupdateDon’t forget to tell your contributors to also install and use pre-commit.NoteThis project has been set up using PyScaffold 4.5. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: dock
# dockWrapper around Redis for message queues.## Installation```bashpip install dock  # pypipip install git+https://github.com/vzhong/dock.git  # github```## UsageFirst, start your Redis server.```python# server.pyfrom dock import Dockdock = Dock('test')while True:msg, respond = dock.recv()print(msg, respond)print('got message {}'.format(msg))respond({'ack': msg,'msg': 'hello'})``````python# client.pyfrom dock import Dockdock = Dock('test')for i in range(5):answer = dock.send('message{}'.format(i))print(answer)```You can see how the server and client interact by running the two files:```bashpython server.py  # in one terminalpython client.py  # in another terminal```
Package: dock8r
# Dock8rCLI implementing subset of Docker commands to run containers in K8s.Free software: MIT license## Featuresdocker psdocker run--vflagdocker exec--iflagdocker stop## Architecture![](Dock8r.png)## CreditsThis package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage) project template.Inspired byhttps://kubernetes.io/docs/reference/kubectl/docker-cli-to-kubectl/History0.1.0 (2022-08-07)First release on PyPI.
Package: dockeb
Documentation aussi disponible enfrançaisdockeb, the Keb Docker wrapper.dockebcan be used as a drop-in replacement for theDocker command-line.The difference between docker anddockebis name generation. While
docker generates names of the formadjective_surnamefor
containers,dockebgenerates a random Keb name.If you give an explicit name to a container, using the--nameflag, it will be left unchanged.RequirementsTo rundockeb, you will need Python ≥ 3.4, as well asDocker.For installing, we recommend using thepippackage manager.InstallingTo installdockebsystem-wide, run:sudopip3installdockebTo installdockebmanually from source, the steps are as follows:gitclonegit@github.com:abusque/dockeb.gitcddockebsudo./setup.pyinstallUsingOnce installed, you can usedockebby running the following command:dockebFor a more interesting command, try:dockebrunhello-worlddockebps-aYou will notice that the container was given a Keb name when created.To automatically usedockebinstead ofdocker, consider
defining an alias in your shell configuration:aliasdocker='dockeb'DevelopmentFor local development ofdockeb, you may usepipenv. Usepipenv install--devto
generate a virtual environment into which the dependencies will be
installed. You may then usepipenv shellto activate that
environment.For publishing releases to PyPI, we recommend usingTwine.See Alsoqng, the Queb name generator.
Package: docker
Docker SDK for PythonA Python library for the Docker Engine API. It lets you do anything thedockercommand does, but from within Python apps – run containers, manage containers, manage Swarms, etc.InstallationThe latest stable versionis available on PyPI. Either adddockerto yourrequirements.txtfile or install with pip:pip install dockerOlder versions (< 6.0) required installingdocker[tls]for SSL/TLS support.
This is no longer necessary and is a no-op, but is supported for backwards compatibility.UsageConnect to Docker using the default socket or the configuration in your environment:importdockerclient=docker.from_env()You can run containers:>>>client.containers.run("ubuntu:latest","echo hello world")'hello world\n'You can run containers in the background:>>>client.containers.run("bfirsh/reticulate-splines",detach=True)<Container'45e6d2de7c54'>You can manage containers:>>>client.containers.list()[<Container'45e6d2de7c54'>,<Container'db18e4f20eaa'>,...]>>>container=client.containers.get('45e6d2de7c54')>>>container.attrs['Config']['Image']"bfirsh/reticulate-splines">>>container.logs()"Reticulating spline 1...\n">>>container.stop()You can stream logs:>>>forlineincontainer.logs(stream=True):...print(line.strip())Reticulatingspline2...Reticulatingspline3......You can manage images:>>>client.images.pull('nginx')<Image'nginx'>>>>client.images.list()[<Image'ubuntu'>,<Image'nginx'>,...]Read the full documentationto see everything you can do.
Package: docker0s
Docker0s uses docker-compose to manage multiple containerised apps on a single host.Bring together standard docker-compose files across multiple projects in a single simple
manifest file, written in either YAML or Python with pre- and post-operation hooks, to
deploy to a single host.It’s designed for small self-hosted low-maintenance deployments which don’t need the
complexity of Kubernetes - think k8s with zero features and a much simpler config
syntax, with simple app manifests instead of helm charts.There is a collection of ready-to-use app manifests atdocker0s-manifests, with
examples for how to deploy them to your host.Project site:https://radiac.net/projects/docker0s/Documentation:https://docker0s.readthedocs.io/Source code:https://github.com/radiac/docker0sQuickstartInstall:pip install docker0sPut together a manifest in YAML asd0s-manifest.yml:apps:traefik:extends:git+https://github.com/radiac/docker0s-manifests.git#traefikenv_file:traefik.envsmtp:compose:smtp.ymlwebsite:type:RepoAppextends:"git+ssh://git@github.com:radiac/example.com.git@main"env:DOMAIN:example.radiac.nethost:name:example.radiac.netor in Python asd0s-manifest.py, using subclassing to perform actions before and
after operations and add custom functionality:fromdocker0simportRepoAppclassWebsite(RepoApp):# Clone a repo to the host and look for docker-compose.yml in thereextends="git+ssh://git@github.com:radiac/example.com.git@main"env={"DOMAIN":"example.radiac.net"}# Subclass operation methods to add your own logicdefdeploy(self):# Perform action before deployment, eg clean up any previous deploymentsuper().deploy()# Perform action after deployment, eg push additional resourcesclassVagrant(Host):name="vagrant"Seewriting manifestsfor a full referenceThen run a command, eg:d0s deploy
d0s up
d0s restart website.django
d0s exec website.django /bin/bash
d0s cmd website app_command argumentsSeecommandsfor a full command reference
Package: docker-amend
docker-amendAmend Docker images by running a command in a temporary container.$pipxinstalldocker-amend# (plain `pip` works too)$docker-amend[OPTIONS]IMAGE[:VERSION]COMMAND...Descriptiondocker-amend lets you modify an IMAGE by running COMMAND inside a temporary container.
You can use it to add dependencies to your project without rebuilding the whole image
from ground.This is basicallydocker runanddocker commitin one go, but easier to use.Options-t, --tag NAME[:VERSION]: Use a different name/tag for the resulting image.-v, --volume SOURCE[:TARGET[:MODE]]: Bind mount a volume.--no-cwd-volume: Do not mount current working directory as a volume.  [default: False]--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.ExampleLet's say you're making a Python app:$dockerbuild-tmy-image.... (some development goes on, then:)$docker-amendmy-imagepoetryaddrequests$dockerrunmy-imagepoetryshowrequests         2.23.0     Python HTTP for Humans.$greprequestspyproject.tomlrequests = ^2.23.0
Package: dockerasmus
docking itself through universityIntroductiondockerasmusis a version-agnostic Python module that was created
to quickly solve docking problems, as part of a Python assignment from
the M1 BIBS of the Université Paris-Saclay.dockerasmusprovides a generic implementation of a scoring function,
which can be used with severalcomponentsto compute the score of
a docking conformation involving two proteins. It is backend agnostic, and
every scoring component can be rewritten with any library supportingnumpyarrays.ExampleUsedockerasmusto compute the score of the barnase-barstar complex
using the scoring function defined byCornell et al:fromdockerasmus.pdbimportProteinfromdockerasmus.scoreimportScoringFunction,components# Import the pdb files (supports gzipped files or plain .pdb)barnase=Protein.from_pdb_file("tests/data/barnase.native.pdb.gz")barstar=Protein.from_pdb_file("tests/data/barstar.native.pdb.gz")# Create a scoring function with two componentsscoring_function=ScoringFunction(components.LennardJones,components.Coulomb)# Call the scoring function on the barnase (receptor)# and the barstar (ligand)scoring_function(barnase,barstar)# -84.94...APIdockerasmusprovides several submodules:a parser & object model for the Protein Data Bank (dockerasmus.pdb)a scoring library (dockerasmus.score)a soft 3D engine for spatial transformations (dockerasmus.spatial)See theAPI referencefrom the online documentation to get more details.Licensedockerasmusis fully open-source and is released under the GPLv3.
Package: docker-auto-labels
labels for each constraint label in eachservice in a Docker Compose / Docker Stack file.Home-page: https://github.com/tiangolo/docker_auto_labelsAuthor: Sebastian RamirezAuthor-email: tiangolo@gmail.comLicense: MIT licenseDescription: # Docker Auto Labels[![](https://img.shields.io/pypi/v/docker-auto-labels.svg)](https://pypi.python.org/pypi/docker-auto-labels)[![](https://img.shields.io/travis/tiangolo/docker-auto-labels.svg)](https://travis-ci.org/tiangolo/docker-auto-labels)Automatically generate Docker Swarm mode node labels for each constraint label in each service in a Docker Compose / Docker Stack file.## DescriptionThis command line package is made to be used with a Docker Swarm mode cluster.It will:* Read a Docker Compose / Docker Stack file.* Extract the node label constraints for each service.* Check that all the labels exist in the Docker Swarm mode cluster.* For each label that doesn't exist, create it in a random node in the cluster.Adding label constraints helps you ensure that all the "stateful"Docker services (like databases) are always deployed to the samenode (specially useful in a multi-node cluster).This program will ensure that those labels exist in one nodein the cluster, if they don't exist, they are created in onenode chosen randomly.That way, the first time you deploy a stack, a random node will be assignedto each stateful service (by this command, right before the deployment).And for all subsequent deployments, the stateful services will go to thesame nodes that they were using.For examples on how to use it, check: https://github.com/tiangolo/full-stack## CreditsThis package was created with Cookiecutter_ and the `elgertam/cookiecutter-pipenv`_ project template, based on `audreyr/cookiecutter-pypackage`_.[Cookiecutter](https://github.com/audreyr/cookiecutter)[`elgertam/cookiecutter-pipenv`](https://github.com/elgertam/cookiecutter-pipenv)[`audreyr/cookiecutter-pypackage`](https://github.com/audreyr/cookiecutter-pypackage)## LicenseMIT License=======History=======0.1.0 (2018-05-01)------------------* First release on PyPI.Keywords: docker_auto_labelsPlatform: UNKNOWNClassifier: Development Status :: 2 - Pre-AlphaClassifier: Intended Audience :: DevelopersClassifier: License :: OSI Approved :: MIT LicenseClassifier: Natural Language :: EnglishClassifier: Programming Language :: Python :: 3Classifier: Programming Language :: Python :: 3.4Classifier: Programming Language :: Python :: 3.5Classifier: Programming Language :: Python :: 3.6
Package: docker-autotag
docker-autotagCreate docker tags from a given version stringSimple tool to create a list of docker tags from a given version string.Environment variables# if not set a comma-separated list will be printed to stdoutDOCKER_AUTOTAG_OUTPUT_FILE=# adds a given suffix to every determined tagDOCKER_AUTOTAG_SUFFIX=# returns only tags with the applied suffixDOCKER_AUTOTAG_SUFFIX_STRICT=False# version string to use; returns 'latest' if nothing is specifiedDOCKER_AUTOTAG_VERSION=# comma-seprated list of static tags to add to the result setDOCKER_AUTOTAG_EXTRA_TAGS=# 'latest' tag would only be used if determined tag list is empty; adds always 'latest' to the resultDOCKER_AUTOTAG_FORCE_LATEST=False# if the given version string contains a prerelease, no other tags will be returnedDOCKER_AUTOTAG_IGNORE_PRERELEASE=FalseExamplesDOCKER_AUTOTAG_VERSION=1.0.1docker-autotag# 1.0.1,1.0,1DOCKER_AUTOTAG_VERSION=0.1.0docker-autotag# 0.1.0, 0.1## 'v' prefixes e.g. from git tags will be removedDOCKER_AUTOTAG_VERSION=v1.0.1docker-autotag# 1.0.1,1.0,1## unsufficient semver version strings will be tried to convert automatically## if conversion doesn't work return 'latest'DOCKER_AUTOTAG_VERSION=1.0docker-autotag# 1.0.0,1.0,1DOCKER_AUTOTAG_VERSION=1.0.0-betadocker-autotag# 1.0.0-beta## ignore prerelease to always get a full list of tagsDOCKER_AUTOTAG_IGNORE_PRERELEASE=TrueDOCKER_AUTOTAG_VERSION=1.0.0-betadocker-autotag# 1.0.0-beta,1.0.0,1.0,1DOCKER_AUTOTAG_SUFFIX=amd64DOCKER_AUTOTAG_VERSION=1.0.0docker-autotag# 1.0.0,1.0,1,1.0.0-amd64,1.0-amd64,1-amd64DOCKER_AUTOTAG_SUFFIX=amd64DOCKER_AUTOTAG_SUFFIX_STRICT=TrueDOCKER_AUTOTAG_VERSION=1.0.0docker-autotag# 1.0.0-amd64,1.0-amd64,1-amd64DOCKER_AUTOTAG_EXTRA_TAGS=extra1,extra2DOCKER_AUTOTAG_VERSION=1.0.0docker-autotag# 1.0.0,1.0,1,extra1,extra2ContributorsSpecial thanks to allcontributors. If you would like to contribute,
please see theinstructions.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.