Saravanan666/pypi-org huggingface dataset:
Package: dipc
dipcDistributed Inter-Process Communication Library implemented in Python andMemcached. serverUsing dipcdipc library has two classes for distributed lock and semaphore, MemcacheLock
and MemcacheSemaphoreBoth of those clases has a first argument which is a list of memcached servers,
name of lock/semaphore, ttl - timeout (in seconds). MemcacheSemaphore class has additional
parameter value - which is number of processes that can access critical
section.acquire() method will wait forever until lock will be granted. You can specify
argument blocking=False, and then will this methid will return True/False
depending on if lock was granted or not.>>> from dipc import MemcacheLock
... ml = MemcacheLock(["localhost:11211"], "lock", ttl=60)
... ml.acquire()
... # critical section
... ml.release()>>> from dipc import MemcacheSemaphore
... ml = MemcacheSemaphore(["localhost:11211"], "semaphore", value=10, ttl=60)
... ml.acquire()
... # critical section
... ml.release()There are also decorators available: distributed_lock and distributed_semaphore
First argument is a list of hosts, but it also can be a function that returns
list of hosts (for those environments that have config file read in a lazy
manner)>>> from dipc.decorators import distributed_lock
...
... @distributed_lock(["localhost:11211"], "lock", ttl=60)
... def foo():
...     # body>>> from dipc.decorators import distributed_semaphore
...
... @distributed_semaphore(["localhost:11211"], "semaphore", value=10, ttl=60)
... def bar():
...     # body
Package: dipdup
DipDup is a Python framework for building smart contract indexers. It helps developers focus on business logic instead of writing a boilerplate to store and serve data. DipDup-based indexers are selective, which means only required data is requested. This approach allows to achieve faster indexing times and decreased load on underlying APIs.Ready to build your first indexer?Head toQuickstart.Looking for examples?Check outDemo ProjectsandBuilt with DipDuppages.Want to participate?Vote foropen issues, joindiscussionsorbecome a sponsor.Have a question?Join ourDiscordor tag @dipdup_io onTwitter.This project is maintained by theBaking Badteam.Development is supported byTezos FoundationandOnlyDust.
Package: dipense
DiPense@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@!@@@@@!@@!@@@@@!@@!@!@@@!@@@@!!@!@!@!@!!@!@!@!@!!@!!@!@!!@!!@!@!@!@!!!@@!@@!@!@!!!:!@!@!!@!!!@@!!@!!!:!!@!!!!!!!!!@!!!!!!!!:!@!!!!!!@!!!!!!!!:!!:!!!!!:!!:!!:!!:!!!!:!!!::!:!:!:!::!::!::!:!:!!:!:!::::::::::::::::::::::::::::::::::::::::::::::::::::::::An OSINT tool for IT ninjasUsageFirst we recommend creating a virtual environmentpython -m venv venvand then activate itsource venv/bin/activateOnce that finish now install the library usingpipinstall--upgradedipenseWait for the installation to finish, basically the library was uploaded usingsdist(Source Distribution)After that, create a new file let call itroute.pyin the file put the below codefromdipenseimportpayloadsfromdipense.structureimporthelperif__name__=='__main__':payloads(helper)save the file and navigate to where the file is located in terminal and your are ready to goTo find information about a domain name run the file like:pythonroute.pypayloadwho-dgoogle.com# orpythonroute.pypayloadwho--domaingoogle.comTo find information about an ip address run the file like so below, and the command require root previlage (super user):pythonroute.pypayloadip-i198.3.11.7# orpythonroute.pypayloadip--ip198.3.11.7You can also specify a flag of-oor--opentoTruethis will automatically open a webbrowser showing you where that ip address is located, like:pythonroute.pypayloadip-i198.3.11.7-oTrue# orpythonroute.pypayloadip-i198.3.11.7--openTrueTo find information about a phone number run the file like you see below, be sure to start with the country code of that phone number:pythonroute.pypayloadnum-n+2349083513047# orpythonroute.pypayloadnum--number+2349083513047To see positional argument and flags available run the file without any flag or positional argument like:pythonroute.pyVersion Statusversion 0.1.5Useful linksDocumentation:https://dipense.readthedocs.ioRepository:https://github.com/usmanmusa1920/dipenseDocker-hub Release:https://hub.docker.com/r/usmanmusa/dipensePYPI Release:https://pypi.org/project/flask-unityDiPense at a glance (docker)DiPense at a glance (pypi)Pull requests are welcomeChange Log0.1.5 (10/october/2023)Sixth (0.1.5) ReleaseFifth (0.1.4) ReleaseFourth (0.1.3) ReleaseThird (0.1.2) ReleaseSecond ReleaseFirst Release
Package: dipl
DIPLThis module is a quick reading/parsing tool for Dimensional Input Parameter Language (DIP) that is a part of largerscinumtoolsproject.
For more information about DIP, please visit its officialdocumentation.
More functionality can be reqested inGitHub Issues.Reading DIP codeLoading DIP code from a string is straightforward.>>>importdipl>>>>>>text=""">>> width float = 23.34 cm>>> age int = 23 yr>>>   !tags ["body"]>>> """>>>dipl.load(text){'width':(23.34,'cm'),'age':(23,'yr')}It is also possible to change data output format,>>>fromdiplimportFormat>>>dipl.load(text,Format.VALUE){'width':23.34,'age':23,}or to select only requested nodes using query, or tags:>>>dipl.load(text,query="width"){'width':(23.34,'cm'),}>>>dipl.load(text,tags=["body"]){'age':(23,'yr'),}Parsing DIP codePython dictionaries can be parsed into DIP code, provided that they have a proper structure.
An example parsing is shown below.>>>importdipl>>>importnumpyasnp>>>fromscinumtools.unitsimportQuatity>>>>>>data={>>>'body':{>>>'width':Quantity(172.34,'cm'),>>>'age':(23,'yr'),>>>},>>>'married':True,>>>'name':"John",>>>'kids':["Alice","Williams"],>>>'lucky_numbers':np.array([23,34,5]),>>>}>>>dipl.dump(data)bodywidthfloat=172.34cmageint=23yrmarriedbool=truenamestr="John"kidsstr[2]=["Alice","Williams"]lucky_numbersint[3]=[23,34,5]
Package: diploma
diplomaA JupyterLab extension.RequirementsJupyterLab >= 3.0InstallTo install the extension, execute:pipinstalldiplomaUninstallTo remove the extension, execute:pipuninstalldiplomaContributingDevelopment installNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the diploma directory# Install package in development modepipinstall-e"."# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Rebuild extension Typescript source after making changesjlpmbuildYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmwatch# Run JupyterLab in another terminaljupyterlabWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).By default, thejlpm buildcommand generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:jupyterlabbuild--minimize=FalseDevelopment uninstallpipuninstalldiplomaIn development mode, you will also need to remove the symlink created byjupyter labextension developcommand. To find its location, you can runjupyter labextension listto figure out where thelabextensionsfolder is located. Then you can remove the symlink nameddiplomawithin that folder.Packaging the extensionSeeRELEASE
Package: diplomacy-strategist
Diplomacy StrategistGenerating strategies for Diplomacy.Free software: MIT licenseDocumentation:https://diplomacy-strategist.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2018-10-06)First release on PyPI.
Package: diploma-generator
python_diploma_generatorGenerate PDF diplomas using images and a CSV fileInstallpip install diploma_generatorUsage as moduleParams:background_image_path: path to the background imagex: x position of the name in cmy: y position of the name in cmw: width of the name in cmh: height of the name in cmfont_size: font size of the namefont_path: path to the fontfrom diploma_generator import DiplomaGenerator
diploma_generator = DiplomaGenerator(
        background_image_path,
        x, y,
        w, h,
        font_size, font_path
    )
diploma_generator.add_diploma_page(person_name, Optional[qr_code_text])

diploma_generator.save("output.pdf")Usage as CLI single diplomadiploma_generator \
    --background_image_path <path> \
    -n <name> \
    -xy "1,11" \
    -wh  "24,1" \
    -o "output.pdf"Usage as CLI multiple diplomasdiploma_generator \
    --background_image_path <path> \
    --csv <path> \
    -xy "1,11" \
    -wh  "24,1" \
    -o "output.pdf"Example CSV (name, qr, output)Nombre 1,Para el QR,diploma1
Nombre 2,,diploma.pdf
Nombre 3,,
Package: diplomat
diplomatdiplomatis the arbiter between shell scripts and commands. You give it
commands, and it gives you back diplomats that you can inquire about the
state of those commands, their output, and files containing their complete
output thus far.Installationpip install diplomatUsageADiplomatis a high level, yet simple interface to commands and scripts.
You can give it shell commands as variable arguments, and it will execute
them asynchronously using subprocesses, writing the output into files.fromdiplomatimportDiplomatdiplo=Diplomat("ls","-l","example")assertdiplo.is_running()# we can register asynchronous exit functions, can also be provided to# constructor as on_exit, along with pre_start and post_startdiplo.register_exit_fn(lambdax:print("Diplomat is done"))diplo.wait()output=diplo.output()file_name=diplo.output_file_name()diplo.has_finished()Output files can also be reused by providing theoutanderrkeyword
arguments to the constructor ofDiplomat.AnAttacheeis an unprivileged grunt worker. It’s a read-only copy of aDiplomat, or an interface to the files that aDiplomatcreated.fromdiplomatimportAttachee,Diplomatdiplo=Diplomat("ls","-l","example")diplo.wait()# we can create an attachee either from the diplomat directlyatt=diplo.to_attachee()# or from the file names; this is useful if we saved those# references somewhere, for instance in a databaseout=diplo.output_file_name()err=diplo.error_file_name()att=Attachee(out,err)Have fun!
Package: dippy.core
Dippy.CoreThis is a bare-bones Discord gateway client that can be used to build Python bot frameworks for Discord.Installationpipinstalldippy.coreUsageConnectingfromdippy.coreimportGatewayConnection,Intentsfromasyncioimportget_event_loopclient=GatewayConnection("YOUR.TOKEN.HERE",intents=Intents.DEFAULT|Intents.MEMBERS)loop=get_event_loop()loop.create_task(client.connect())loop.run_forever()Watching For Eventsasyncdefon_ready(event_payload):print(event_payload.data)client.on(on_ready,"READY")FutureAdd models to wrap the event payload dataAdd a caching interfaceAdd rate limitingAdd methods to models for using the gateway
Package: dippykit
# dippykit - A Digital Image Processing LibraryAuthors: Brighton Ancelin, [Motaz Alfarraj](https://motaz.me), [Ghassan AlRegib](https://ghassanalregib.info).This library was developed for the Georgia Tech’s graduate course [ECE 6258: Digital Image Processing](https://ghassanalregib.info/ece6258) with Professor [Ghassan AlRegib](https://ghassanalregib.info).Documentation can be found [here](https://dippykit.github.io/dippykit/).## PurposeThis package is intended for use by Digital Image Processing students. It serves as an educational resource.
The general methodology for the package is that each module contains functions pertinent to a specific concept or field.
For convenience to the user, all functions are available directly through the package itself. In other words, users are
not tasked with specifying modules to access specific members. The organization of modules is a logical “under-the-hood”
aspect in this regard.## Known IssuesOn some Mac devices this library has issues when running on Python 3.6.9 and up. Notably, Python may crash whenever one
attempts to invoke the backend to matplotlib through functions such asdippykit.show. We are working to resolve
these issues, but for the moment we recommend any Mac users to use Python 3.6.8 with this library.## Versioning Scheme
This code is maintained under theSemantic Versioning 2.0.0versioning scheme, further defined
[here](https://semver.org/) In essence, the version is represented as MAJOR.MINOR.PATCH and each increments by the
following rules:Increment MAJOR when incompatible API changes are madeIncrement MINOR when backwards-compatible functionality is addedIncrement PATCH when backwards-compatible bug fixes are made
Package: dip-python
dippyDippy is DIP(Digital Image Processing) in Python3.This library depends on Numpy only.Installation$ pip install dip-pythonFeaturesAlgorithmConvertInverse NegPogColorrgb2grayrgb2bgrrgb2hsvbinarizethresholdotsuHistgram EqualizationTonecurvePolygonalGammaPosterizationNearest NeighhborEqualityDithering(support 2way)Nearest NeighborFloyd-SteinbergSierra LiteAtkinsonPoison Disk SamplingDeclease ColorkMeansFilteringSpatialAverageWeighted AverageGaussianPrewittSobelLaplacianSharpingk-Nearest NeighborBilateralNon-Local MeanMedianFreaquencyLow PassHigh PassBand PassHigh EmphasisGaussian Low PassGaussian High PassGaussian Band PassGaussian High EmphasisResizeNearest NeighborBi-LinearBi-CubicLanczosImage OperationAlpha BlendingEmbossMaskUtilsI/OBMPPNGJPEGGIFDrawingLineRectangleCircleFontsExtraPrintBraileAAAnimationTUIPrintImageHistgramSpectrumProcessing
Package: diproperm
DiProPermauthor:Iain Carmichael_Additional documentation, examples and code revisions are coming soon.
For questions, issues or feature requests please reach out to Iain:iain@unc.edu.OverviewThis package implements Direction-Projection-Permutation for High Dimensional
Hypothesis Tests (DiPoPerm). For details see Wei et al, 2016 (paper link,arxiv link). DiProPerm "rigorously assesses whether a binary linear classifier is detecting statistically significant differences between two high-dimensional distributions."Wei, S., Lee, C., Wichers, L., & Marron, J. S. (2016). Direction-projection-permutation for high-dimensional hypothesis tests. Journal of Computational and Graphical Statistics, 25(2), 549-569.InstallationThe diproperm package can be installed via pip or github. This package is currently only tested in python 3.6.::pip install diproperm::git clone https://github.com/idc9/diproperm.git
python setup.py installExample.. code:: pythonfrom sklearn.datasets import make_blobs
import numpy as np
import matplotlib.pyplot as plt
# %matplotlib inline

from diproperm.DiProPerm import DiProPerm

# toy binary class dataset (two isotropic Gaussians)
X, y = make_blobs(n_samples=100, n_features=2, centers=2, cluster_std=2)

# DiProPerm with mean difference classifier, mean difference summary
# statistic, and 1000 permutation samples.
dpp = DiProPerm(B=1000, stat='md', clf='md')
dpp.fit(X, y)

dpp.test_stats_['md'].. code:: python{'Z': 11.704865481794599,
 'cutoff_val': 1.2678333596648679,
 'obs': 4.542253375623943,
 'pval': 0.0,
 'rejected': True}.. code:: pythondpp.hist('md').. image:: doc/figures/dpp_hist.pngFor more example code seethese example notebooks_.Help and SupportAdditional documentation, examples and code revisions are coming soon.
For questions, issues or feature requests please reach out to Iain:iain@unc.edu.Documentation
^^^^^^^^^^^^^The source code is located on github:https://github.com/idc9/dipropermTesting
^^^^^^^Testing is done usingnose.Contributing
^^^^^^^^^^^^We welcome contributions to make this a stronger package: data examples,
bug fixes, spelling errors, new features, etc... _Iain Carmichael:https://idc9.github.io/.. _paper link:https://www.tandfonline.com/doi/abs/10.1080/10618600.2015.1027773.. _arxiv link:https://arxiv.org/pdf/1304.0796.pdf.. _these example notebooks:https://github.com/idc9/diproperm/tree/master/doc
Package: dipsl
Welcome to PyDIPSL!“Make your code tastier and serve your parameters with a nice DIP!”IntroductionDIPSL, or shorter DIP, is a serialization language for dimensional input parameters.
PyDIPSL is an implementation of DIP language for Python.
It was created in order to make initial conditions of physical codes easy to manage for developers and easier to type for users.
The most important features of DIP are:hierarchical structure of parametersvalidation of parameter valuesparameter referencing and value generation using expressionsautomatic conversion of physical unitsMore information, examples and description can be found inHTML documentation.
Package: dipswitch
DipswitchDipswitch is a Python module allowing for switch-case statements with a
similar structure to those in languages that natively support them.Usagefrom dipswitch import switch
for case in switch(2):
	if case(0):
		print("doesn't execute")
	if case(1):
		print("doesn't execute")
		break
	if case(2):
		print("executes")
	if case(3):
		print("executes")
		break
	if case(4):
		print("doesn't execute")
		break
	if case.default():
		print("doesn't execute")
Package: dipus
Dipus is a simple full-text search server usingWhoosh. Dipus is
integrated to theSphinx document builder.You can search document quickly and with N-gram.How to install% pip install dipusDependenciesPython 2.7SphinxwhooshsimplejsonbottleHow to UseStart dipus serverpython -m dipus.websetup -c conf.jsonconf.json example{
  "indexroot": "/path/to/index"
}Dipus server default url is “http://0.0.0.0:9876”.Register sphinx documentAdd extension to your conf.pyextensions = ['dipus.dipusbuilder']and there are optional settings.#dipus_server_url = "http://192.0.2.20"
#  url of dipus server
#  Default is "http://localhost:9876"

#dipus_index = "test_rst"
#  identifier of this document
#  Default is same as 'project' in conf.pyRun builder% sphinx-build -b dipus source buildCAUTION: builder willoverwrite_static/search_dipus.js and _template/search_dipus.html.copy search fileNote: This required once when after you change conf.py dipus related values.% cp _template/search_dipus.html _template/search.htmlIf you have created your own search.html, please merge it.make html as usual% make htmlNote about builder will be done quickly, as “fire-and-forget”. But
indexing itself on the server is not so quick. Please be patient until
all your document will be indexed.(optional) add dipus builder to MakefileAdd line which invoke dipus builder in the html section in Makefile
as blow.html:
    $(SPHINXBUILD) -b dipus $(ALLSPHINXOPTS) $(BUILDDIR)/html
    $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html

Then, whenever type 'make html', documents are registerd.Search from sphinx documentJust open your search box and type.RequirementsPython 2.7 (sorry, not 3 currently)sphinxwhooshsimplejsonbottleSecurityDipus is for the internal use only.If you want to use at the public, use google.TODOtest test testSecurityPython 3Admin Screencorrect highlighting(a.k.a. snippet) on the search resultloggingsearch over multiple documentsAnalyzer selected by each document
Package: dipwmsearch
PackagedipwmsearchDescriptionThis package provides efficient functions to search for one kind of probabilistic motifs known asdi-nucleotidic Position Weight Matrices(di-PWMs) in a genomic sequence. The genomic sequence may contain positions with non-ATGC symbols, encoded with IUPAC.DocumentationA fulldocumentationdetails how to install and use the package, and also provides ready-to-use scripts for searching a motif in FASTA sequence.Please refer to:https://rivals.lirmm.net/dipwmsearch/Contact:dipwm@lirmm.frLicenseLicense type:CeCILL-BAuthorsMarie Mille (main contributor)Bastien CazauxJulie RipollEric RivalsDependenciesBasics to installpyahocorasickdocumentationFor testspytestpandas
Package: dipy
DIPY[DIPYREF]is a python library for the analysis of MR diffusion imaging.DIPY is for research only; please contactadmins@dipy.orgif you plan to deploy
in clinical settings.WebsiteCurrent information can always be found from the DIPY website -http://dipy.orgMailing ListsPlease see the DIPY community list athttps://mail.python.org/mailman3/lists/dipy.python.org/Please see the users’ forum athttps://github.com/dipy/dipy/discussionsPlease join the gitter chatroomhere.CodeYou can find our sources and single-click downloads:Main repositoryon Github.Documentationfor all releases and current development tree.Download as a tar/zip file thecurrent trunk.Installing DIPYDIPY can be installed usingpip:pip install dipyor usingconda:conda install -c conda-forge dipyFor detailed installation instructions, including instructions for installing
from source, please read ourinstallation documentation.LicenseDIPY is licensed under the terms of the BSD license.
Please see theLICENSE file.ContributingWe welcome contributions from the community. Please read ourContributing guidelines.Reference[DIPYREF]E. Garyfallidis, M. Brett, B. Amirbekian, A. Rokem,
S. Van Der Walt, M. Descoteaux, I. Nimmo-Smith and DIPY contributors,
“DIPY, a library for the analysis of diffusion MRI data”,
Frontiers in Neuroinformatics, vol. 8, p. 8, Frontiers, 2014.
Package: dir2html
Dir2htmlA simple utility to generate an html album from a given directory.InstallationUse the package managerpipto install dir2html.pipinstalldir2htmlUsage$dir2html-i<input_directory>-o<output_directory>-t<album_title>-d<album_description>ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: dir2json
This tool creates a json tree structure from the file hierarchy of a directory.usagedir2json --pretty test/in a directory like thistest
├── bar
│   └── symlink.png -> ../foo/test.png
└── foo
    ├── test.jpg
    └── test.pnYields the following json output{
    "type": "directory",
    "path": "",
    "index": [
        {
            "type": "directory",
            "path": "foo",
            "index": [
                {
                    "type": "image/jpeg",
                    "path": "foo/test.jpg"
                },
                {
                    "type": "image/png",
                    "path": "foo/test.png"
                }
            ]
        },
        {
            "type": "directory",
            "path": "bar",
            "index": [
                {
                    "type": "image/png",
                    "link": "foo/test.png",
                    "path": "bar/symlink.png"
                }
            ]
        }
    ]
}