Saravanan666/pypi-org huggingface dataset:
Package: poetry-org
poetry-orgReorganizes files to the same structure as provided withpoetry newwithout
creating new files.This script is useful when usingpoetryto manage a project that was not
created withpoetry newbut was initialized withpoetry init; the script
allows conversion from a simple file structure (e.g.,proj_dir/app_name.py)
into a more standard one (e.g.,proj_dir/app_name/app_name.py) for building
withpoetry build.The script moves the app files from the root project directory into a sub-directory
named after the app (as specified in thepyproject.tomlfile), leaving the
meta files (e.g.,README.md,LICENSE,pyproject.toml) in the root
directory.InstallationInstall withpipusingpipinstallpoetry-orgUsageRun in the root directory of the poetry project (wherepyproject.tomlis located).poetry-org
Package: poetry-packaging-demo
poetry-packaging-demoCI-CDpipeline for Python projects consisting of:A placeholderQualityjob that you can fill up with your favorite linters, formatters and testing frameworks.AReleasejob that releases to GitHub and publishes to PyPI usingpython-semantic-releaseandpoetry.Our pipeline automatessemantic versioningand distribution of Python projects by leveragingconventional commits.To use this demo in your project:Copy the[tool.semantic_release]section of ourpyproject.tomlinto yourpyproject.tomland adjust it to your project.Copy the workflow file at.github/workflows/ci.ymlinto your.github/workflowsfolder and adjust it to your project.In your repository'sSecretscreate a token namedPYPI_TOKENand paste yourPyPI Tokeninto it.Happy hacking 🐈‍⬛
Package: poetry-partifact-plugin
POETRY-PARTIFACT-PLUGINThis project is a poetry plugin that wraps thepoetry add/installcommands and adds some logic
that will authenticate to AWS CodeArtifact under the hood.Before any poetryaddorinstallcommands are run, this plugin will check thepyproject.tomlfile
for any codeartifact sources.It is looking for the firsttool.poetry.sourceblock that contains.codeartifact.in its url.
The required fields are "url" and "name."If the tool doesn't find any valid source blocks, nothing happens.ConfigurationCreate atool.poetry.sourceblock in yourpyproject.tomlfile, then set the "url" to the CodeArtifact repository url, and set the "name" to the id of the AWS profile you'll be using to authenticate.Here's an example of a validtool.poetry.sourceblock (thedefault=trueis optional):[[tool.poetry.source]]name = "<your-aws-profile-name>"url = "https://<your-domain-name>-<your-project-id>.d.codeartifact.<your-region>.amazonaws.com/pypi/<your-repo-name>/simple/"default = trueInstallationTo install the plugin, run this command:poetryselfaddpoetry-partifact-pluginUninstallationTo remove the plugin, run this command:poetryselfremovepoetry-partifact-pluginUnder the HoodOnce the plugin has gotten your repository url and the name of the AWS profile you'll be using, it  uses the AWS profile credentials located at~/.aws/credentialsto make an API request to your AWS CodeArtifact repository.If this request is successful, a short-lived token will be returned that will grant temporary access.
This token is set as apoetry environment variableand allows poetry to seamlessly authenticate to the repository.DependenciespartifactLicenseCopyright 2023 Amino Inc.Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: poetry-pdf
Poetry PDFPoetry formatterStatusSourceShieldsProjectPublishersDownloadsRaisedUsagePlaintext is converted into html and pdfkit is used to export a PDF.Exposed CLI:poetry-pdf<source_path>[--output-dir=<output_dir>][--author=<author>][--stylesheet=<stylesheet>]...Example invocation:poetry-pdf"the_raven.txt"--output-path"."--author"Edgar Allan Poe"Intermediate html:<head><metacharset="utf-8"/><linkrel="stylesheet"type="text/css"href="/Users/joel/Workspace/poetry-pdf/poetry_pdf/styles/default.css"/></head><body><h1id="title">The Raven</h1><br/><pid="poem">Once upon a midnight dreary, while I pondered, weak and weary,<br/>Over many a quaint and curious volume of forgotten lore—<br/>While I nodded, nearly napping, suddenly there came a tapping,<br/>As of some one gently rapping, rapping at my chamber door.<br/>“’Tis some visitor,” I muttered, “tapping at my chamber door—<br/>Only this and nothing more.”<br/><br/>Ah, distinctly I remember it was in the bleak December;<br/>And each separate dying ember wrought its ghost upon the floor.<br/>Eagerly I wished the morrow;—vainly I had sought to borrow<br/>From my books surcease of sorrow—sorrow for the lost Lenore—<br/>For the rare and radiant maiden whom the angels name Lenore—<br/>Nameless here for evermore.<br/></p><br/><pid="author">Edgar Allan Poe</p></body>Generated pdf:Custom stylesheets can be specified:poetry-pdf"the_raven.txt"--stylesheet"./sheet1.css"--stylesheet"./sheet2.css"If no stylesheets are provided the page styles will default to:body{font-family:"Avenir Next",sans-serif;margin:100px;}#title{font-size:70px;font-weight:500;text-align:center;}#poem,#author{font-style:italic;font-weight:400;font-size:20px;line-height:35px;}#author{text-align:right;}InstallingTo install the package from pypi:pipinstallpoetry_pdfAlternatively, you can clone the repo and build the package locally.DocsAdditional details are available in thefull documentation.To generate the documentation locally:multi-jobdocsTestsUnit tests and behaviour tests are written with the pytest framework.To run tests:multi-jobtestsAdditionally, an html report will be saved to the local directory.BuildbotTo run the buildbot server:cdci
docker-composeup-dBuilders are configured in master.cfg.Build masters read their configuration fromhttps://github.com/JoelLefkowitz/poetry-pdf/poetry_pdf/ci/master.cfgWorker and database passwords are configured as environment variablesContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests.VersioningSemVeris used for versioning. For a list of versions available, see the tags on this repository.Bump2version is used to version and tag changes.
For example:bump2versionpatchReleases are made on every major change.AuthorJoel Lefkowitz-Initial work-Joel LefkowitzSee also the list of contributors who participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for detailsAcknowledgmentsNone yet!
Package: poetry-plugin-bump
poetry-plugin-bumpA plugin add command poetry commandpoetry bump patch/minor/major.Just likenpm version ..., It will bump version, commit code and create git tag.poetrybumppatchwill replace previous commandspoetryversion...
gitaddpyproject.toml
gitcommit-m'...'gittag...Installationsupported version:poetry versionplugin version>=1.2.0,<1.5.0<0.1.0>=1.5.0>=0.1.0Installation requires poetry 1.2.0+. To install this plugin run:poetry self add poetry-plugin-bumpIf your poetry is installed withpipx:pipx inject poetry poetry-plugin-bumpFor other methods of installing plugins see
thepoetry documentation.UsageConfiguration is optional, but you can define config inpyproject.tomldefault config:[tool.poetry-plugin-bump]commit_msg='bump: v{version}'tag_name='v{version}'this will define bump commit message and tag name.LicenseMIT licensed, inspired byhttps://github.com/keattang/poetry-exec-plugin
Package: poetry-plugin-bundle
Poetry Plugin: BundleThis package is a plugin that allows the bundling of Poetry projects into various formats.InstallationThe easiest way to install thebundleplugin is via theself addcommand of Poetry.poetryselfaddpoetry-plugin-bundleIf you usedpipxto install Poetry you can add the plugin via thepipx injectcommand.pipxinjectpoetrypoetry-plugin-bundleOtherwise, if you usedpipto install Poetry you can add the plugin packages via thepip installcommand.pipinstallpoetry-plugin-bundleUsageThe 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-plugin-compose
Poetry composeA poetry plugin to manage multiple project from a single root, a-la monorepo.Docs available hereWork in progressThis is a work in progress, you might find some bugs, some improvements and some annoyance.
Do not hesitate to report them through github issues.Getting startedInstall pluginpoetryselfaddpoetry-plugin-composeStart linting all sub projects in a single linepoetrycomposerunflake8.or running pytest in every package that has it installedpoetrycomposerun-ipytest--pytest-vvvProject layoutPoetry compose is intended to run in a flat setup where each subdirectory that contains apyproject.tomlfile is considered a sub-project. Such asdatabase
    __init__.py
    pyproject.toml
    database
        __init__.py
    tests
        __init__.py
users
    __init__.py
    pyproject.toml
    users
        __init__.py
    tests
        __init__.py
profiles
    __init__.py
    pyproject.toml
    profiles
        __init__.py
    tests
        __init__.py
posts
    __init__.py
    pyproject.toml
    posts
        __init__.py
    tests
        __init__.py
scripts
    run.shbut poetry will recursively descend into every subdirectory, so you could have other setups such aspackages
    database
        __init__.py
        pyproject.toml
        database
            __init__.py
        tests
            __init__.py
    users
        __init__.py
        pyproject.toml
        users
            __init__.py
        tests
            __init__.py
    profiles
        __init__.py
        pyproject.toml
        profiles
            __init__.py
        tests
            __init__.py
    posts
        __init__.py
        pyproject.toml
        posts
            __init__.py
        tests
            __init__.py
scripts
    run.shDependenciespoetry compose supports finding dependency order of your packages and always compose commands in a valid order.
poetry compose does not support circular dependencies though, and you should avoid them between your packages.
You can find the computed dependency order using the following command:poetrycomposedependency-orderLinking two packagesthe easiest way to link two sub packages is to cd into the dependent one and run the followng command:cdprofiles
poetryadd-e../userslocal developmentThe recommended way to run plugin as you develop them is to install them in editable mode through poetry's packaged pip executable.Example:/Users/macbook/Library/"Application Support"/pypoetry/venv/bin/pip install -e ../poetry_multi_packageDocumentationDocumentation is mostly generated from the command themselves.
Also the root readme of the project serves as the welcome page of the docs.
In order to sync the doc runs the followingcd scripts
poetry compose run -d scripts -- python generate_doc.pyThen to deploypoetry compose run -d doc -- mkdocs gh-deploy
Package: poetry-plugin-configurable-venv-location
poetry-plugin-configurable-venv-locationDescriptionpoetry-plugin-configurable-venv-locationis apluginforpoetry, the Python packaging and dependency manager. It allows one to specify a different virtual env locaton when usingvirtualenvs.in-projectis set totrue.InstallationFollow poetry'splugin installation instructions, replacingpoetry-pluginwithpoetry-plugin-configurable-venv-location.UsageCreate a file called.poetry_venv_pathin the same folder as yourpyproject.tomlcontaining path to your virtual env. e.g.:/some/path/to/a/.venvAlso set the following config option in poetry:poetryconfigvirtualenvs.in-projecttrueNotesThis plugin is a way to workaround poetry limitation#1579.
Package: poetry-plugin-dotenv
🔮 Overview⚙️ Installation👩🏻‍💻 Usage🔮 Overviewpoetry-plugin-dotenv- is the plugin that automatically loads environment variables from a dotenv file into the environment beforepoetrycommands are run.Features📦 Doesn't require any dependencies📝 Supports templates, interpolating variables using POSIX variable expansions🔮 Fully type safe🥷🏻 100% tests coverage and "A" grade for maintainability⚙️ Installationpoetryselfaddpoetry-plugin-dotenv👩🏻‍💻 UsageBy default, plugin will load the.envfile from the current working directory or "higher directories".To preventpoetryfrom loading the dotenv file, set thePOETRY_DONT_LOAD_DOTENVenvironment variable.If your dotenv file is located in a different path or has a different name you may set thePOETRY_DOTENV_LOCATIONenvironment variable.# .env
DB__HOST=localhost
DB__DBNAME=prod
DB__USER=admin
DB__PASSWORD=admin
DB__ENGINE=postgresql://${DB__USER}:${DB__PASSWORD}@${DB__HOST}/${DB__DBNAME}# .env.dev
DB__HOST=localhost
DB__DBNAME=dev
DB__USER=root
DB__PASSWORD=root
DB__ENGINE=postgresql://${DB__USER}:${DB__PASSWORD}@${DB__HOST}/${DB__DBNAME}# main.pyimportosif__name__=="__main__":try:print(f"Host:{os.environ['DB__HOST']!r}")print(f"Name:{os.environ['DB__DBNAME']!r}")print(f"Username:{os.environ['DB__USER']!r}")print(f"Password:{os.environ['DB__PASSWORD']!r}")print(f"Engine:{os.environ['DB__ENGINE']!r}")exceptKeyError:print("Environment variables not set!")poetryrun-vvvpythonmain.py# Loading environment variables from '.env'.# Host: 'localhost'# Name: 'prod'# Username: 'admin'# Password: 'admin'# Engine 'postgresql://admin:admin@localhost/prod'exportPOETRY_DOTENV_LOCATION=.env.dev&&poetryrun-vvvpythonmain.py# Loading environment variables from '.env.dev'.# Host: 'localhost'# Name: 'dev'# Username: 'root'# Password: 'root'# Engine 'postgresql://root:root@localhost/dev'exportPOETRY_DONT_LOAD_DOTENV=1&&poetryrun-vvvpythonmain.py# Not loading environment variables.
Package: poetry-plugin-drop-python-upper-constraint
Poetry plugin drop Python upper constraintWith this plugin you can set a python constraints like:[tool.poetry.dependencies]python=">=3.9,<3.12"And in the exported wheel we will have onlypython=">=3.9".The goal is to have an upper constraint to do the lock but to don't have it in the exported wheel,
then to permit to use it with newer Python version.Config:[build-system]requires=["poetry-core>=1.0.0","poetry-plugin-drop-python-upper-constraint>=0.1.0"]build-backend="poetry.core.masonry.api"ContributingInstall the pre-commit hooks:pipinstallpre-commit
pre-commitinstall--allow-missing-config
Package: poetry-plugin-export
Poetry Plugin: ExportThis package is a plugin that allows the export of locked packages to various formats.Note: For now, only theconstraints.txtandrequirements.txtformats are available.This plugin provides the same features as the existingexportcommand of Poetry which it will eventually replace.InstallationThe easiest way to install theexportplugin is via theself addcommand of Poetry.poetryselfaddpoetry-plugin-exportIf you usedpipxto install Poetry you can add the plugin via thepipx injectcommand.pipxinjectpoetrypoetry-plugin-exportOtherwise, if you usedpipto install Poetry you can add the plugin packages via thepip installcommand.pipinstallpoetry-plugin-exportUsageThe plugin provides anexportcommand to export to the desired format.poetryexport-frequirements.txt--outputrequirements.txtNote: Only theconstraints.txtandrequirements.txtformats are currently supported.Available options--format (-f): The format to export to (default:requirements.txt). Currently, onlyconstraints.txtandrequirements.txtare supported.--output (-o): The name of the output file.  If omitted, print to standard output.--without: The dependency groups to ignore when exporting.--with: The optional dependency groups to include when exporting.--only: The only dependency groups to include when exporting.--default: Only export the main dependencies. (Deprecated)--dev: Include development dependencies. (Deprecated)--extras (-E): Extra sets of dependencies to include.--all-extras: Include all sets of extra dependencies.--without-hashes: Exclude hashes from the exported file.--with-credentials: Include credentials for extra indices.
Package: poetry-plugin-export-packages
Poetry Package Exporter PluginIntroductionThe Poetry Package Exporter is a plugin for thepoetrypackage manager. It is designed to enhance the CI process by exporting project dependencies as separate pip-installable packages. By doing so, it allows you to leverage the existing Poetry cache, resulting in significantly shorter optimized build times.FeaturesDependency Exportation: Automatically exports your Poetry-managed dependencies into pip-installable packages.Cache Re-utilization: Leverages Poetry's cache system to avoid redundant downloads, speeding up the Docker build process.InstallationTo install the Poetry Package Exporter plugin, run the following command in your terminal:poetrypluginaddpoetry_plugin_export_packagesorpipinstallpoetry_plugin_export_packagesEnsure you have Poetry installed prior to adding this plugin. For instructions on installing Poetry, visitPoetry's documentation.UsageAfter installing the plugin, use the following command to export your dependencies:poetryexport-packagesThis command will generate a set of pip-installable packages for your project's dependencies. You can then copy these packages into your Docker build context and use pip to install them during the Docker image build process.ConfigurationThe plugin supports several configuration options to customize the export process.$poetryexport-packages-h

Description:exportpythonpackages

Usage:export-packages[options]Options:-o,--output-dir=OUTPUT-DIRDirectorytosavepackagesto.[default:"export-packages"]--shebang=SHEBANGShebangtostartthegeneratedpipinstallscriptwith[default:"#! /bin/sh"]-f,--output-script[=OUTPUT-SCRIPT]Placetosaveoutputscriptto.--without=WITHOUTThedependencygroupstoignore.(multiplevaluesallowed)--with=WITHTheoptionaldependencygroupstoinclude.(multiplevaluesallowed)--only=ONLYTheonlydependencygroupstoinclude.(multiplevaluesallowed)-h,--helpDisplayhelpforthegivencommand.Whennocommandisgivendisplayhelpforthelistcommand.-q,--quietDonotoutputanymessage.-V,--versionDisplaythisapplicationversion.--ansiForceANSIoutput.--no-ansiDisableANSIoutput.-n,--no-interactionDonotaskanyinteractivequestion.--no-pluginsDisablesplugins.--no-cacheDisablesPoetrysourcecaches.-C,--directory=DIRECTORYTheworkingdirectoryforthePoetrycommand(defaultstothecurrentworkingdirectory).-v|vv|vvv,--verboseIncreasetheverbosityofmessages:1fornormaloutput,2formoreverboseoutputand3fordebug.ContributingContributions to the Poetry Dependency Exporter are welcome!LicenseThis project is licensed under theMIT License. See the LICENSE file for more details.
Package: poetry-plugin-ignore-build-script
poetry-plugin-ignore-build-scriptDescriptionpoetry-plugin-ignore-build-scriptis apluginforpoetry, the Python packaging and dependency
manager. It enables creating either plaform specific or pure python wheels.InstallationFollow poetry'splugin installation instructions, replacingpoetry-pluginwithpoetry-plugin-ignore-build-script.UsageIf you set up a build script in your pyproject.toml files as follows:...[tool.poetry.build]script="build.py"generate-setup-file=true...and corrresponding build script which usesmypycifyorcythonize:frommypyc.buildimportmypycifymodules=["my_package/submod1/foo.py",..."my_package/submodn/bar.py",]extensions=mypycify(modules)# from Cython.Build import cythonize#extensions = cythonize("my_package/*.pyx", include_path=[...])defbuild(setup_kwargs):setup_kwargs.update({"ext_modules":extensions,})To build a non platform specific wheel (e.g. "my-package-0.1.1-py3-none-any.whl") then use the following command:poetrybuild--ignore-build-scriptTo build a platform specific wheel (e.g. "my-package-0.1.1-cp310-cp310-manylinux_2_35_x86_64.whl") then use the standard poetry command:poetrybuildNotesThis plugin is a way to workaround poetry limitation#8039.
Package: poetry-plugin-import
Poetry Plugin ImportAPoetryplugin that import dependencies from requirements.txt.InstallationIn order to install the plugin you need to have installed a poetry version>1.2.2and type:poetryselfaddpoetry-plugin-importUsageImagine the following requirements.txt that you want to import into you pyproject.htmlasyncio==3.4.3git+https://github.com/neriberto/malwarefeeds.git@0.1.0#egg=malwarefeedsrequests==2.22.0click==7.0then, to import just run the command below:poetryimportLicenseThis project is licensed under the terms of the MIT license.
Package: poetry-plugin-lockedbuild
Poetry Plugin: Locked BuildThis package is a plugin that allows the building of wheel files with locked packages frompoetry.lock.InstallationThe easiest way to install thelockedbuildplugin is via theself addcommand of Poetry.poetryselfaddpoetry-plugin-lockedbuildIf you usedpipxto install Poetry you can add the plugin via thepipx injectcommand.pipxinjectpoetrypoetry-plugin-lockedbuildOtherwise, if you usedpipto install Poetry you can add the plugin packages via thepip installcommand.pipinstallpoetry-plugin-lockedbuildUsageThe plugin provides anlockedbuildcommand to build a wheel file with locked packages.poetrylockedbuildAvailable options--with: The optional dependency groups to include when exporting.
Package: poetry-plugin-private
README相关资料poetry-plugin-pypi-mirrorpoetry-version-plugin构建 whl 二进制包Location:[PROJECT_ROOT]/.envPOETRY_VIRTUALENVS_IN_PROJECT=truePOETRY_PLUGIN_PRIVATE_DISABLE_LOG=truePOETRY_PYPI_MIRROR_URL=http://pypi.stone.cs/simple/cd[PROJECT_ROOT]make安装插件pipinstallpoetry-plugin-private修改 pyproject.toml 配置新增以下内容即可支持读取__version__变量动态版本号Location:<Env>:VERSIONor[Package]/__init__.py:__version__当source = init时，优先检测环境变量VERSION的值作为版本号。否则，从[Package]/__init__.py文件中读取__version__变量值作为版本号。[tool.poetry-version-plugin]source="init"Env:VERSION[tool.poetry-version-plugin]source="env"设置环境变量修改默认 PyPI 源地址LinuxexportPOETRY_VIRTUALENVS_IN_PROJECT="true"exportPOETRY_PYPI_MIRROR_DISABLE_CACHE="true"exportPOETRY_PLUGIN_PRIVATE_DISABLE_LOG="true"exportPOETRY_PYPI_MIRROR_URL="http://pypi.dy/simple/"Windows 10/11[Environment]::SetEnvironmentVariable("POETRY_VIRTUALENVS_IN_PROJECT","true","User");[Environment]::SetEnvironmentVariable("POETRY_PLUGIN_PRIVATE_DISABLE_LOG","true","User");[Environment]::SetEnvironmentVariable("POETRY_PYPI_MIRROR_DISABLE_CACHE","true","User");[Environment]::SetEnvironmentVariable("POETRY_PYPI_MIRROR_URL","http://pypi.dy/simple/","User");待支持的特性支持环境变量VERSION动态设置 build 的版本号。