Saravanan666/pypi-org huggingface dataset:
Package: portage
About PortagePortage is a package management system based on ports collections. The
Package Manager Specification Project (PMS) standardises and documents
the behaviour of Portage so that ebuild repositories can be used by
other package managers.ContributingContributions are always welcome! We've started usingblackto format the code base. Please make
sure you run it against any PR's prior to submitting (otherwise we'll probably
reject it).There areways to
integrateblack into your text editor and/or IDE.You can also set up a git hook to check your commits, in case you don't want
editor integration. Something like this:# .git/hooks/pre-commit (don't forget to chmod +x)#!/bin/bashblack--check--diff.One can also use pre-commit to run the configured pre-commit
hooks. Utilizing pre-commit has the advantage of running the linter
over only the changed files, resulting in a much faster pre-commit
hook. To use, install pre-commit and then install the hook to your
.git:emergedev-vcs/pre-commit
pre-commitinstallTo ignore commit 1bb64ff452 (and other reformatting commits) which is a
massive commit that simply formatted the code base using black - you can do
the following:gitconfigblame.ignoreRevsFile.git-blame-ignore-revsDependenciesPython and Bash should be the only hard dependencies. Python 3.9 is the
minimum supported version.Native ExtensionsPortage includes some optional native extensions which can be built
in the source tree by running the following command:python setup.py build_ext --inplace --portage-ext-modulesThe following setup.cfg settings can be used to enable building of
native extensions for all invocations of the build_ext command (the
build_ext command is invoked automatically by other build commands):[build_ext]
   portage_ext_modules=trueCurrently, the native extensions only include libc bindings which are
used to validate LC_CTYPE and LC_COLLATE behavior for EAPI 6. If the
native extensions have not been built, then portage will use ctypes
instead.Licensing and LegalesePortage is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.Portage 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 the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with Portage; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.More informationDEVELOPING contains some code guidelines.LICENSE contains the GNU General Public License version 2.NEWS contains new features/major bug fixes for each version.RELEASE NOTES contains mainly upgrade information for each version.TEST-NOTES contains Portage unit test information.LinksGentoo project page:https://wiki.gentoo.org/wiki/Project:PortagePMS:https://dev.gentoo.org/~ulm/pms/head/pms.htmlPMS git repo:https://gitweb.gentoo.org/proj/pms.git/
Package: portage-livecheck
livecheckTool for overlays to update ebuilds. Inspired by the MacPortsportsubcommand of the same name.InstallationOn Gentoo, add my overlay and install:eselectoverlayenabletatsh-overlay
emerge--sync
emergelivecheckCommand line usageUsage: livecheck [OPTIONS] [PACKAGE_NAMES]...

Options:
  -a, --auto-update            Rename and modify ebuilds.
  -d, --debug                  Enable debug logging.
  -e, --exclude TEXT           Exclude package(s) from updates.
  -W, --working-dir DIRECTORY  Working directory. Should be a port tree root.
  --help                       Show this message and exit.Heuristic update detectionThis package can do automated lookups based on commonly used hosts. Currently:GitHub archivesGitHub commit hashesGitHub releasesJetBrains productsPyPIThis works as long as the version system is usable with Portage's version
comparison function. For anything else, seePackage configuration.Package configurationFor packages that will not work with currently heuristic checking, a configuration file namedlivecheck.jsoncan be placed in the directory alongside the ebuild.Configuration keystype-none,regex, orchecksumbranch- The GitHub branch name to use for commitsno_auto_update- boolean - Do not allow auto-updating of this packageregex- The regular expression to usetransformation_function- string - Function to use to transform the version string. Currently
onlydotizeis supported. Others are for internal use.url- URL of the document to run regular expressions againstuse_vercmp- boolean - ifvercmpfrom Portage should be used. Default:true.Development useRunpoetry install --with=dev --with=docs --with=teststo set up a virtualenv.Fully copy/etc/portageto the root of your virtualenv. Then you must fixmake.profile. Also
consider making changes inrepos.confif necessary.Example:poetryshellcd"${VIRTUAL_ENV}/etc"cp-R/etc/portage.cdportage
ln-sf"$(readlink-f/etc/portage/make.profile)"make.profile
Package: portainer-api
Portainer API is an HTTP API served by Portainer. It is used by the Portainer UI and everything you can do with the UI can be done using the HTTP API. Examples are available athttps://gist.github.com/deviantony/77026d402366b4b43fa5918d41bc42f8You can find out more about Portainer at [http://portainer.io](http://portainer.io) and get some support on [Slack](http://portainer.io/slack/).  # Authentication  Most of the API endpoints require to be authenticated as well as some level of authorization to be used. Portainer API uses JSON Web Token to manage authentication and thus requires you to provide a token in theAuthorizationheader of each request with theBearerauthentication mechanism.  Example: &#x60;&#x60;&#x60; Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsInJvbGUiOjEsImV4cCI6MTQ5OTM3NjE1NH0.NJ6vE8FY1WG6jsRQzfMqeatJ4vh2TWAeeYfDhP71YEE &#x60;&#x60;&#x60;  # Security  Each API endpoint has an associated access policy, it is documented in the description of each endpoint.  Different access policies are available: * Public access * Authenticated access * Restricted access * Administrator access  ### Public access  No authentication is required to access the endpoints with this access policy.  ### Authenticated access  Authentication is required to access the endpoints with this access policy.  ### Restricted access  Authentication is required to access the endpoints with this access policy. Extra-checks might be added to ensure access to the resource is granted. Returned data might also be filtered.  ### Administrator access  Authentication as well as an administrator role are required to access the endpoints with this access policy.  # Execute Docker requests  PortainerDO NOTexpose specific endpoints to manage your Docker resources (create a container, remove a volume, etc…).  Instead, it acts as a reverse-proxy to the Docker HTTP API. This means that you can execute Docker requestsviathe Portainer HTTP API.  To do so, you can use the &#x60;/endpoints/{id}/docker&#x60; Portainer API endpoint (which is not documented below due to Swagger limitations). This endpoint has a restricted access policy so you still need to be authenticated to be able to query this endpoint. Any query on this endpoint will be proxied to the Docker API of the associated endpoint (requests and responses objects are the same as documented in the Docker API).NOTE: You can find more information on how to query the Docker API in the [Docker official documentation](https://docs.docker.com/engine/api/v1.30/) as well as in [this Portainer example](https://gist.github.com/deviantony/77026d402366b4b43fa5918d41bc42f8).   # noqa: E501
Package: portainer-ce-api
Portainer API is an HTTP API served by Portainer. It is used by the Portainer UI and everything you can do with the UI can be done using the HTTP API. Examples are available athttps://documentation.portainer.io/api/api-examples/You can find out more about Portainer at [http://portainer.io](http://portainer.io) and get some support on [Slack](http://portainer.io/slack/).  # Authentication  Most of the API endpoints require to be authenticated as well as some level of authorization to be used. Portainer API uses JSON Web Token to manage authentication and thus requires you to provide a token in theAuthorizationheader of each request with theBearerauthentication mechanism.  Example:  &#x60;&#x60;&#x60; Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbiIsInJvbGUiOjEsImV4cCI6MTQ5OTM3NjE1NH0.NJ6vE8FY1WG6jsRQzfMqeatJ4vh2TWAeeYfDhP71YEE &#x60;&#x60;&#x60;  # Security  Each API endpoint has an associated access policy, it is documented in the description of each endpoint.  Different access policies are available:  - Public access - Authenticated access - Restricted access - Administrator access  ### Public access  No authentication is required to access the endpoints with this access policy.  ### Authenticated access  Authentication is required to access the endpoints with this access policy.  ### Restricted access  Authentication is required to access the endpoints with this access policy. Extra-checks might be added to ensure access to the resource is granted. Returned data might also be filtered.  ### Administrator access  Authentication as well as an administrator role are required to access the endpoints with this access policy.  # Execute Docker requests  PortainerDOES NOTexpose specific endpoints to manage your Docker resources (create a container, remove a volume, etc…).  Instead, it acts as a reverse-proxy to the Docker HTTP API. This means that you can execute Docker requestsviathe Portainer HTTP API.  To do so, you can use the &#x60;/endpoints/{id}/docker&#x60; Portainer API endpoint (which is not documented below due to Swagger limitations). This endpoint has a restricted access policy so you still need to be authenticated to be able to query this endpoint. Any query on this endpoint will be proxied to the Docker API of the associated endpoint (requests and responses objects are the same as documented in the Docker API).NOTE: You can find more information on how to query the Docker API in the [Docker official documentation](https://docs.docker.com/engine/api/v1.30/) as well as in [this Portainer example](https://documentation.portainer.io/api/api-examples/).   # noqa: E501
Package: portainer-cli
Portainer CLIPowered byIlhasoft's Web Team.Portainer CLI is a Python software to use in command line. Use this command line interface to easy communicate with yourPortainerapplication, like in a continuous integration and continuous deployment environments.Installpip install [--user] portainer-cliUsageGlobal flagsFlagDescription-lor--localSave and load configuration file (.portainer-cli.json) in current directory.-dor--debugEnable DEBUG messages in stdoutconfigure commandConfigure Portainer HTTP service base url.portainer-cliconfigurebase_urlE.g:portainer-cliconfigurehttp://10.0.0.1:9000/login commandIdentify yourself and take action.portainer-cliloginusernamepasswordE.g:portainer-clilogindouglasd1234update_stack commandUpdate stack.portainer-cliupdate_stackidendpoint_id[stack_file][-env-file]E.g:portainer-cliupdate_stack21docker-compose.ymlEnvironment variables argumentsportainer-cliupdate_stackidendpoint_id[stack_file]--env.var=valueWherevaris the environment variable name andvalueis the environment variable value.FlagsFlagDescription-env-filePass env file path, usually.env-por--prunePrune services-cor--clear-envClear all environment variablesupdate_registry commandUpdate registry.portainer-cliupdate_registryid[-name][-url]E.g:portainer-cliupdate_registry1-name="Some registry"-url="some.url.com/r"AuthenticationYou can use authentication passing-aor--authenticationflag, but you must pass the-usernameand-passwordoptions.portainer-cliupdate_registry1-a-username=douglas-password=d1234request commandMake a request.portainer-clirequestpath[method=GET][data]E.g:portainer-clirequeststatusFlagsFlagDescription-por--printcPrint response content in stdout.DevelopmentThis project usePipenvto manager Python packages.With Pipenv installed, runmake installto install all development packages dependencies.Runmake lintto runflake8following PEP8 rules.Runmakeormake sdistto create/updatedistdirectory.
Package: portainer-ctl
Portainer controllerInstallpip install portainer-ctlFeaturesFully automated deploymentSupport for multiple config and secretSupport for .env files and multiple variablesSupport for api tokens introduced in portainer 2.11.0Usageusage: pctl [-h] [-T API_TOKEN] [-H HOST] [-U USERNAME] [-P PASSWORD] {deploy,destroy} ...

Portainer deployment client

optional arguments:
  -h, --help            show this help message and exit
  -T API_TOKEN, --api-token API_TOKEN
                        api token for user, overrides PORTAINER_TOKEN variable
  -H HOST, --host HOST  portainer host, overrides PORTAINER_HOST variable; defaults to `http://localhost`
  -U USERNAME, --username USERNAME
                        username to login, overrides PORTAINER_USERNAME variable; defaults to `admin`
  -P PASSWORD, --password PASSWORD
                        password for user, overrides PORTAINER_PASSWORD variable; defaults to admin

subcommands:
  valid subcommands

  {deploy,destroy}      additional help

Use it to automate workflows for less mouse clicks!You can provide host, username and password in environment:PORTAINER_HOSTPORTAINER_USERNAMEPORTAINER_PASSWORDPORTAINER_TOKENdeploy commandusage: pctl deploy [-h] -f COMPOSE_FILE -n NAME -E {staging,production}
                   [-S STACK_NAME] [--env-file ENV_FILE] [-e VARIABLE]
                   [-c CONFIG] [-s SECRET]

options:
  -h, --help            show this help message and exit
  -f COMPOSE_FILE, --compose-file COMPOSE_FILE
                        compose manifest file
  -n NAME, --name NAME  deployment name
  -E {staging,production}, --environment {staging,production}
                        environment to deploy on
  -S STACK_NAME, --stack-name STACK_NAME
                        use this to override stack name
  --env-file ENV_FILE   dot env file used for deployment, it will be used as
                        stack environment in portainer
  -e VARIABLE, --variable VARIABLE
                        environment variable `SOME_ENV=some-value`
  -c CONFIG, --config CONFIG
                        create config; args must be like `local-path-to-
                        file:conf-name`; NOTE that as configs are immutable
                        and might be already in use, your config name must not
                        exist! use versioning or date in names to always get a
                        new name
  -s SECRET, --secret SECRET
                        create a new secret; see --config.
Package: portainer-deploy-tool
portainer_deploy_tool使用portainer部署更新服务的工具使用本工具提供pip安装pip install portainer_deploy_tool以及docker镜像hsz1273327/portainer_deploy_tooldocker镜像中已经申明了ENTRYPOINT [ "python","-m", "portainer_deploy_tool"]支持3个子命令:updateserviceinstack用于更新某个服务对应的镜像后根据指定的路径更新stackupdateservicebywebhooks用于在portainer上激活webhook后通过调用webhook更新服务(不建议指定tag,这会让stack和实际执行不一致)createorupdatestack用于根据目录下的指定后缀的文件来创建或者更新stack配置.具体参数及含义可以用-h命令查看0.0.5接口修改子命令createorupdatestack新增参数deploy_next_wait用于每次部署时保持一个间隔0.0.4bug修复修复createorupdatestack在没有stack时无法部署的问题0.0.3接口修改子命令updateservicebywebhook的tokens参数现在是位置参数子命令updateservicebywebhook现在可以用执行目录下的update_service_by_webhooks_config.json文件作为配置子命令createorupdatestack的endpoints参数现在是位置参数子命令createorupdatestack现在可以用执行目录下的create_or_update_stack_config.json文件作为配置子命令updateserviceinstack的deploy_path参数参数现在是位置参数子命令updateserviceinstack现在可以用执行目录下的update_service_in_stack_config.json文件作为配置bug修复修复updateservicebywebhook的调用url错误0.0.2接口修改updateservicebywebhook现在可以设置多个tokenartifact_version和tag_prefix参数被取消现在retry_max_times和retry_interval_backoff_factor作为哦三个子命令的共有参数,retry_interval被移除,现在重试的间隔时间将根据公式{backoff factor} * (2 ** ({number of total retries} - 1))获得0.0.1项目创建
MIT LicenseCopyright (c) 2021 Python-ToolsPermission 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: portainer-py
Table of ContentsInstallationUsageFrom the command lineFrom pythonLicenseInstallationportainer-py is distributed onPyPIas a universal
wheel and is available on Linux/macOS and Windows and supports
Python 3.5+.$pipinstallportainer-pyUsageFrom the command lineThe only command currently supported isdeploy.
Use the help function to find out how to use it:$portainerpydeploy--helpUsage:portainerpydeploy[OPTIONS]Updateanddeployaportainerstack.Toeaseautomation,thisutilityalsosupportusingenvironmentvariablesinsteadofusingthesecommandlineoptions:--userPORTAINER_USERNAME--passwordPORTAINER_PASSWORD--hostPORTAINER_HOST--stacknamePORTAINER_STACK_NAME--stackfilePORTAINER_STACKFILEOptions:-f,--stackfilePATHPathtothestackfile.yml[required]-h,--hostTEXTURLtoPortainerhost[required]-u,--userTEXTPortainerusername[required]-p,--passwordTEXTPortainerpassword-n,--stacknameTEXTNameofthePortainerstack[required]-e,--envTEXTEnvironmentvariablestoaddtothestack--prune-envIftrue,willremoveexistingenvironmentvariablesfromthestack--prune-stackPruneservicesthatarenolongerreferenced--helpShowthismessageandexit.From pythonIf you’re running Portainer locally, which should be very easy using
Docker, connect to it like this:fromportainer_pyimportportainer_for_hostportainer=portainer_for_host("http://localhost:9000")portainer.login("<username>","<password>")stack=portainer.stack_with_name("my-stack")try:portainer.update_stack(stack["Id"],"path/to/stackfile.yml",env_vars={"foo":"bar"})except:PortainerErroraserror:print(error.message)Licenseportainer-py is distributed under the terms of theMIT License.
Package: portalcomponentscg
Portal ComponentsGetting StartedDependenciesYou need Python 3.7 or later to useportalcomponents.pip install setuptools
pip install wheel
pip install twineInstallationClone this repo to your local machine using:git clone https://github.com/ramirooliveiracg/cgcomponents.gitFeaturesFile structure for PyPI packagesSetup with package informationsLicense example
Package: portal-core
portal-coreis Portal System Core functions.RequirementPython >= 3.6Django >= 3.2Quick startInstall by pip# install from github master branch
pip install -U https://github.com/kacotam-si/portal-core/archive/master.tar.gzAdd “portal_core” to INSTALLED_APPSINSTALLED_APPS = [
    ...
    'portal_core',
    ...
]Set Valuse in settings#Usageimport portal_coreAcknowledgementsCHANGELOGAll notable changes to this project will be documented in this file.The format is based onKeep a
Changelogand this project
adheres toSemantic Versioning.[Unreleased] - 0000-00-00Added…Changed…Deprecated…Removed…Fixed…Security…The MIT License (MIT)Copyright (c) 2019 Kacotam System Integration TeamPermission 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: portale
Portale is minimalistic requests based HTTP/REST API client.Advantage over other libraries: Allows different cache timeout policy for each APISimple examplefromportaleimportPrefixedURLSessionsession=PrefixedURLSession('https://httpbin.org/')get_thing=session.GETRequest('anything?thing={0}',cache_ttl=10)thing=get_thing('snake')get_thing_by_name=session.GETRequest('anything?thing={name}',cache_ttl=10)thing=get_thing_by_name(name='snake')long_request=session.GETJSONRequest('delay/{n}',cache_ttl=20)result1=long_request(n=2).json()result2=long_request(n=2).json()# cached responseCachecache_ttlif not specified in Request initialization, session’s cache_ttl is used as default cache_ttl for all the APIs using same session.fromportaleimportPrefixedURLSessionsession=PrefixedURLSession('https://httpbin.org/',cache_ttl=10)get_thing=session.GETRequest('anything?thing={0}')long_request=session.GETJSONRequest('delay/{n}')Busting cachelong_request.cache.bust(n=n)Access cache metricsprint(long_request.cache.metrics)Testsnosetests-xvtests.py
Package: portal-gun
Command line tool that automates routine tasks associated with the management of Spot Instances on Amazon EC2 service.Primarily it is intended to simplify usage of AWS Spot Instances for Deep Learning. This focus will further shape the future development.DocumentationFull documentation can be found athttp://portal-gun.readthedocs.io.InstallationIt isstrongly recommendedto install Portal Gun ina virtual Python environment.To install the latest stable version from the PyPI:$ pip install -U portal-gunTo install the latest pre-release version from the PyPI:$ pip install -U portal-gun --preRefer to the documentation for details regardinggeneral configurationandportal specification.Basic Usage1. Persistent volumesUsevolumegroup of commands to work with EBS volumes.Create a new volume:$ portal volume createList created volumes:$ portal volume listUpdate previously created volume:$ portal volume update <Volume-Id> [-n <New-Name>] [-s <New-Size>]Delete previously created volume:$ portal volume delete <Volume-Id>2. PortalsCreate draft specification for a new portal:$ portal init <Portal-Name>Open a portal (request a new Spot Instance):$ portal open <Portal-Name>Connect to the Spot Instance via ssh:$ portal ssh <Portal-Name>Connect to the Spot Instance via ssh and attach to a tmux session (session name is optional):$ portal ssh <Portal-Name> -t [<Session-Name>]Close opened portal (cancel Spot Instance request):$ portal close <Portal-Name>Get information about a portal:$ portal info <Portal-Name>3. ChannelsStart syncing files across the channels configured for a portal:$ portal channel <Portal-Name>LicenseMIT licensed. See the bundledLICENSEfile for details.
Package: portalksp
Portalksp PackageA helper pip package for PortalkspAssumptions:Assuming python is installed on your system.Installation sets up commandSituation before installation::$ portalksp
bash: portalksp: command not foundInstallation right from the source tree (or via pip from PyPI)::$ python setup.py install

$ pip install portalkspNow, theportalkspcommand is available::$ portalksp
Welcome to Portalksp!