Saravanan666/pypi-org huggingface dataset:
Package: devo-utils
Devo Python UtilsThis package it's an extra for the Devo SDK and our clients. It can be used to:Order files.Generate fake data.File IO generators.RequirementsThis package require Python 3.5+ and devo-sdk packageQuick StartInstalling the package:You can install the Devo SDK by usingeasy_installorpip:#option 1
easy_install devo-utils

#option 2
pip install devo-utilsYou can use sources files, clonning the project too:#option 3
python setup.py install

#option 4
pip install .

#option 5 - dev option
pip install -e .DocumentationYou have specific documentation indocsfolder for each part of SDK:Faker: fake dataFile IOSorting dataIf you wrap a line with the block creator{% - set .... -%}Faker will not treat that line as a send line, if a variable is created without the hyphens, for example:{% set ....%}Faker will believe that it is a line to send, so you have to keep this in mindAnd examples inexamplesfolder.ContributingSeePython Utils contributing guide.Pull requests are welcome ☺Launch testsrun_tests scriptYou can run tests from the main folder of SDK
To launch this script, you need either the environment variables loaded in the system, or theenvironment.envfile in the root of the SDK with the correct values, since to test all the SDK functionalities it is necessary to connect to Devo for the tests of sending and extracting data. You has a example file calledenvironment.env.exampleIt's normal, by the way, TCP tests fails in clients or not Devo developers systems.~/projects/python-utils>pythonsetup.pytest~/projects/python-utils>pythonrun_tests.pyYou can add option "Coverage" for create HTML report about tests.~/projects/python-utils>pythonrun_tests.py--coverageRun using Unittest commandYou can see references inunittest documentationFor commands like:python-munittestdiscover-p"*.py"If you launch this command from the root directory of the SDK, you need to have the environment variables in your
system for all the tests that require connection to Devo can work, not being able to use the environment.env file
as in the script.Contact UsYou can contact with us atsupport@devo.com.LicenseMIT License(C) 2019 Devo, Inc.Permission 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.
Package: devp2p
Python implementation of the Ethereum P2P stackFree software: BSD licenseDocumentation:https://pydevp2p.readthedocs.org.Introductionpydevp2p is the Python implementation of the RLPx network layer.
RLPx provides a general-purpose transport and interface for applications to communicate via a p2p network. The first version is geared towards building a robust transport, well-formed network, and software interface in order to provide infrastructure which meets the requirements of distributed or decentralized applications such as Ethereum. Encryption is employed to provide better privacy and integrity than would be provided by a cleartext implementation.RLPx underpins the DEVp2p interface:https://github.com/ethereum/wiki/wiki/ÐΞVp2p-Wire-Protocolhttps://github.com/ethereum/wiki/wiki/libp2p-WhitepaperFull spec:https://github.com/ethereum/devp2p/blob/master/rlpx.mdDependenciesOn Ubuntu:$ sudo apt-get install libssl-dev build-essential automake pkg-config libtool libffi-dev libgmp-devFeaturesNode Discovery and Network FormationPeer Preference StrategiesPeer ReputationMultiple protocolsEncrypted handshakeEncrypted transportDynamically framed transportFair queuingSecurity Overviewnodes have access to a uniform network topologypeers can uniformly connect to networknetwork robustness >= kademliaprotocols sharing a connection are provided uniform bandwidthauthenticated connectivityauthenticated discovery protocolencrypted transport (TCP now; UDP in future)robust node discoveryHistory0.0.1 (2014-01-11)First release on PyPI.
Package: devpackage
DevPackageCommand line tools to help you develop your package.Preview> devp init mypack -license mit --md
> cd mypack
> ls -a
./  ../  .meta_version  LICENSE  README.md  build/  docs/  mypack/  setup.py  test/

> cat setup.py

from setuptools import setup, find_packages
...

with Path('README.md').open() as readme:
    readme = readme.read()
...
setup(
    name='mypack',
    ...
    long_description=readme,
    long_description_content_type="text/markdown",
    license='mit',
    python_requires='>=3.6.0',
    url='https://github.com/thautwarm/mypack',
    author='thautwarm',
    author_email='twshere@outlook.com',
    ...
    entry_points={"console_scripts": []},
    # above option specifies commands to be installed,
    # e.g: entry_points={"console_scripts": ["devp=devpackage.cli:run"]}
    install_requires=["devpackage"],
    platforms="any",
    ...
)

if isinstance(version, Version):
    meta_version = Path(".meta_version").open("w")
    version.increment(2, 1)
    for i in range(2, 0, -1): version.carry_over(i, 42)
    meta_version.write("method: autoinc\n")
    meta_version.write(f"current: {version}")

> python setup.py install && python -c "import mypack"
hello community, I'm thautwarm

> cat .meta_version
method: autoinc
current: 0.0.2Install & RequirementsTypepip install -U devpackageto install.Requires:wisepyliceUsagedevp init, Create a python package template and render some arguments using your git information.devp init <package name>
[-license <license name>]
[-pyversion <describe python version requires>]
[--md: use markdown as README instead of restructuredtext]
[--generation: make a <package name>/generation directory, for codegen]
[--timeversion: use timestamp to version your package when building]
[--autoversion: use auto counting to version your package when building]devp clean, Removebuild/,*.egg-info/,distafter building your package.Here are the descriptions ofdevpcommand:shell> devp --help
Available commands:
  clean
      clean some build caches


  init
      initialize developing python package.
      optional:
      --generation
          this project contains generated files.

      --autoversion
          default version decider, even if you don't specify this option.
          automatically increment package's version.
          if `--timeversion` is set, this option will be ignored.

      --timeversion
          automatically generate package's unique version through timestamp.

      --md
          use markdown as README.


  - package_name(positional or keyword arg)          : <class 'str'>
  - license(positional or keyword arg) = 'MIT'
  - pyversion(positional or keyword arg) = '>=3.6.0'
  - kwargs(**kwargs)
Package: devpi
devpiis a meta package installing two other packages:devpi-server:
for serving a pypi.python.org consistent
caching index as well as local github-style overlay indexes.devpi-web:
plugin for devpi-server that provides a web and search interfacedevpi-client:
command line tool with sub commands for
creating users, using indexes, uploading to and installing
from indexes, as well as a “test” command for invoking tox.For getting started seehttp://doc.devpi.net/Holger Krekel, September 2014
Package: devpi-auth-gitlab
An authentication plugin for use with gitlab-ci, utilising the built in registry token authentication scheme.InstallationSimply install the module onto the same server/python as yourdevpi-serverinstallationpip installdevpi-auth-gitlabYou will need to specify your gitlab registry server.
This url can be found in the ‘Registry’ page of your gitlab project on a line likedocker login registry.gitlab.comAdd this server address to the devpi-server arguments when you run it.devpi-server--host0.0.0.0--port3141--gitlab-registry-urlregistry.gitlab.comMake sure any gitlab user you want as well as the “gitlab-ci-token” user is added to your devpi index’s authentication listdevpi index-ccorona/prod volatile=Falseacl_upload="corona,gitlab-ci-token"bases="root/pypi"mirror_whitelist="*"UsageUsage from a Gitlab CI script is as simple as:deploy:
  script:
    - pip install devpi-client
    - devpi use https://devpi.localnet
    - devpi login "gitlab-ci-token" --password="$CI_BUILD_TOKEN"
    - devpi use "corona/prod"
    - devpi upload --formats sdist,bdist_wheelExtraThis hasn’t been tested, but really this plugin is a docker registry authenticator…. as such you should be able to authenticate against any docker registry supporting v2 api
Package: devpi-client
devpi-client: manage devpi-server, Python packaging and testingThedevpicommand line tool is typically used in conjunction
withdevpi-server.
It allows to upload, test and install packages from devpi indexes.Seehttps://doc.devpi.netfor quickstart and more documentation.SupportIf you find a bug, use theissue tracker at Github.For general questions useGitHub Discussionsor thedevpi-dev@python.org mailing list.For support contracts and paid help contactmail at pyfidelity.com.Changelog7.0.2 (2023-10-19)Bug FixesFix #992: Fix error added in 6.0.4 when old authentication data from before 6.x exists.7.0.1 (2023-10-15)Bug FixesFix #1005: useshutil.moveinstead ofPath.renameto move distribution after building to prevent cross-device link errors.Fix #1008: pass--no-isolationoption tobuildwhen determining name/version for documentation.7.0.0 (2023-10-11)Deprecations and RemovalsUsebuildinstead of deprecatedpep517package.Removed dependency on py package.
Plugins which expect py.path.local need to be adjusted to work with pathlib.Path.Dropped support for Python <= 3.6.Other ChangesNotePotentially breaking fix #939: devpi-common 4.x now has custom legacy version parsing (non PEP 440) after packaging >= 22.0 removed support. This might affect commands likedevpi removeif used with version ranges. Legacy versions were always and still are sorted before PEP 440 compliant versions, but the ordering between legacy versions might be affected.Fix #946: outputname==versioninstead ofname-versionfordevpi list-v.6.0.6 (2023-10-11)Bug FixesFix #997: Directly useBDist,SDistandWheelfrompkginfobased on file extension instead ofget_metadata, as the latter does auto-detection on content which fails in some cases.Fix #1002: cleanupbuilddirectory before running Sphinx to prevent build artifacts from being added to documentation zip.6.0.5 (2023-07-02)Bug FixesRemember URL whendevpi usecauses a 403, so one can usedevpi loginafterwards.Fix #978: Quote username and password when adding to URL.Fix #980: Remove long deprecated backward compatibility for old pluggy versions to fix error with pluggy 1.1.0.
Package: devpi-client-extensions
Some useful stuff arounddevpi client. Although this package is proudly namedextensions, currently there is only one thing implemented ready to be used:
a hook that uses passwords from.pypircorkeyringon login to devpi server
so you don’t have to enter your password if you store it for upload anyway.Install$pipinstalldevpi-client-extensionsUsageJust use thedevpi logincommand as usual:$devpiloginhoeflingUsinghoeflingcredentialsfrom.pypircloggedin'hoefling',credentialsvalidfor10.00hoursKeyring SupportSince version 0.3, reading credentials usingkeyringis supported.
Install the package withkeyringextras:$pipinstalldevpi-client-extensions[keyring]Example with storing the password in keyring:$keyringsethttps://my.devpi.url/hoefling$devpiloginhoeflingUsinghoeflingcredentialsfromkeyringloggedin'hoefling',credentialsvalidfor10.00hoursStats
Package: devpi-common
This package contains utility functions used by devpi-server and devpi-client.Seehttp://doc.devpi.netfor more information.Changelog4.0.3 (2023-11-23)Bug FixesAddis_prereleaseand other methods toLegacyVersionto fixget_sorted_versionswithstable=Trueand some other cases.4.0.2 (2023-10-15)Bug FixesDo not mark commands with returncodeNonefrom tox 4.x as failed.4.0.1 (2023-10-15)Bug FixesRestore flushing after each written line in new TerminalWriter.4.0.0 (2023-10-11)Deprecations and RemovalsRemovedHTMLPageclass originally vendored from pip.Dropped support for Python <= 3.6.FeaturesAddchdircontext handler in devpi_common.contextlib. Starting with Python 3.11 the original fromcontextlibis used.Hide username from URL representation.Added stripped down TerminalWriter frompylibrary which only supports coloring.Bug FixesFix #939: custom legacy version parsing (non PEP 440) after packaging >= 22.0 removed support.3.7.2 (2023-01-24)Bug FixesFix #928: correct default for pre-release matching after switching frompkg_resourcestopackaging.Fix #949: correct parsing of wheel tags for Python 3.10 and above.
Package: devpi-constrained
devpi-constrained: releases filter for devpi-serverThis plugin adds aconstrainedindex todevpi-server.
Theconstrainedindex is read-only and filters releases from its bases similar toConstraints Filesinpip.Installationdevpi-constrainedneeds to be installed alongsidedevpi-serverto enableconstrainedindexes.You can install it with:pip install devpi-constrainedThere is no configuration needed asdevpi-serverwill automatically discover the plugin through calling hooks using the setuptools entry points mechanism.MotivationIt is often useful to filter Python packages available for installation.
For example:Filter package versions with known security issuesProvide a “Known Good Set” of packages which have been testedPrevent installation of packages with incompatible licensesOnly allowing vetted packagesBlock package versions with breaking changesWithdevpi-constrainedit is possible to provide a package index which enables all of the above and more.UsageCreate aconstrainedindex withroot/pypias base:$ devpi index -c prod/devpi type=constrained bases=root/pypi
https://example.com/prod/devpi:
  type=constrained
  bases=root/pypi
  volatile=True
  acl_upload=root
  acl_toxresult_upload=:ANONYMOUS:
  constraints=
  mirror_whitelist=

$ devpi use prod/devpiWith no constraints set, all releases are available fromroot/pypi.Lets add a constraint forpip:$ devpi index constraints+="pip==6.0"
/prod/devpi constraints+=pip==6.0
https://example.com/prod/devpi?no_projects=:
  type=constrained
  bases=root/pypi
  volatile=True
  acl_upload=root
  acl_toxresult_upload=:ANONYMOUS:
  constraints=pip==6.0
  mirror_whitelist=Now onlypip 6.0will be listed when looking for releases ofpip:$ devpi list --all pip
http://localhost:3141/root/pypi/+f/610/3897f1bb68d3f/pip-6.0.tar.gz
http://localhost:3141/root/pypi/+f/5ec/6732505bd8be4/pip-6.0-py2.py3-none-any.whlAll other packages are still unconstrained.To block everything else we add the*constraint:$ devpi index constraints+="*"
/prod/devpi constraints+=*
https://example.com/prod/devpi?no_projects=:
  type=constrained
  bases=root/pypi
  volatile=True
  acl_upload=root
  acl_toxresult_upload=:ANONYMOUS:
  constraints=pip==6.0,*
  mirror_whitelist=This is the difference topipconstraints, where this isn’t possible.$ devpi list --all devpi-server
GET https://example.com/prod/devpi/devpi-server/
404 Not Found: no project 'devpi-server'Theconstraintsoption can be set in bulk from a file.
Create a fileconstraints.txtwith each constraint in one line:pip<8,>4
# a comment
devpi-server>=4Set theconstraintsoption on your index from the file:$ devpi index constraints="$(cat constraints.txt)"Changelog2.0.1 - 2023-03-18Fix filtering of simple links page.
[EvaSDK (Gilles Dartiguelongue)]2.0.0 - 2023-02-21Remove support for Python <= 3.6.Add testing for Python 3.8, 3.9, 3.10, 3.11 and PyPy-3.7.Require devpi-server >= 6.2.0.1.0.0 - 2019-08-05Initial release.
[fschulze (Florian Schulze)]
Package: devpi-discord
Installationdevpi-discordneeds to be installed alongsidedevpi-server.You can install it with:pip install devpi-discordFordevpi-serverthere is no configuration needed, as it will automatically discover the plugin through calling hooks using the setuptools entry points mechanism.Configurationdevpi-discord can trigger Discord notifications upon package upload.devpi index /testuser/dev discord_hook=https://discord.com/api/webhooks/…Environment Variables:You can also pass environment variables to configure the plugin. Yes it can be more simplier but it’s less secure and flexible be aware of thatDISCORD_HOOKto adjust the Discord hook URL used. Defaults to the devpi discord_hook value above. (Note: discord_hook provided by devpi takes precedence. Setting both will default to the value specified in devpi)Disable it !By removing the index configuration the plugin will not send any notification anymore:devpi index /testuser/dev discord_hook-=
Package: devpi-findlinks
devpi-findlinks: find-links view for devpi-serverThis plugin adds a new view to each index which lists all packages uploaded on that index or any index inherited except root/pypi.Installationdevpi-findlinksneeds to be installed alongsidedevpi-server.You can install it with:pip install devpi-findlinksThere is no configuration needed asdevpi-serverwill automatically discover the plugin through calling hooks using the setuptools entry points mechanism.UsageIn a default installation with a user nameduser1which has an index nameddev, the view would be accessible athttp://localhost:3141/user1/dev/+findlinks.Use such an url with the--find-linksoption ofpiporeasy_install.The view uses absolute URLs, to make it possible to use this view via proxy at any location for migration of old environments.Changelog3.0.0 - 2022-04-24Drop support for Python < 3.7. Support for Python versions will be dropped
with their respective end of lives.Fix plugin registration with pluggy >= 1.0.0.2.0.1 - 2019-12-02fix use of eggfragment for devpi-server >= 5.0.0.dropped testing with Python 2.6 and Python 3.4added testing with Python 3.6, 3.7 and 3.82.0.0 - 2016-12-06fixes for devpi-server 3.0.0, older versions aren’t supported anymore1.0.1 - 2015-09-30fixes for devpi-server 2.2.0, older versions aren’t supported anymore1.0.0 - 2014-08-12initial release
Package: devpi-json-info
devpi-json-info - JSON Info Plugin for devpiOriginThis plugin is based on a work @fschulze based on a question on
stackoverflow:https://stackoverflow.com/questions/63711923/devpi-how-to-get-root-package-json-served?noredirect=1#comment113022032_63711923PurposeThe plugin serves the infos for a Python package in JSON format.
This feature is e.g. used by micropython-upip.
Package: devpi-keycloak
Installationdevpi-keycloakneeds to be installed alongsidedevpi-server.You can install it with:pip install devpi-keycloakFordevpi-serverthere is no configuration needed, as it will automatically discover the plugin through calling hooks using the setuptools entry points mechanism.ConfigurationYou need to pass environment variables to configure the plugin.KEYCLOAK_HOOKto adjust the keycloak URL used.KEYCLOAK_REALMto adjust the keycloak realm used.
Package: devpi-lockdown
devpi-lockdown: tools to enable authentication for read accessThis plugin adds some views to allow locking down read access to devpi.Only tested with nginx so far.Installationdevpi-lockdownneeds to be installed alongsidedevpi-server.You can install it with:pip install devpi-lockdownUsageTo lock down read access to devpi, you need a proxy in front of devpi which can use the provided views to limit access.The views are:/+authcheckThis returns200when the user is authenticated or401if not.
It uses the regular devpi credential checks and an additional credential check using a cookie provided bydevpi-lockdownto allow login with a browser./+loginA plain login form to allow access via browsers for use withdevpi-web./+logoutDrops the authentication cookie.For nginx theauth_requestmodule is required.
You should use thedevpi-genconfigscript to generate your nginx configuration.
With devpi-server 6.0.0 or newer annginx-devpi-lockdown.confshould have been generated.
If not, then you need to add the following to your server block before the first location block:# this redirects to the login view when not logged inrecursive_error_pageson;error_page401=@error401;location@error401{return302/+login?goto_url=$request_uri;}# lock down everything by defaultauth_request/+authcheck;# the location to check whether the provided infos authenticate the userlocation=/+authcheck{internal;proxy_pass_request_bodyoff;proxy_set_headerContent-Length"";proxy_set_headerX-Original-URI$request_uri;proxy_set_headerX-outside-url$scheme://$http_host;# copy the value from your existing configurationproxy_set_headerX-Real-IP$remote_addr;# copy the value from your existing configurationproxy_passhttp://localhost:3141;# copy the value from your existing configuration}Changelog2.0.0 - 2021-05-16NoteThe nginx configuration has changed from 1.x.Dropped Python 2.7, 3.4 and 3.5 support.Support for devpi-server 6.0.0.Redirect back to original URL after login.With devpi-server 6.0.0 thedevpi-gen-configscript
creates anginx-devpi-lockdown.conf.Automatically allow locations required for login page.Show error message for invalid credentials.Support Pyramid 2.0.1.0.1 - 2018-11-16Fix import for Pyramid >= 1.10.0.Add /+static to configurationLock down everything by default in the configuration and only allow the
necessary locations1.0.0 - 2017-03-10initial release
Package: devpi-mirror-index-acl
This plugin adds the--acl-mirror-index-createcommand line option todevpi-server.
The option takes a list of user and group names which are allowed to create mirror indexes.Installationdevpi-mirror-index-aclneeds to be installed alongsidedevpi-serverto enable the command line option.You can install it with:pip install devpi-mirror-index-aclThere is no configuration needed asdevpi-serverwill automatically discover the plugin through calling hooks using the setuptools entry points mechanism.MotivationMirror indexes can take up a lot of resources in both storage and CPU.
Especially mirroring PyPI and other indexes with a lot of packages and releases.
This package allows limiting who can add such mirrors to prevent accidental or malicious resource exhaustion.UsageWhen using the--acl-mirror-index-createcommand line option, you provide a comma separated list of user or group names.The same applies when using theDEVPISERVER_ACL_MIRROR_INDEX_CREATEenvironment variable.When using a configuration yaml file you can use an explicit list:devpi-server:
  acl-mirror-index-create:
    - "root"