Saravanan666/pypi-org huggingface dataset:
Package: poetry2setup
Convert python-poetry(pyproject.toml) to setup.py.It only relies on poetry.core, so the effect is better than any other third-party software.I created this library because python-poetry does not support exporting to setup.py and dephell will generate setup.py incorrectly in some cases.Installpipinstallpoetry2setupUsageRun commandpoetry2setupin your project directory, it will displaysetup.pycontent in console. If you want to export tosetup.py, just runpoetry2setup > setup.py.
Package: poetry-add-requirements.txt
poetry-add-requirements.txtAdd dependencies specified in requirements.txt file(s) to your Poetry projectpoetry-add-requirements.txtFeaturesInstallationpipxpipUsageUsage examples and tipsDevelopFeaturesAuto detect charset of requirements.txt file(s) and feed normalized dependency specs topoetry.Stop on firstpoetry adderror.Ignore dependency version requirements specified in requirements.txt file(s).Ignore errors when installing individual dependencies.Pass arbitrary arguments topoetry addafter--at the end of the command.InstallationpipxThis is the recommended installation method.$ pipx install poetry-add-requirements.txtpip$ pip install poetry-add-requirements.txtUsageRunpoetry-add-requirements.txt, optionally specify your requirements.txt files and--devfor dev dependencies.poeareqis provided is an alias topoetry-add-requirements.txt.$ poeareq --help

usage: poetry-add-requirements.txt [-h] [-D] [-I] [-i] [-n] [-p ...] [-V]
                                   [requirements.txt file(s) ...]

Add dependencies specified in requirements.txt to your Poetry project

positional arguments:
  requirements.txt file(s)
                        Path(s) to your requirements.txt file(s) (default:
                        requirements.txt)

options:
  -h, --help            show this help message and exit
  -D, --dev             Add to development dependencies (default: False)
  -I, --ignore-version-requirements
                        Ignore dependency version requirements in
                        requirements.txt file(s) (default: False)
  -i, --ignore-errors   Ignore errors (default: False)
  -n, --dry-run         Dry run, do not add dependencies (default: False)
  -p ..., --poetry-args ...
                        Additional arguments to pass to Poetry, put this at
                        the END of the command (default: None)
  -V, --version         show program's version number and exitUsage examples and tipsFor examples, seetest-extra-args.sh.Tips:Put all req files before any optionsPut-p,--poetry-argsat the end of the commandPass-n,--dry-runto see the poetry commands that would be runDevelop$ git clone https://github.com/tddschn/poetry-add-requirements.txt.git
$ cd poetry-add-requirements.txt
$ poetry install
Package: poetry-alias
poetry-aliasPew-style project management forPoetry1.2 and higher.poetry-alias introduces a newaliascommand suite for Poetry which allows
you to define short names (“aliases”) for you Poetry-based projects, and then
use these to switch to the project directories from wherever you are.$ cd $HOME/src/myproject
[~/src/myproject]$ poetry alias add myproject
[~/src/myproject]$ cd
$ poetry alias go myproject
Spawning shell within /home/user/.cache/pypoetry/virtualenvs/myproject-Hyrvhkrx-py3.8
[~/src/myproject]$ . /home/user/.cache/pypoetry/virtualenvs/myproject-Hyrvhkrx-py3.8/bin/activate
[~/src/myproject]$InstallationInstall poetry-alias by running:poetry plugin add poetry-aliasCommandspoetry alias add eggs— define “eggs” as alias for the current project.
If a different project already used “eggs” as its alias, the command would
abort with a corresponding error message.  Multiple aliases can be defined
per project.poetry alias show— show all aliases for the current project.poetry alias list— list all project aliases in alphabetical order along
with their assigned project directories.poetry alias go eggs— change to the directory of the project aliased
“eggs”, and activate the virtualenv.poetry alias rm eggs— remove the “eggs” project alias.  The alias name
is optional for this command; if omitted, the current projects’ aliases
will be removed.poetry alias prune— remove all aliases that no longer point to a
project directory.poetry alias clean— remove all alias definitions.ContributeIssue Tracker:https://gitlab.com/obda/poetry-alias/-/issuesSource Code:https://gitlab.com/obda/poetry-aliasLicenseThe project is licensed under the MIT license.
Package: poetry-aliases
poetry-aliasespoetry-aliases is aPoetryplugin that enables the creation of aliases for Poetry
commands.Installationpoetryselfaddpoetry-aliasesUsageFirst, add aliases viapoetry aliases.poetryaliasespoetry aliaseswill open a file in$EDITORwhere you can view, add, and edit your aliases.# Write each alias on a separate line, e.g.:# i = "install"# r = "remove"# dev = "add --group dev"# plugins = "self show plugins"# Aliases that are not strings or conflict with other Poetry commands will be ignored.# Save this file and close the editor when you're done.i="install"r="remove"dev="add --group dev"plugins="self show plugins"Your aliases will be saved to Poetry'sconfig.tomlfile.Once your aliases have been saved, you can use them like any other Poetry command.poetryi# Installing dependencies from lock filepoetryryapf# Package operations: 0 installs, 0 updates, 1 removal#  • Removing yapf (0.32.0)poetrydevblack# Package operations: 3 installs, 0 updates, 0 removals#  • Installing mypy-extensions (0.4.3)#  • Installing pathspec (0.11.0)#  • Installing black (23.1.0)poetryplugins#  • poetry-aliases (1.0.0) Create aliases for Poetry commands#      1 application plugin##      Dependencies#        - click (>=8.1.3,<9.0.0)#        - poetry (>=1.3.2,<2.0.0)Licensepoetry-aliases is licensed under theMIT License.
Package: poetry-aliases-plugin
poetry-aliases-pluginPoetry plugin to run commands through aliasesFunctionalityЗапуск команд через псевдонимыЗапускЗапуск множества команд разделенных&&Преобразование команд для запуска через poetryДополнение командДобавление / Просмотр / Изменение / Удаление псевдонимов через cliQuick startpoetryselfaddpoetry-aliases-plugin
poetryaliasthis# ==> poetry run python -m thispoetrythis# ==> poetry run python -m thisDependencies[tool.poetry.dependencies]python=">=3.10"poetry=">=1.2.0"PS. Adaptation for earlier versions of python will someday appearInstallpoetryselfaddpoetry-aliases-plugin# uninstall: poetry self remove poetry-aliases-plugin# update: rm -r ~/.cache/pypoetry/{artifacts,cache} && poetry self update poetry-aliases-pluginSetupOn0.N.Nversion setup only inpyproject.toml:[tool.aliases]# config dict, where key - alias, value - full command / commands with "&&"alias="full command / commands with '&&'"test="poetry run pytest"runserver="poetry run python manage.py runserver"Useplugin command - "l"poetryl--help
poetryltest# ==> poetry run pytestpoetrylrunserver# ==> poetry run python manage.py runserverContributeIssue Tracker:https://gitlab.com/rocshers/python/poetry-alias-plugin/-/issuesSource Code:https://gitlab.com/rocshers/python/poetry-alias-plugin
Package: poetry-arbitrary-version-plugin
Poetry Arbitrary Version PluginAPoetryplugin that allows a project
builder to override the project version.  A project version can be
overriden for example during CI process. The version can be overriden
using the environment variablePROJECT_OVERRIDE_VERSIONor
the--override-versionswitch of the build command.InstallAdd the plugin to Poetry environment$poetryselfaddpoetry-arbitrary-version-pluginor install the plugin usingpipto the place wherePoetryis installed.$pipinstallpoetry-arbitrary-version-pluginUsageOverriding a project version byPROJECT_OVERRIDE_VERSIONenvironment variable:$PROJECT_OVERRIDE_VERSION=3.2.1poetrybuild-fsdistOverriden project version from 0.8.0 to 3.2.1Building poetry-arbitrary-version-plugin (3.2.1)- Building sdist- Built poetry_arbitrary_version_plugin-3.2.1.tar.gzOverriding a project version by the--override-versionswitch:$poetrybuild-fsdist--override-version=1.2.3Overriden project version from 0.8.0 to 1.2.3Building poetry-arbitrary-version-plugin (1.2.3)- Building sdist- Built poetry_arbitrary_version_plugin-1.2.3.tar.gz
Package: poetry-asterisk
Poetry-AsteriskThis library performs auto change dependency version to"*".
You can specify 3 parameters for detail setup.InstallationYou can install this library this way:poetry add poetry-asteriskor with pip:pip install poetry-asteriskUsageJust run:pasteriskIt has arguments:exclude_packages: specify what packages skip. Default: Noneexclude_groups: specify what groups skip (dev,lint, etc.). Default: Nonepath_to_pyproject: path to the pyproject.toml. By default asterisk searches in the root directory.Advanced example:pasterisk --exclude_packages "pytest, orjson" --exclude_groups "lint" --path_to_pyproject ./pyproject.tomlExample of workpyproject.tomlbefore update.[tool.poetry]name="test"version="0.0.1"description=""authors=["awesome man"]readme="README.md"[tool.poetry.dependencies]python=">=3.8.1,<4.0"pydantic="^2.4.2"[tool.poetry.group.test.dependencies]typing-extensions="^4.8.0"pytest="^7.4.3"[tool.poetry.group.lint.dependencies]ruff="^0.1.2"command:pasterisk --exclude_packages "pytest" --exclude_groups "lint"pyproject.tomlafter update. We didn't touchedpytestand the wholelintgroup[tool.poetry]name="test"version="0.0.1"description=""authors=["awesome man"]readme="README.md"[tool.poetry.dependencies]python=">=3.8.1,<4.0"pydantic="*"[tool.poetry.group.test.dependencies]typing-extensions="*"pytest="^7.4.3"[tool.poetry.group.lint.dependencies]ruff="^0.1.2"
Package: poetry-audit-plugin
Poetry Audit PluginPoetry plugin for checking security vulnerabilities in dependencies based onsafety.$ poetry audit
Scanning 19 packages...

  • ansible-runner     installed 1.1.2  affected <1.3.1   CVE PVE-2021-36995
  • ansible-tower-cli  installed 3.1.8  affected <3.2.0   CVE CVE-2020-1733 
  • jinja2             installed 2.0    affected <2.11.3  CVE CVE-2020-28493

3 vulnerabilities foundInstallationThe easiest way to install theexportplugin is via theplugin addcommand of Poetry.poetrypluginaddpoetry-audit-pluginIf you usedpipxto install Poetry you can add the plugin via thepipx injectcommand.pipxinjectpoetrypoetry-audit-pluginOtherwise, if you usedpipto install Poetry you can add the plugin packages via thepip installcommand.pipinstallpoetry-audit-pluginAvailable options--json: Export the result in JSON format.--ignore-code: Ignore some vulnerabilities IDs. Receive a list of IDs. For example:poetryaudit--ignore-code=CVE-2022-42969,CVE-2020-10684--ignore-package: Ignore some packages. Receive a list of packages. For example:poetryaudit--json--ignore-package=py,ansible-tower-cliExit codespoetry auditwill exit with a code indicating its status.0: Vulnerabilities were not found.1: One or more vulnerabilities were found.Develop poetry-audit-pluginYou can read this document to setup an environment to develop poetry-audit-plugin.First step is to install Poetry. Please readofficial documentand install Poetry in your machine.Then, you can install dependencies of poetry-audit-plugin with the following command.poetryinstallOnce you've done it, you can start developing poetry-audit-plugin. You can use test assets for the testing.cdtests/assets/no_vulnerabilities
poetryauditPlease lint, format, and test your changes before creating pull request to keep the quality../scripts/lint.sh
./scripts/format.sh
./scripts/test.shContributionHelp is always appreciated. Please feel free to create issue and pull request!LicenseThis project is licensed under the terms of the MIT license.
Package: poetry-auto-export
poetry-auto-exportAutomatically export dependencies to requirements.txt on every poetry lockThis plugin enables you to keep arequirements.txtfile always up to date with yourpoetry.lockfile. This is helpful if you want to usepipto install your dependencies somewhere, e.g.in CI/CD environmentsin docker containersUsageAdd plugin configuration to yourpyproject.toml. The options follow arguments forpoetry export.[tool.poetry-auto-export]output="requirements.txt"without_hashes=truewithout=["dev"]Then, run poetry commands as usual:poetrylockTherequirements.txtfile will be updated automatically.The supported commands are:lockupdateaddremoveCreating multiple export filesIf you need to create multiple requirements files, e.g.dev-requirements.txtandprod-requirements.txt, use the following syntax:[[tool.poetry-auto-export.exports]]output="dev-requirements.txt"without=["prod"][[tool.poetry-auto-export.exports]]output="prod-requirements.txt"without=["dev"]InstallationThis is a poetry plugin, so it's meant to be installed inside the global poetry environment, not your project environment like regular pacakges.
Seepoetry's docs.There are three ways of doing so.The pipx wayIf you are using pipx already, that's easy:pipxinjectpoetrypoetry-auto-exportThe pip wayOtherwise, you can use thepip that comes with poetry. The difficulty is finding that pip! It's not the same one you get withpoetry run pip.
Here is a best effort guess:On Linux:~/.local/share/pypoetry/venv/bin/pipinstallpoetry-auto-exportOn Windows:%APPDATA%\pypoetry\venv\bin\pipinstallpoetry-auto-exportThe poetry wayFor some reason, this isdiscouraged by poetry.poetryselfaddpoetry-auto-exportRoadmap and contributingThe primary goal of the project is to make it more convenient to work with poetry projects in CI/CD and docker. Contributions towards this goal are welcome!Roadmap:more unit tests for the pluginintegration tests for the pluginproper configuration parsing (note: typed dict and dataclasses can't support thewithoption, since it's a python keyword)schema or exhaustive documentation of the supported configuration options
Package: poetrybot
poetrybot is a Telegram bot to quote poems between friends. It’s written in
Python and it is released under the EUPL 1.2 license.Friends are defined by an allow list in which every account have to be in order
to to use the bot.
The management of the bot is provided by a REST API defined in the subpackagepoetrybot.web.InstallationCreate your bot using Telegram@BotFather.Install (preferably inside a virtualenv) the bot using:pip install poetrybotThe bot uses environment variables as configuration, you have to export the
following before starting it:export AUTH_TOKEN=<my secret auth token>
export DATABASE_URL=sqlite:////absolute/path/to/poetrybot.db
export TELEGRAM_TOKEN=<telegram bot API key>AUTH_TOKENis used to authenticate to the REST API used to manage the
bot. Full specification is in thedocs/openapi.ymlfile.
Just create a long enough random string, for example usingpwgen-sy50.Launch the bot:poetrybotTo use the REST API install a WSGI HTTP Server, for example gunicorn, and
then:gunicorn poetrybot.web.wsgi:appUse the REST API to insert allowed friends, poets and poems. The fastest way
to look at the API is to load the API specification intohttps://editor.swagger.ioAn alternative is to clone the repository and use the providedDockerfile.UsageTo use the bot you only have to use the/quotecommand. The bot can be
added to one or more channels but it’s not required. But remember that only
friends in allow list will be able to interact with the bot.The/quotecommand used without parameters will make the bot to quote a
random poem, but optionally the author and the argument can be specified:/quotereturns a random poem;/quote AUTHORreturns a random poem byAUTHOR.AUTHORis the name or part of the name of the poet case insensitive:/quote Giovanni Pascoli
/quote pascoli
/quote ascolwill return a random poem by Giovanni Pascoli, if you don’t have another
poet withascolinside the name;/quote AUTHOR about ARGUMENTreturns a random poem byAUTHORaboutARGUMENT.ARGUMENTis, likeAUTHOR, case insensitive and can be part of a word.aboutis, instead, case sensitive;/quote about ARGUMENTreturns a random poem aboutARGUMENT.
Package: poetry-brew
poetry-brewpoetry-brew is aPoetryplugin that generates Homebrew formulae for Poetry projects.Installationpoetryselfaddpoetry-brewRequirementspoetry-brew can only generate formulae for packages that meet the following criteria:The package must be published on PyPI.pyproject.tomlandpoetry.lockmust be present in the directory wherepoetry brewis run.pyproject.tomlmust specify values fortool.poetry.name,tool.poetry.version,
andtool.poetry.dependencies.python.tool.poetry.namemust be a case-insensitive match with the package's name on PyPI.tool.poetry.versionmust match a version of the package that has been published on PyPI.
For full usage information, runpoetry brew --help.Usagepoetrybrewpoetry brewsupports the--with,--without, and--onlyoptions, which function identically topoetry install.
For full usage information, runpoetry brew --help.Configurationpoetry-brew can be configured through atool.brew.configsection inpyproject.toml.[tool.brew.config]dependencies=[]Supported Optionsdependencies(list, default:[]): A list of other Homebrew formulae the package depends on.Licensepoetry-brew is licensed under theMIT License.
Package: poetry-build-compact
Poetry "build-compact" pluginPoetry plugin providingbuild-compactcommand which builds wheel containing only *.pyc
files for the current Python version. Created package name has suffix added to the
original name. It is possible to replace main dependencies by name or prefix by the
packages with the same suffix. Non-main dependencies are not touched. Thepyproject.tomlandpoetry.lockfiles stay intact, as well as virtual environment.Plugin also providesreplacecommand which replaces main dependencies by name or
prefix by the packages with the same suffix. Affected packages are replaced by compact
ones of the exactly same version as currently installed original package. Thepyproject.tomlandpoetry.lockas well as virtual environment are updated.Changelog1.1.0:replacecommand now uses installed versions exactly instead of original versions constraint
Package: poetry-bumpversion
Thepoetry versioncommand only updates version inpyproject.tomlfile.
This plugin updates version in other files whenpoetry version <version>command is executed.Getting StartedPrerequisitespython = ^3.8poetry = ^1.2.0InstallInstall the plugin by poetry plugin command.poetry self add poetry-bumpversionConfigure version replacementsSay you have__version__variable set atyour_package/__init__.pyfile__version__="0.1.0"# It MUST match the version in pyproject.toml fileAdd the following to yourpyproject.tomlfile.[tool.poetry_bumpversion.file."your_package/__init__.py"]# Duplicate the line above to add more filesNow runpoetry version patch--dry-run, if your output looks somewhat like below
you are all set (dry-run does not update any file).Bumping version from 0.5.0 to 0.5.1
poetry-bumpversion: processed file: your_package/__init__.pyIf dry-run output looks fine you can run version update command without dry-run flag to
check if version in bothpyproject.tomlandyour_package/__init__.pyfile has been updated.Advanced UsageYou can define search and replace terms to be more precise[tool.poetry_bumpversion.file."your_package/__init__.py"]search='__version__ = "{current_version}"'replace='__version__ = "{new_version}"'You can define replacements if you have same search/replace patterns
across multiple files.[[tool.poetry_bumpversion.replacements]]files=["your_package/__init__.py","your_package/version.py"]search='__version__ = "{current_version}"'replace='__version__ = "{new_version}"'[[tool.poetry_bumpversion.replacements]]files=["README.md"]search='version: {current_version}'replace='version: {new_version}'Usage with Github WorkflowThis plugin can be used to bump version automatically during publishing to PyPI using a GitHub workflow.
When a release tag is created the workflow will use that tag name e.g2.0.1to update versions in every
files, build the package and publish to PyPI. This is how this plugin is deployed to PyPI.To get started you can copy thedeploy workflow codefrom this repo to your repo and set it up.LicenseThis project is licensed under MIT License - see theLICENSEfile for details.
Package: poetry-bundla-plugin
Poetry bundle pluginThis package is a plugin that allows the bundling of Poetry projects into various formats.InstallationThe easiest way to install thebundleplugin is via theplugin addcommand of Poetry.poetrypluginaddpoetry-bundla-pluginIf you usedpipxto install Poetry you can add the plugin via thepipx injectcommand.pipxinjectpoetrypoetry-bundla-pluginOtherwise, if you usedpipto install Poetry you can add the plugin packages via thepip installcommand.pipinstallpoetry-bundla-pluginUsageThe plugin introduces abundlecommand namespace that regroups commands to bundle the current project
and its dependencies into various formats. These commands are particularly useful to deploy
Poetry-managed applications.bundle venvbundle venvThebundle venvcommand bundles the project and its dependencies into a virtual environment.The following commandpoetrybundlevenv/path/to/environmentwill bundle the project in the/path/to/environmentdirectory by creating the virtual environment,
installing the dependencies and the current project inside it. If the directory does not exist,
it will be created automatically.By default, the command uses the current Python executable to build the virtual environment.
If you want to use a different one, you can specify it with the--python/-poption:poetrybundlevenv/path/to/environment--python/full/path/to/python
poetrybundlevenv/path/to/environment-ppython3.8
poetrybundlevenv/path/to/environment-p3.8NoteIf the virtual environment already exists, two things can happen:The python version of the virtual environment is the same as the main one: the dependencies will be synced (updated or removed).The python version of the virtual environment is different: the virtual environment will be recreated from scratch.You can also ensure that the virtual environment is recreated by using the--clearoption:poetrybundlevenv/path/to/environment--clear
Package: poetry-bundle-plugin
Poetry bundle pluginThis package is a plugin that allows the bundling of Poetry projects into various formats.InstallationThe easiest way to install thebundleplugin is via theplugin addcommand of Poetry.poetrypluginaddpoetry-bundle-pluginIf you usedpipxto install Poetry you can add the plugin via thepipx injectcommand.pipxinjectpoetrypoetry-bundle-pluginOtherwise, if you usedpipto install Poetry you can add the plugin packages via thepip installcommand.pipinstallpoetry-bundle-pluginUsageThe plugin introduces abundlecommand namespace that regroups commands to bundle the current project
and its dependencies into various formats. These commands are particularly useful to deploy
Poetry-managed applications.bundle venvbundle venvThebundle venvcommand bundles the project and its dependencies into a virtual environment.The following commandpoetrybundlevenv/path/to/environmentwill bundle the project in the/path/to/environmentdirectory by creating the virtual environment,
installing the dependencies and the current project inside it. If the directory does not exist,
it will be created automatically.By default, the command uses the current Python executable to build the virtual environment.
If you want to use a different one, you can specify it with the--python/-poption:poetrybundlevenv/path/to/environment--python/full/path/to/python
poetrybundlevenv/path/to/environment-ppython3.8
poetrybundlevenv/path/to/environment-p3.8NoteIf the virtual environment already exists, two things can happen:The python version of the virtual environment is the same as the main one: the dependencies will be synced (updated or removed).The python version of the virtual environment is different: the virtual environment will be recreated from scratch.You can also ensure that the virtual environment is recreated by using the--clearoption:poetrybundlevenv/path/to/environment--clear