Saravanan666/pypi-org huggingface dataset:
Package: dep-graph-vh
Simple dependency graph resolverDescriptionThis is a simple graph dependency resolver.
It can parse dependencies in json files from the provided or default system-specific location
(/tmp/deps.jsonorC:\tmp\deps.json).
Parsed dependencies can be transformed into a fully resolved dedicatedDependencyGraphobject
that later may be converted into a string representation.Installationpip install dep_graph_vhUsagePrint graph from default location:python -m dep_graph_vhObtain a fully resolved dependency graph object from the provided or default location:importdep_graph_vhasdgdg.get_graph(file_location)# from specific locationdg.get_graph()# from default system-dependentPrint dependency graph object:importdep_graph_vhasdggraph=dg.get_graph()dg.print_dep_graph(graph)Developmentgit clone https://gitlab.com/hyhyniak.victor/dep_graph.git
cd dep_graph
pip install -e .

pip install -r dev_requirements.txtTests and Quality Assurancepython -m unittest

mypy .

pylint dep_graph_vh testBuild, deploy to PyPI and GitLab releaseWill be done as part of the CI pipeline after (and only after) new tag creation:Bump up the library version inpyproject.tomlcreate a new tag (e.g.3.0.1)
Package: dephell-archive
DepHell ArchiveModule to work with files and directories in archive inpathlibstyle.Goal:provide the same interface aspathlib.Pathfor archives.State:partially implemented. Need to implement more methods.InstallationInstall fromPyPI:python3-mpipinstall--userdephell_archiveUsagefrompathlibimportPathfromtempfileimportTemporaryDirectoryfromdephell_archiveimportArchivePathwithTemporaryDirectory()ascache:path=ArchivePath(archive_path=Path('tests','requirements','wheel.whl'),cache_path=Path(cache),)subpath=path/'dephell'/'__init__.py'withsubpath.open()asstream:content=stream.read()
Package: dephell-changelogs
Installationpython3-mpipinstall--userdephell_changelogsUsageGet changelog url:fromdephell_changelogsimportget_changelog_urlurl=get_changelog_url('dephell')url=get_changelog_url('https://dephell.readthedocs.io/')url=get_changelog_url('https://github.com/dephell/dephell/')Parse changelog:fromdephell_changelogsimportparse_changelogparsed=parse_changelog(url)parsed['0.8.0']# 'New commands:\n\n+ [dephell package bug]...'
Package: dephell-discover
Find project modules and data files (packagesandpackage_dataforsetup.py).Installationinstall fromPyPI:python3-mpipinstall--userdephell_discoverUsageGet root, packages, package_data,package dir:frompathlibimportPathfromdephell_discoverimportRootroot=Root(path=Path('../dephell'))root.packages# [Package(path=Path('../dephell/dephell'), root=Path('../dephell')), ...]root.data# {Data(path=Path('../dephell/dephell/templates'), ext='.j2', package=Package(...)), ...}root.package_dir# {'': '.'}Package properties:p=root.packages[-1]p.path# Path('../dephell/dephell/commands')p.root# Path('../dephell')p.module# 'dephell.commands'str(p)# 'dephell.commands'list(p)# [Path('../dephell/dephell/commands/base.py'), ...]Data properties:d=next(iter(root.data))d.path# Path('../dephell/dephell/templates')d.ext# .j2d.package# Package(path=Path('../dephell/dephell'), root=...)d.module# 'dephell'# relative path from package root:d.relative# 'templates/*.j2'str(d)# 'templates/*.j2'list(d)# [Path('../dephell/dephell/templates/python.html.j2'), ...]Meta information:root.metainfo.summary# 'Python project management.'root.metainfo.authors# ['Gram (@orsinium)']root.metainfo.license# 'MIT'root.metainfo.version# '0.7.0'
Package: dephell-licenses
DepHell LicensesManage OSS licenses: retrieve information, generate.InstallationInstall fromPyPI:python3-mpipinstall--userdephell_licensesUsagefromdephell_licensesimportlicenses# ways to get a license:license=licenses.get_by_id('MIT')license=licenses.get_by_name('MIT License')license=licenses.get_by_classifier('License :: OSI Approved :: MIT License')# license objectlicense# License(id='MIT', classifier='License :: OSI Approved :: MIT License', name='MIT License', approved=True, deprecated=False, links=['https://opensource.org/licenses/MIT'], url='http://spdx.org/licenses/MIT.json')# generate licenselicense.make_text(copyright='2019 Gram')# 'MIT License\n\nCopyright (c) 2019 Gram\n\nPermission is hereby granted ...'Most popular licensesgorunstat.go|grep"License :: "|perl-F"\|"-lane'print $F[0] if $F[1]>100'|sortThere is the full list of the license classifiers with more than 100 projects that uses it:License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
License :: DFSG approved
License :: Free for non-commercial use
License :: Freely Distributable
License :: Freeware
License :: OSI Approved
License :: OSI Approved :: Apache Software License
License :: OSI Approved :: BSD License
License :: OSI Approved :: GNU Affero General Public License v3
License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
License :: OSI Approved :: GNU General Public License (GPL)
License :: OSI Approved :: GNU General Public License v2 (GPLv2)
License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)
License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
License :: OSI Approved :: ISC License (ISCL)
License :: OSI Approved :: MIT License
License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
License :: OSI Approved :: Python Software Foundation License
License :: OSI Approved :: Zope Public License
License :: Other/Proprietary License
License :: Public Domain
License :: Repoze Public License
Package: dephell-links
Parse dependency links.InstallationInstall fromPyPI:python3-mpipinstall--userdephell_linksUsagefromdephell_linksimportparse_linkparse_link('https://github.com/r1chardj0n3s/parse.git')# VCSLink(server='github.com', author='r1chardj0n3s', project='parse', vcs='git', protocol='https', user=None, ext='.git', rev=None, name='parse')link=parse_link('https://github.com/divio/django-cms/archive/release/3.4.x.zip')link# URLLink(https://github.com/divio/django-cms/archive/release/3.4.x.zip)link.name# 'django-cms'link=parse_link('./tests/test_parsing.py')link# FileLink(./tests/test_parsing.py)link.name# 'test_parsing'link.hash# 'sha256:ad7927cf442156980659eee391da849e54f472b4bafe20c32cdb242c153528d5'link=parse_link('./tests/')link# DirLink(./tests/)link.name# 'tests'
Package: dephell-markers
Work with environment markers (PEP-496).InstallationInstall fromPyPI:python3-mpipinstall--userdephell_markersUsagefromdephell_markersimportMarkersm=Markers('os_name == "posix" and python_version >= "2.7"')m.get_version(name='python_version')# '>=2.7'm.get_string(name='os_name')# 'posix'Markers('python_version >= "2.4" or python_version <= "2.7"').get_version(name='python_version')'<=2.7 || >=2.4'Markers('python_version >= "2.4" or python_version <= "2.7"').python_version# RangeSpecifier(<=2.7 || >=2.4)# Nothing better than lie:Markers('python_version == "2.4" or os_name == "linux"').get_version(name='python_version')# None
Package: dephell-pythons
Dephell PythonsWork with python versions.InstallationInstall fromPyPI:python3-mpipinstall--userdephell_pythonsUsagefromdephell_pythonsimportPythonspythons=Pythons()# get current:python=pythons.get_best()# properties:python.name# 'python3.7'python.path# Path('/usr/local/bin/python3.7')python.version# <Version('3.7.0')>python.lib_paths# [Path('/usr/local/lib/python37.zip'), Path('/usr/local/lib/python3.7'), ...]python.lib_path# Path('/home/gram/.local/lib/python3.7/site-packages')# get by versionpythons.get_best('3.5').version# <Version('3.5.2')># get by namepythons.get_best('python3').version# <Version('3.6.7')># get by specifierpythons.get_best('<3.7').version# <Version('3.6.7')># get by pathpythons.get_best('/usr/bin/python3.6').version# <Version('3.6.7')># get alllist(pythons)# [Python(...), Python(...), ...]# work not only with installed pythons:Pythons(abstract=True).get_best('>=2.8,<3.5').version# <Version('3.4')>
Package: dephell-setuptools
dephell_setuptoolsExtract meta information fromsetup.py.Install:python3 -m pip install --user dephell_setuptoolsCLI:python3 -m dephell_setuptools ./setup.pyLib:frompathlibimportPathfromdephell_setuptoolsimportread_setupresult=read_setup(path=Path('setup.py'))
Package: dephell-shells
Dephell ShellsRun shell for virtual environment.InstallationInstall fromPyPI:python3-mpipinstall--userdephell_shellsUsagefrompathlibimportPathfromdephell_shellsimportShellsshells=Shells(bin_path=Path('/home/gram/.../dephell-nLn6/bin'))shells.current# ZshShell(bin_path=Path('/home/gram/.../dephell-nLn6'), shell_path=Path('/usr/bin/zsh'))shells.current.run()CLIShow current shell path:$python3-mdephell_shells
/bin/zshActiavate venv:$python3.7-mdephell_shells./venv/bin
Package: dephell-specifier
Dephell SpecifierWork with version specifiers.Supported specifiers:PEP-440.NPM SemVer.Maven.RubyGemsInstallationInstall fromPyPI:python3-mpipinstall--userdephell_specifierUsagefromdephell_specifierimportRangeSpecifier'3.4'inRangeSpecifier('*')# True'3.4'inRangeSpecifier('<=2.7')# False'3.4'inRangeSpecifier('>2.7')# True'3.4'inRangeSpecifier('>2.7,<=3.4')# True'3.4'inRangeSpecifier('<2.7 || >=3.4')# True
Package: dephell-venvs
Dephell VEnvsManage Python virtual environments.InstallationInstall fromPyPI:python3-mpipinstall--userdephell_venvsGet venv from managerfrompathlibimportPathfromdephell_venvsimportVEnv,VEnvs# pass here path with substitutions:venvs=VEnvs(path=Path()/'{project}-{digest}'/'{env}')VEnvsgets argumentpaththat is path to the virtual environment with substitutions:{project}- last part of the path to the project.{digest}- short hash of full path to the project to avoid collisions.{env}- name of sub-environment because most of project need more than one environment. For example,tests,docs,tests-py35.Ways to getVEnvobject fromVEnvs:venvs.get(project_path, env). Pass here path to the project and sub-environment name and DepHell will substitute them is the path template and returnVEnvinstance for this path.venvs.get_by_name(name). Pass only name and this will be substituted as{project}and other substitutions ({digest},{env}) will be just dropped out.venvs.current-- returns current active venv if some venv is active.Example:venv=venvs.get(project_path=Path('dephell_venvs'),env='pytest')# VEnv(path=PosixPath('dephell_venvs/pytest'), project='dephell_venvs', env='pytest')Manage venvVEnvcan be got fromVEnvsot created manually:venv=VEnv(path=Path('venv'))Check existence:venv.exists()# FalseCreate and destroy:venv.create()venv.destroy()Some other useful information:venv.bin_path# PosixPath('dephell_venvs-njyT/pytest/bin')venv.lib_path# PosixPath('dephell_venvs-njyT/pytest/lib/python3.7/site-packages')venv.python_path# PosixPath('dephell_venvs-njyT/pytest/bin/python3.7')venv.prompt# 'dephell_venvs/pytest'venv.python# Python(path=PosixPath('dephell_venvs-njyT/pytest/bin/python3.7'), version='3.7.0', implementation='python', abstract=False)For details aboutPythonobject seedephell_pythons.
Package: dephell-versioning
dephell_versioningLibrary for bumping project version.Available schemes:calvercomverpepromanromversemverserialzeroverAvailable rules (and aliases):init-- initialize versioningMain parts:major(breaking)minor(feature)patch(fix,micro)Additional parts:devlocalpostPre-release management:pre(rc,alpha,beta)premajor(prebreaking)preminor(prefeature)prepatch(prefix,premicro)releaseRead more about schemes and rules in the documentation fordephell project bump.Installationinstall fromPyPI:python3-mpipinstall--userdephell_versioningUsageGet available schemes, rules, and aliases:fromdephell_versioningimportget_aliases,get_rules,get_schemesget_schemes()# frozenset({'roman', 'pep', ..., 'comver'})get_rules()# frozenset({'local', 'minor', ..., 'dev', 'preminor'})get_aliases()# frozenset({'alpha', 'rc', ..., 'micro', 'breaking'})# get rules for some scheme:get_rules(scheme='calver')# frozenset({'major', 'patch', 'init'})# get aliases for specific rules:get_aliases(rules={'major','minor'})# frozenset({'feature', 'breaking'})Bump version:fromdephell_versioningimportbump_versionbump_version(version='1.2.3',rule='minor',scheme='semver')# '1.3.0'# pass aliase instead of rule:bump_version(version='1.2.3',rule='feature',scheme='semver')# '1.3.0'# start rule from `+` to attach local version number:bump_version(version='1.2.3',rule='+456',scheme='semver')# '1.2.3+456'# for `init` version is optionalbump_version(version='',rule='init',scheme='semver')# '0.1.0'Bump version in a python file:fromdephell_versioningimportbump_filefrompathlibimportPath# returns `True` if version was bumpedbump_file(path=Path('dephell_versioning','__init__.py'),old='0.1.0',new='0.1.1')# True# old version is optional: any version will be bumped if old isn't foundbump_file(path=Path('dephell_versioning','__init__.py'),old='',new='0.1.2')# TrueUsedephell_discoverto find out the current version in a python project:fromdephell_discoverimportRootfrompathlibimportPathroot=Root(path=Path(),name='dephell_discover')# root.metainfo can be None if project isn't found in the given directoryifroot.metainfo:print(root.metainfo.version)# '0.1.2'
Package: dephp
Unofficial CLI application that decodes files throughhttp://www.unphp.netweb service.Helpusage: dephp [-h] [-V] [-m] [-a APIKEY] [-o OUTPUT] [file]

Unofficial CLI application that decodes files through unphp.net web service

positional arguments:
  file                  The file to read. If not specified it will be read
                        from STDIN

optional arguments:
  -h, --help            show this help message and exit
  -V, --version         show program's version number and exit
  -m, --metadata        Print response metadata
  -a APIKEY, --apikey APIKEY
                        Unphp.net API key
  -o OUTPUT, --output OUTPUT
                        Write the result to OUTPUT. If not specified it will
                        be printed to STDOUTConfiguration fileYou can save the unphp API key in a configuration file, either globally in/etc/dephp.confor locally in$HOME/.dephp.conf.Sample configuration:[DEFAULT]
apikey     = ABCDE # get one at http://www.unphp.net/api/request/
entrypoint = http://www.unphp.net/api/v2/post # defaultLICENSECopyright (c) 2014 Massimiliano Torromeodephp is free software released under the terms of the BSD license.See the LICENSE file provided with the source distribution for full details.ContactsMassimiliano Torromeo <massimiliano.torromeo@gmail.com>
Package: depict-control
Control yourDepict Frame <https://www.depict.com>from Python 3.5 withasyncio!This initial release is mainly targeting the functionality needed for basic integrations
with home automation systems:Sleep/wakeBrightness + contrastSetting current imageUsage exampleFinding frames on your networkTo find the IP addresses of all tables on your local network. This is a very naive search; it assumes your subnet
mask is255.255.255.0:from depict_control import Frame

ip_addrs = await Frame.find_frame_ips()Once you know the IP address, connect to the table (sessionis anaiohttp Sessionobject):async with await Frame.connect(session, ip_addr) as frame:
  # Do stuff hereBasic controlsIn addition to a bunch of properties for querying the current state of the frame,Framehas several methods that
allow simple control:await frame.set_brightness(100)  # Set backlight brightness
await frame.set_contrast(50)     # Set image contrast
await frame.set_image_url(url)   # Display an image
Package: depinfo
ExampleThe simplest way to display dependencies is to use the command line tool:depinfo "your-package-name"To print the dependencies of this package use (also try the--markdownoption):depinfo "depinfo"Package Information
-------------------
depinfo 2.2.0

Dependency Information
----------------------
black               22.3.0
importlib-metadata missing
isort               5.10.1
rich                12.4.4
tox                 3.25.0

Build Tools Information
-----------------------
pbr         5.9.0
pip        22.1.2
setuptools 62.3.2
wheel      0.37.1

Platform Information
--------------------
Linux   5.17.5-76051705-generic-x86_64
CPython                         3.10.2Alternatively you can use this package directly from Pythonfromdepinfo.applicationimportDisplayApplicationDisplayApplication.run("depinfo")CopyrightCopyright © 2018-2022, Moritz E. Beber.Free software distributed under theApache Software License 2.0.
Package: depinj
DepinjDepinj is a python dependency injection library based on type annotations, it allow's you to define members of a class, and if the type of those members are in the dependency injection system it will be injected once that is called. For exampleimportdepinjimportrandomclassRandomNumber:rnumber=random.random()classTestClass:rnumber:RandomNumberdepinj.add_scoped(RandomNumber)depinj.add_scoped(TestClass)test_class=depinj.get_scoped(TestClass)Thetest_classvariable will have an scoped RandomNumber instance, there is support for singletons to, with the functionadd_singleton.injectThere is aninjectdecorator that inject's the dependencies into function objects, for example following the previous code:importdepinj@depinj.injectdefprint_number(rn:RandomNumber):print(rn.rnumber)print_number()It can also be used in theinitmethod like this:classTestClass:rnumber:RandomNumber@pydep.injectdef__init__(self,rnumber:RandomNumber):self.rnumber=rnumbertest_class=TestClass()Depinj objectfromdepinjimportInjectordep=Injector()dep.add_scoped(SomeClass)This Injector object represent's the dependency injection system, in fact, the functions defined at top-level module are using a global instance of the Depinj class. This way you can have multiple dependency injection systems if you want to have different classes for each one.If you are going to use a different Injector object than the global one, then you have pass that object into theinjectfunction with theinjectornamed parameter.
Package: depix
DepixDepix is a tool for recovering passwords from pixelized screenshots.This implementation works on pixelized images that were created with a linear box filter.Inthis articleI cover background information on pixelization and similar research.Examplepython depix.py -p images/testimages/testimage3_pixels.png -s images/searchimages/debruinseq_notepad_Windows10_closeAndSpaced.png -o output.pngUsageCut out the pixelated blocks from the screenshot as a single rectangle.Paste aDe Bruijn sequencewith expected characters in an editor with the same font settings (text size, font, color, hsl).Make a screenshot of the sequence. If possible, use the same screenshot tool that was used to create the pixelized image.Runpython depix.py -p [pixelated rectangle image] -s [search sequence image] -o output.pngAlgorithmThe algorithm uses the fact that the linear box filter processes every block separately. For every block it pixelizes all blocks in the search image to check for direct matches.For most pixelized images Depix manages to find single-match results. It assumes these are correct. The matches of surrounding multi-match blocks are then compared to be geometrically at the same distance as in the pixelized image. Matches are also treated as correct. This process is repeated a couple of times.After correct blocks have no more geometrical matches, it will output all correct blocks directly. For multi-match blocks, it outputs the average of all matches.MiscUsage issuesDependency IssuesSee:https://github.com/beurtschipper/Depix/issues/12
Package: depixelate
DepixelateResize and depixel low resolution images.Usage$pipinstalldepixelateimportcv2importdepixelateoriginal_image=cv2.imread('image.jpg')result=depixelate.apply(original_image,7,600)ParamsTheapplymethod accepts 3 parameters:Image (Required): Original image to be changed.Weight (Optional): Indicates the power of the gaussian-blur algorithm. The higher the value, the more shape distortion. It must be between 1 and 10. Default value is 6.Width Scale (Optional): Indicates the width of the output image. Default value is 800.LimitationsDepixelate library helps with logos and some graphics, but it doesn't help when maximum sharpness and detail is needed.In the majority of cases, you'll want to improve the quality of low resolution images (about 300 pixels wide or less). Otherwise you might be a little disappointed.PlansAnti-aliasing
Package: depixelizer
DEPIXELIZING PIXEL ARTAn implementation of the paperDepixelizing Pixel Artby Kopf and Lischinski. The implementation is purely in python.INSTALLATION AND USAGE:Install via pip:pip install depixelizerUse in code:from depixelizer import Depixelize
    Depixelize(input_image_path, output_dir).run()or via command-line:usage: depixelize [-h] [--output_dir OUTPUT_DIR] image_path

    positional arguments:
    image_path            Input Pixel Art Image

    optional arguments:
    -h, --help            show this help message and exit
    --output_dir OUTPUT_DIR
                            Output Dir, defaults to os.cwd()RequirementsPythonpypng:https://pypi.python.org/pypi/pypngnetworkx:https://pypi.python.org/pypi/networkx/svgwrite:https://pypi.python.org/pypi/svgwrite/Citationshttps://johanneskopf.de/publications/pixelart/paper/pixel.pdfhttps://github.com/gityou/depixelizehttp://dev.crazyrobot.net/2011/07/12/pixelart-to-vector/https://code.launchpad.net/libdepixelizehttp://networkx.lanl.gov/index.htmlhttps://github.com/jerith/depixelhttps://svgwrite.readthedocs.org/en/latest/http://vinipsmaker.wordpress.com/2013/07/21/splines-extraction-on-kopf-lischinski-algorithm-part-1/http://vinipsmaker.wordpress.com/2013/08/13/splines-extraction-on-kopf-lischinski-algorithm-part-2/AuthorsAnirudh Vemula, Vamsidhar YedduComputer Science & Engineering, IIT Bombay