Saravanan666/pypi-org huggingface dataset:
Package: poetry-plugin-pycopy
poetry-plugin-pycopyThis plugin adds commandpycopyto Poetry which will copy information frompyproject.tomltosourcedirectory.The goal is to havepyproject.tomlas a single source of truth for app version, name, description etc. and to have these values available during a program runtime.Use caseFastAPI app in which you want to show application name or version in API docs.InstallationFrom Pypi:$ poetry self add poetry-plugin-pycopyUsage$ poetry pycopyPlugin configuration inpyproject.toml[tool.poetry-plugin-pycopy]
keys = ["name", "version", "description"]
dest_dir = "<some_package_name>"
dest_file = "__init__.py"keyslist tells which fields should by copied from[tool.poetry]dest_diris package/module rootdest_fileis the name of an output filePlugin also runs with$poetry versioncommand automatically. So when you use version bump, e.g.:$poetry version patchthe plugin will copy the new version value into the output file.Output file exampleThedest_fileis set to__init__.py. Thus the plugin will create or replace that file with current values for a givenkeys. For example:pyproject_toml = {
    "name": "test-venv-1",
    "version": "0.1.0",
    "description": "dsa",
}->https://unlicense.org/
Package: poetry-plugin-pyenv
Poetry Plugin PyenvThis package aims to make working withPoetryandPyenva seamless experience.InstallationThe easist andrecommendedway to install is using Poetry'sself addcommand.poetryselfaddpoetry-plugin-pyenvIf you usedpipxto install Poetry you can add the plugin via thepipx injectcommand.pipxinjectpoetrypoetry-plugin-pyenvOtherwise, if you usedpipto install Poetry you can add the plugin packages via thepip installcommand.pipinstallpoetry-plugin-pyenvUsageEnablingThis plugin work in conjunction with thevirtualenvs.prefer-active-pythonoption. Therefore the first step to using this plugin is enabling that option.To enable the option locally you can use the following command.poetryconfigvirtualenvs.prefer-active-pythontrue--localTo, instead, enable the option globally use the following command.poetryconfigvirtualenvs.prefer-active-pythontrueOnce enabled this plugin should work transparently to enable seamless interoperability withPoetryandPyenv. To learn more about what this plugin does behind the scenes see theBehaviorsection.BehaviorPoetry Plugin Pyenvworks by treatingpythonconstraint declared in thetool.poetry.dependenciesofpyproject.tomlas a source of truth for Pyenv's local python version. To do this it will exercise the following behavior.Pyenv already has a local versionIf Pyenv already has a local version it will check if the local version matches the constraint specified in thepyproject.toml. If the constraint is not satisfied it will proceed toselecting a new python version. If the constraint is satisfied Poetry's virtualenv will be created using the local version thanks tovirtualenvs.prefer-active-python.Pyenv has no local versionIf Pyenv does not have a local version set it will proceed toselecting a new python version.Selecting a new python versionIf a new python version needs to be selected the list of installable versions available to Pyenv will be checked against the constraint. From this list the latest possible version to satisfy the constraint will be selected. If this version is not installed it will be installed. It will then be set as Pyenv's local version and Poetry's virtualenv will be [re]created.
Package: poetry-plugin-pypi-proxy
poetry-plugin-pypi-proxyThis is a plugin that enables developers who use internal proxies of
Pypi to integrate their projects seamlessly with Poetry without
needing to build custom configurations for their proxy server.The plugin operates intuitively -- users can onboard to this tooling
by installing the plugin and then settingPIP_INDEX_URLbefore
running Poetry commands.It also runs silently, i.e., it will not pollute yourpoetry.lockwith the URL of your proxy server andpoetry publishis
automatically redirected to the proxy as well.UsageStart by installing Poetry with pipx:pipx install poetry
pipx runpip poetry install poetry-plugin-pypi-proxyIf you have already installed poetry, you only need to run the second command.Now, any Poetry project will automatically use the proxy server
specified byPIP_INDEX_URL. You may add this to yourrcfile
(.bashrc,.zshrc,.envrcwith direnv, etc) or simply export it
in your terminal to get started.
Package: poetry-plugin-sort
Poetry Plugin: Dependencies sortingThis package is a plugin that sort dependencies alphabetically in pyproject.toml
after runningpoetry initandpoetry add.
SinceIntroduce dependency sorting #3996pull request still open
this plugin is a workaround for!312issue.InstallationJust usepoetry self addcommand to add this plugin.poetryselfaddpoetry-plugin-sortIf you used pipx to install Poetry, add the plugin viapipx injectcommand.pipxinjectpoetrypoetry-plugin-sortAnd if you installed Poetry using pip, you can install the plugin the same way.pipinstallpoetrypoetry-plugin-sortUsageThe plugin sorts dependencies each time when you change dependencies via thepoetry initandpoetry addcommands.To sort dependencies without making changes to the dependencies list, the plugin provides asortcommand.poetrysortAvailable options--check: Checks if dependencies are sorted and exits with a non-zero status code when it doesn't.ConfigurationsThe following configuration can be set in[tool.poetry-sort]section of the pyproject.toml file or as system-wide environment variables:enabled\POETRY_SORT_ENABLED: Enable or disable sorting after invokingpoetry initandpoetry addcommands. Default:True.move-optionals-to-bottom\POETRY_SORT_MOVE_OPTIONALS_TO_BOTTOM: Move optional packages to the bottom. Default:False.
Package: poetry-plugin-taskipy
Poetry plugin for taskipyThis package is a plugin for the Poetry CLI that directly integratestaskipyinto it. With this plugin installed, you may then use atasksubcommand on the Poetry
CLI to run your regular taskipy tasks.InstallationThere are multiple ways to install this plugin and the way you should install it depends on
how you've installed Poetry itself.With Poetry installed via the official installerWith the official installer, you can use the Poetry CLI itself to install the plugin.$ poetry self add poetry-plugin-taskipyWith Poetry installed via PipxIf you installed Poetry via Pipx, you'll want to utilize theinjectcommand.$ pipx inject poetry poetry-plugin-taskipyWith Poetry installed via PipIf you installed Poetry via Pip, you can install the plugin in that same environment.$ pip install poetry-plugin-taskipyUsageOnce you've installed the taskipy poetry plugin, you'll now see atasksubcommand on the basepoetryCLI.$ poetry
...

Available commands:
    ...
    task               Run a taskipy task.
    ...If we assume the following basicpyproject.tomlfile in the current directory or a parent directory:[tool.poetry]name="project"version="0.1.0"[tool.taskipy.tasks]test_echo="echo 'test'"We may then run:$ poetry task test_echo
testFor more information, see thetaskipy documentation.
Package: poetry-plugin-tweak-dependencies-version
Poetry plugin tweak dependencies versionPlugin use to tweak the dependencies of the project.Will be used when we have different constraints for the dependencies, like publish and dependency upgrader like Renovate.This plugin will let us tweak the dependencies of the published packages.Config:[build-system]requires=["poetry-core>=1.0.0","poetry-plugin-tweak-dependencies-version"]build-backend="poetry.core.masonry.api"[tool.poetry-plugin-tweak-dependencies-version]default="(present|major|minor|patch|full)"# Default to `full`"<package>"="(present|major|minor|patch|full|<alternate>)"present=>*,major=>x.*,minor=>x.y.*,patch=>x.y.z,full=> keep the original version.
Or just specify an alternate version constraint.ContributingInstall the pre-commit hooks:pipinstallpre-commit
pre-commitinstall--allow-missing-config
Package: poetry-plugin-up
Poetry Plugin: upThis package is a plugin that updates dependencies and bumps their versions inpyproject.tomlfile. The version constraints are respected, unless the--latestflag is passed, in which case dependencies are updated to latest
available compatible versions.This plugin provides similar features as the existingupdatecommand with
additional features.InstallationThe easiest way to install theupplugin is via theself addcommand of
Poetry.poetryselfaddpoetry-plugin-upIf you usedpipxto install Poetry you can add the plugin via thepipx injectcommand.pipxinjectpoetrypoetry-plugin-upOtherwise, if you usedpipto install Poetry you can add the plugin packages
via thepip installcommand.pipinstallpoetry-plugin-upUsageThe plugin provides anupcommand to update dependenciespoetryup--helpUpdate dependenciespoetryupUpdate dependencies to latest available compatible versionspoetryup--latestUpdate thefooandbarpackagespoetryupfoobarUpdate packages only in themaingrouppoetryup--onlymainUpdate packages but ignore thedevgrouppoetryup--withoutdevContributingContributions are welcome! See theContributing Guide.IssuesIf you encounter any problems, please file anissuealong with a
detailed description.
Package: poetry-plugin-upgrade
Poetry Plugin: upgradeThis package is a plugin that updates dependencies and bumps their versions inpyproject.tomlfile. The version constraints are respected, unless the--latestflag is passed, in which case dependencies are updated to the latest available compatible versions.This plugin provides similar features as the existingupdatecommand with additional features.InstallationThe easiest way to install theupgradeplugin is via theself addcommand of Poetry.poetryselfaddpoetry-plugin-upgradeIf you usedpipxto install Poetry you can add the plugin via thepipx injectcommand.pipxinjectpoetrypoetry-plugin-upgradeOtherwise, if you usedpipto install Poetry you can add the plugin packages via thepip installcommand.pipinstallpoetry-plugin-upgradeUsageThe plugin provides anupgradecommand to update dependenciespoetryupgrade--helpUpdate dependenciespoetryupgradeUpdate dependencies to the latest available compatible versionspoetryupgrade--latestUpdate thefooandbarpackagespoetryupgradefoobarUpdate packages only in themaingrouppoetryupgrade--onlymainUpdate packages but ignore thedevgrouppoetryupgrade--withoutdevContributingContributions are welcome! See theContributing Guide.IssuesIf you encounter any problems, please file anissuealong with a
detailed description.
Package: poetry-poems
Poetry Environment SwitcherOverviewPoetry-poems is a tool that speeds up switching between Python Poetry-based projects by:navigating to a specific project in the terminalactivating Poetry shell at the same time.Poetry-poems was inspired and is based on amazing projectpipenv-pipes - Pipenv Environment Switcher.How does it work?The list of available projects has to be populated before usage!Populating poems listDocumentationDocumentation is available onpoetry-poems.readthedocs.ioLicenselgpl-3.0license noteCreditsProject based onPipes, Pipenv Environment Switcher. A modified version ofPickfor curses based interactive selection list in the terminal is also used.Authorharper25
Package: poetry-poet
Poet: Poetic Poetry ToolsPoetry alias and plugin example.Further development TBD.Usagepoetryaddpoetry-poetThepoetcommand is an alias forpoetry.Subject to change:poetry runor something else.poetrun...FeaturesCurrently, there are two placeholder Poetry
plugins:A generic plugin that handles all commands.An application plugin that provides thepoetry poetcommand (as an example).Usepoetry self add poetry-poetto add
these plugins to your Poetry installation.Adding only toselfdoes not provide
the globalpoetcommand.
Package: poetry-polylith-plugin
Poetry Polylith PluginThis is a PythonPoetryplugin, adding CLI support for the Polylith Architecture.DocumentationHave a look at thedocumentation.
You will find installation, setup, usage guides and more.Quick startWith thePoetryversion 1.2 or later installed, you can add plugins.Make sure that you havePoetry1.2 or later installed.Add theMultiprojectplugin, that will enable the very importantworkspacesupport (i.e. relative package includes) to Poetry.poetryselfaddpoetry-multiproject-pluginAdd the Polylith plugin:poetryselfaddpoetry-polylith-pluginCreate a directory for your code, initialize it withgitand create a basicPoetrysetup:gitinit

poetryinitNext: create a Polylith workspace, with a basic Polylith folder structure.poetrypolycreateworkspace--namemy_namespace--themelooseTime to start coding. Add components, bases and projects:poetrypolycreatecomponent--namemy_component

poetrypolycreatebase--namemy_example_endpoint

poetrypolycreateproject--namemy_example_projectFor details, have a look at thedocumentation.
There, you will find guides for setup, migration, packaging, available commands, code examples and more.
Package: poetry-pre-commit-plugin
Poetry pre-commit PluginAPoetryplugin for automatically installing git
pre-commit hooks wheneverpre-commitis specified as a dependency of the
project.MotivationPersonally I find that runningpre-commit installevery time I start working
on a new repository is very easy to forget - there have been numerous occasions
where I'd forget this step, commit some changes only to be surprised later on
by failing CI checks 😅 This plugin aims to solve this issue by doing
this small step for me automatically behind the scenes.InstallationThe plugin requires Poetry version1.2.0b1or above. Since this is still a
pre-release version, you have to specify it explicitly when installing:curl -sSL https://install.python-poetry.org | python3.9 - --version 1.2.0b3Once a valid version of Poetry is set up, you can install the plugin like so:poetry self add poetry-pre-commit-pluginFor more in-depth information, please refer toPoetry's docs.UsageThere's no way to use this plugin explicitly - it will work behind the scenes
after you run eitherpoetry installorpoetry add. In either of those cases,
the plugin will check the following conditions:Is the project inside a git repository?Ispre-commitlisted as a dependency of the project (or, in the case ofpoetry add- was it just added)?Has the pre-commit hooknotbeen activated yet (i.e. the file.git/hooks/pre-commitdoes not exist)?If all conditions are met, the plugin will runpre-commit installfor you.
Package: poetry-python-version
Poetry Python VersionThis is a proof-of-concept work. Please add tests for your use-case. Thank you!This plugins reads.python-versionfile and sets the python version for the project where it is used.Installationpoetryselfaddpoetry-python-version# if you use pipx to install poetrypipxinjectpoetrypoetry-python-versionUsageIf you are using.python-versionfile you might want to set the python
version for the project automatically. This plugin does exactly that.It targets application developers that don't want to define Python version
in multiple places and their preferred way is to use.python-versionfile.Once you have correctly installed this plugin and your project contains.python-versionfile you will see following output when you runpoetry install:Setting Python version from .python-version file
Current Package Python versions: 3.11.*
Current PyProject dependencies Python: 3.11.*
New Package Python versions: 3.11.3
New PyProject dependencies Python: 3.11.3DevelopmentLong TODO listtestsconfiguration optionsdocumentation
Package: poetry-release
Release managment plugin forpoetryThe project is currently under development and is not ready for use in
production.Inspired bycargo-releaseFeaturesSemversupportCreating git tag and commits after releaseChangelogsupportInstallationNote:Plugins work at Poetry with version 1.2.0 or above.You can install plugin viapoetrypoetryselfaddpoetry-releaseor viapipx injectpipxinjectpoetrypoetry-releaseUsagepoetryrelease<level>Existing levelsmajorminorpatchrelease (default)rcbetaalphaPrerequisiteYour project should be managed by git.ConfigReplacementsPoetry-release supports two types of release replacements:By RegexYou can create replacements in files using regular expressions:release-replacements=[{file="CHANGELOG.md",pattern="\\[Unreleased\\]",replace="[{version}] - {date}"},]Message replacementsReplacementDescriptionrelease-commit-messageMessage for release commitpost-release-commit-messageMessage for post release commit(if it’s allowed)tag-nameThe name of tagtag-messageThe message for tagTemplatesPoetry-release supports templates to build releases. Templates could
be used in release replacements/messages/tags. Template is indicated
likesome text {package_name}TemplateDescriptionpackage_nameThe name of this project inpyproject.tomlprev_versionThe project version before releaseversionThe bumped project versionnext_versionThe version for next development iteration (alpha)dateThe current date in%Y-%m-%d`formatRelease settingsThese settings allow you to disable part of the functionality. They
can be set either inpyproject.tomlor in CLI like flag. Settings
from CLI have a higher prioritySettingsDefaultCLIpyproject.tomlDescriptiondisable-pushfalseyesyesDon’t do git pushdisable-tagfalseyesyesDon’t do git tagdisable-devfalseyesyesSkip bump version after releasesign-commitfalsenoyesSigned commitsign-tagfalsenoyesSigned tagdry-runfalseyesnoDry run releaseDefault git messagesTag name -{version}Tag message -Released {package_name} {version}Release commit -Released {package_name} {version}Post release commit -Starting{package_name}'snext development iteration {next_version}Example[tool.poetry-release]release-replacements=[{file="CHANGELOG.md",pattern="\\[Unreleased\\]",replace="[{version}] - {date}"},{file="CHANGELOG.md",pattern="\\(https://semver.org/spec/v2.0.0.html\\).",replace="(https://semver.org/spec/v20.0.html).\n\n## [Unreleased]"},]disable-push=falsedisable-tag=falsedisable-dev=falserelease-commit-message="Release {package_name} {version}"post-release-commit-message="Start next development iteration {next_version}"tag-name="{version}"sign-tag=truesign-commit=truepoetryreleaseminor--disable-dev--disable-tag
Package: poetry-release-test
poetry应用github官方文档安装pip install poetrytipspoetry new创建一个项目脚手架，包括基本结构、pyproject.toml文件，基于每个人的项目目录不同，推荐在已有项目添加poetry管理,详见./testpoetry init在现有项目里创建pyproject.toml文件poetry config --list查看config列表poetry config virtualenvs.in-project true配置在项目内创建.venvpoetry config <key> <value>poetry env use python3指定创建虚拟环境时使用的python解释器版本运行环境指定执行poetry的命令并不需要激活虚拟环境，因为poetry会自动检测当前虚拟环境在当前目录对应虚拟环境中执行命令poetry run python test.py显示激活的虚拟环境poetry shell依赖安装某个包时，会在pyproject.toml文件中默认使用版本限定，比如colorama = "^0.4.1" ，当我执行 poetry update 时，colorama也许会更新到0.4.9，但绝不会更新到0.5.0，意思是在更新依赖时不会修改最左边非零的数字号版本，这样的默认设定可以确保不会更新到不兼容变动的版本。poetry add flask安装最新稳定版本的flaskpoetry add pytest --dev指定为开发依赖，会写到pyproject.toml中的[[tool.poetry.dev-dependencies]]区域poetry add flask=2.22.0指定具体的版本poetry install安装pyproject.toml文件中的全部依赖poetry install --no-dev只安装非development环境的依赖，一般部署时使用poetry show查看项目安装的依赖poetry show -t树形结构查看项目安装的依赖poetry update更新所有锁定版本的依赖poetry update httprunner更新指定的依赖poetry remove packages卸载依赖,会将依赖包一起卸载poetry env list --full-path查找当前项目的虚拟环境发布流程poetry init原项目中同级目录执行 创建toml文件poetry build打包项目文件到dist/poetry publish配置镜像源豆瓣http://pypi.doubanio.com/simple/网易http://mirrors.163.com/pypi/simple/阿里云http://mirrors.aliyun.com/pypi/simple/清华大学http://pypi.tuna.tsinghua.edu.cn/simple/在pyproject.toml文件末尾追加以下内容[[tool.poetry.source]]
name = "aliyun"
url = "http://mirrors.aliyun.com/pypi/simple"
default = true
Package: poetry-scaffold-plugin
poetry-scaffold-pluginA Poetry plugin that installs and configures default dev dependencies, so you don't have to.Get nice tools. Avoid the tedious boilerplate of setting up a project.v0.1.0 is a preview and relies on the preview of Poetry's new plugin system. Expect rough edges.RequirementsPoetry 1.2 (preview)Poetry will add support for plugins in v1.2, currently in preview. To try poetry-scaffold-plugin, you must install Poetry >=1.2.0a2Updating from Poetry v1.1 to the preview can't be done via Poetry'sself update. Instead, use the new Poetry installer script. See themaster version of the installer docsfor more information. (Don't use the v1.1 docs, which refer to the old installer.)InstallationAfter installing the Poetry preview, the newpoetry plugincommands will be available. To install the plugin:$poetrypluginaddpoetry-scaffold-pluginNote:Poetry plugins are installed in your global Poetry environment, not the project environment.Usage$poetrynewmy-project&&cdmy-project
$poetryscaffoldPoetry's built-inpoetry newprovides a standard project layout. poetry-scaffold-plugin'spoetry scaffoldprovides the dev dependencies and configuration.There are no customisable settings in v0.1.0. Your project's configuration can be tweaked in the usual way, by modifying pyproject.toml, setup.cfg and pre-commit-config.yaml.What you getThe packages and configuration in poetry-scaffold-plugin were inspired by, but diverge from, Claudio Jolowicz's series onHypermodern Python.Testingpytestfor testingcoveragemeasures test coverage and identifies untested lines of codepytest-covadds nice coverage reports to pytest outputpytest-mockmakes it more convenient to use mocks (e.g. adds a mocker fixture)hypothesishelps find edge cases that break your codeLinting and formattingblackformats your codeisortsorts import statementsflake8catches common mistakes and suggests good Python practicesflake8-bugbearcatches even more issuesmypychecks type annotationssemgreplooks for common security problemspre-commitruns checks (and automatically fixes what it can) before committingNicetiespdbppworks like the standard pdb debugger but has extra features like "sticky" modeipythonprovides a nicer shell for those interactive experimentation sessionsThe linting is especially opinionated. If it's too much, or clashes with your house style, try deleting B9 from the extend-select section in setup.cfg.The mypy settings are more lenient. The pre-commit hook will check type annotations that you've added, but won't demand you use type annotations.
Package: poetry-setup
poetry-setupMake yourpoetryproject backward compatible.This tool generate some files frompyproject.toml:setup.pyrequirements.txtconstraints.txt(from optional dependencies)InstallationI'm recommend usepipsifor all console scripts like this.Install via pipsi:pipsiinstallpoetry-setupInstall via pip:pipinstallpoetry-setupInstall via poetry:poetryinstallpoetry-setupUsagepoetry-setup[path/to/project/]Generate for project in current dir:poetry-setupGenerate for project inexampledir:poetry-setupexampleWhat about pipenv?Pipenv can generatePipfilefromrequirements.txt.Run testpipenvinstall
pipenvshell
python-mpytesttests.py