Saravanan666/pypi-org huggingface dataset:
Package: pyproject-flake8
pyproject-flake8 (pflake8)A monkey patching wrapper to connect flake8 withpyproject.tomlconfiguration.Update concerning versioning:pyproject-flake8 so far came without explicit pinning of a flake8 version. Since arecent updatebroke compatibility – not unexpectedly – the issue arose, how to handle incompatible versions of flake8 and pyproject-flake8.
Since there are good reasons for and against version pinning, this project now tries to follow a mix of both:
Release versions will follow and pin identical flake8 versions, alpha versions (specific to pyproject-flake8) will pin to the similar non-alpha version of flake8,or later.
That way, users of pyproject-flake8 can decide, whether they want a fixed version known to work, or a minimum version, getting later versions, at the risk of future breakage.Versions 0.0.1x are pyproject-flake8 internal versions and do not correspond to flake8. Furthermore, flake8 3.8.0 was chosen as the first flake8 version to mirror this way.tl;dr:# e.g., suggested installation / dependency ... depending on flake8==5.0.4# for Python 3.8+pipinstallpyproject-flake8==5.0.4# for Python 3.6+pipinstallpyproject-flake8==5.0.4.post1Rationaleflake8is one of the most popular Python linters,pyproject.tomlhas become thestandardfor Python project metadata.More and more tools are able to utilize a sharedpyproject.toml, alleviating the need for many individual configuration files cluttering a project repository.Since excellentflake8is not aimed to supportpyproject.toml, this wrapper script tries to fix the situation.InstallationFrom githubpipinstall.From PyPIpipinstallpyproject-flake8Building packagesUse your favoritePEP517compliant builder, e.g.:# install first via: pip install buildpython-mbuild# packages will reside in dist/UsageCallpflake8instead offlake8.Configuration goes into thetool.flake8section ofpyproject.toml:[tool.flake8]max-line-length=88extend-ignore=["E203"]max-complexity=10See alsoTwo other projects aim to address the same problem:flake9FlakeHellBoth seem to try to do a lot more than just gettingpyproject.tomlsupport.pyproject-flake8tries to stay minimal while solving its task.flake8-pyprojectadds onlypyproject.tomlsupport, and does this as a Flake8 plugin, allowing
the originalflake8command to work (rather than usingpflake8).CaveatThis script monkey-patches flake8 and the configparser library of Python, therefore loading it as a module may have unforeseen consequences.
Alpha quality. Use at your own risk. It will likely break if either Python or flake8 restructure their code significantly. No guarantees for stability between versions.LicenseUnlicense
Package: pyproject-generator
pyproject:What is it?pyprojectis a command line utility to setup and distribute Python packages.Usage:Dependenciesplatformdirs- Install configuration files in the correct locationrich- Beautiful terminal outputInstallingThe easiest way is to installpyprojectis from PyPI using pip:pipinstallpyproject-generatorAfterwards, a pyproject command will be exposed on your system.Initializing a ProjectSimply runpyprojectinit{project_name}to create your project folder. It will automatically setup a package structure, virtual
environment, and install packages.The final project structure looks like├──.git
├──.github
│└──workflows
│└──tests.yml
├──.gitignore
├──.pre-commit-config.yaml
├──LICENSE
├──README.md
├──benchmarks
│└──benchmark.py
├──pyproject.toml
├──requirements_dev.txt
├──setup.cfg
├──src
│└──myproject
│├──__init__.py
│├──__version__.py
│└──py.typed
├──tests
│└──test_myproject.py
└──tox.iniConfiguring pyproject-generatorpyprojectalso allows you to configure your author name, email, Github URL,
PyPI username and password, and a list of default dependencies that you want to install.
Please note that your credentials are simply stored locally as plaintext.
If you do not wish to store them, you can simply pass them in manually
via the --pypi_username and --pypi_password flags, or run without any flags and type
them in as required. To configure, runpyprojectconfig--author=""--email=""--github_url=""--pypi_username=""--pypi_password=""You may set dependencies one of three ways. In all cases, pass in a comma-delimited
string (for multiple dependencies) or a string (for one dependency).
You can set the dependencies, which overrides the default settings.pyprojectconfig--set_dependencies="white,ruff,mypy"You may add dependencies:pyprojectconfig--add_dependencies="django"And you may remove dependencies:pyprojectconfig--remove_dependencies="pre-commit"Note that these flags also work with theinitaction.configmerely does the work
of saving them locally to be re-used later.Uploading a Projectpyprojectalso supplies an upload function. Runpyprojectuploadto build and upload your package to PyPI.
Package: pyproject_hooks
This is a low-level library for calling build-backends inpyproject.toml-based project. It provides the basic functionality to help write tooling that generates distribution files from Python projects.If you want a tool that builds Python packages, you’ll want to usehttps://github.com/pypa/buildinstead. This is an underlying piece forpip,buildand other “build frontends” use to call “build backends” within them.You can read more in thedocumentation.Note: Thepep517project has been replaced by this project (low level) and thebuildproject (high level).
Package: pyprojectify
pyprojectify is a utility allowing python package authors/maintainers/packagers to painlessly migrate their package from setup.py to the new pyproject.toml.Free software: MIT licenseDocumentation:https://pyprojectify.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: pyproject-metadata
pyproject-metadataDataclass for PEP 621 metadata with support forcore metadatagenerationThis project does not implement the parsing ofpyproject.tomlcontaining PEP 621 metadata.Instead, given a Python data structure representing PEP 621 metadata (already
parsed), it will validate this input and generate a PEP 643-compliant metadata
file (e.g.PKG-INFO).UsageAfterinstallingpyproject-metadata,
you can use it as a library in your scripts and programs:frompyproject_metadataimportStandardMetadataparsed_pyproject={...}# you can use parsers like `tomli` to obtain this dictmetadata=StandardMetadata.from_pyproject(parsed_pyproject)print(metadata.entrypoints)# same fields as defined in PEP 621pkg_info=metadata.as_rfc822()print(str(pkg_info))# core metadata
Package: pyproject-migrator
pyproject-migratorWhat is this?This tool helps with convertingsetup.cfg(and other configuration files such asmypy.ini)
to a singlepyproject.tomlfile.InstallationYou can install the project from Pip withpip install pyproject-migratorbut it may be more useful to usepipxto run it as a tool; if you prefer to do that, just substitutepipx run pyproject-migratorforpyproject-migratorin the examples below.UsageThe tool can be run against a number of files or directories, but these files are considered to be part of
the same project. The tool will then attempt to merge these into a singlepyproject.tomlfile fragment.$pyproject-migratorsetup.cfgmypy.inior$pyproject-migrator.The tool will output a chunk of TOML you can copy-paste (or>>redirect) into yourpyproject.tomlfile.It may also output a number of warnings about configuration that could not be converted.Some of these are because the tool does not yet support the option, but others are because there is no
direct equivalent in the TOML format. In these cases, you will need to manually convert the option.Supported configurationThe tool currently supports the following configuration:codespell (in setup.cfg)coverage (in setup.cfg)isort (in setup.cfg)mypy (in setup.cfg and mypy.ini)pylint (in setup.cfg)pytest (in setup.cfg and pytest.ini)Explicitly unsupported isflake8 (because itcurrently explicitly does not support pyproject.toml)setuptools (because there are a number of approaches to take to map it into pyproject.toml)Sphinx'sbuild_sphinxsectiontox (because there is no other TOML mapping than splatting INI config in there, ew)Other tools that emit "Unknown section" currently include,
but are not limited to (based on the setup.cfgs I had at hand):babel (extract_messages, extractors, mappings) (seehttps://github.com/python-babel/babel/issues/777)bumpversionnosetestspbrprequpyscaffoldversioneervpipzest.releaserLicensepyproject-migratoris distributed under the terms of theMITlicense.
Package: py-projectmill
Python port ofhttps://github.com/mapbox/projectmillfor Python 2.5+ (including 3.X).Currently only support--milland--render.There are no requirements for Python 2.7, 3.2+, and pypy-1.9 unless you want to run the tests.
To run tests, simplypython setup.py test.The remainder of the documentation is adapted from the original project.Need to generate a bunch of TileMill projects that are nearly identical and
then render them all out? What to script that? We gotcha covered.Usage:projectmill <command> [options]Example:projectmill--mill-cconfig.example.json-t../tilemill/InstallationThe easiest route is to justpip installpy-projectmill.To install from source:pip install-e.orpython setup.py install.
If you’re using Python 2.5, 2.6, 3.0, or 3.1, you will also need topip install-rrequirements-X.Y.txt(they don’t includeargparse, which is required, and 2.5 needssimplejson).Tests pass with all versions from 2.5 - 3.3 and pypy-1.9, so it ought to work for just about everyone.ConfigurationConfiguration is expected as a json file which contains an array as the root
object. Seeconfig.example.jsonfor an example. Each element in the array
should be an object which can have the following keys:source        REQUIRED The source project, generally the name of folder it
              lives in.

destination   REQUIRED The destination project name.

mml           A json snippet which will be merged on top of the project's mml
              file. To clear out an option set it to 'null'

cartoVars     A json object containing key value pairs which can be use to
              override variables in in carto stylesheets.

MBmeta        MBTiles: A json object containing key value pairs which will be added to
              a rendered MBtiles export.

Additionally, the following options will be passed to TileMill's export commnd

format        Export format (png|pdf|svg|mbtiles). (Default: undefined)

bbox          Array containing coordinates of bounding box to export. (Default: undefined)

minzoom       MBTiles: minimum zoom level to export. (Default: undefined)

maxzoom       MBTiles: maximum zoom level to export. (Default: undefined)

width         Image: image width in pixels. (Default: 400)

height        Image: image height in pixels. (Default: 400)

bufferSize    Mapnik render buffer size. (Default: 128)CommandsProjectMill accepts the following commands. They can be issued either
individually or together:--mill      Generates new tilemill projects based on configuration.

--render    Renders projects that are present in configuration and have been milled.

--upload    Uploads projects that are present in configuration and have been rendered.OptionsWe also accept the following options:-t      Path to the TileMill install

-c      specify a configuration file. (Defaults: ./config.json)

-p      Path to TileMill project folder. (Defaults: ~/Documents/Mapbox)

-f      Replace existing projects (together with mill) or existing projects and exports (together with render).
Package: pyproject-npp
pyproject-nppInformacióPer executar el programa s'ha de tenir instalat el python versio 3 o mes.Requeriments a requirements.txt.El fitxer compilar.bat transforma el .py en .pyc que es mes eficient i rapid.Executar amb opcio -h per veure mes opcions i funcionalitats.Instal·lacióUtilitzantpippip install pyprojectÚsExecutar el fitxerpyproject.pyopyproject.cpython-39.pycamb les opcions adientsOpcions
Package: pyprojector
pyprojectorpyprojectoris a Python 3 module that creates an interpreter independent window. Tight loops, long calculation often prevents us from updating a window, using Python threads adds more complexity and a choppy rendering experience.How pyprojector works?A window is created on a new OS thread, the WinAPI takes care of the window.
The window has two OpenGL contexts with shared objects.
The user can use the the OpenGL context assigned to the current thread to render arbitrary images using OpenGL. Thewindow.update(framebuffer=...)method takes aframebufferand copies its content into a backbuffer. The backbuffer will be used anytime the window needs a redraw.FeaturesThe user can create and update a window with a minimal API.The rendered frames are quickly copied to a backbuffer maintained by another thread.The user can render depending on the window's visibility.A hidden window have an almost zero performance penalty.The user is not responsible updating a window to avoid dirty frames.The window can be shown/hidden from the system tray.Closing the window just hides the window.A screenshot can be saved withctrl+s.Actrl+cin the window raises aKeyboardInterrupt.A screenshot can be taken programatically usingwindow.screenshot().The program can be halted withctrl+shift+q.The window is refreshed only when necessary.There is a builtin FPS limiter.Exampleimportpyprojectorwnd=pyprojector.window((840,480),__file__,fps=60)fbo=...# OpenGL Framebuffer ObjectwhileTrue:# the user's loop# do long calculation, train AI, run gyms, ...ifwnd.visible:# render into fbo# pass fbo to the windowwnd.update(fbo)for more examples please visit theexamples.AcknowledgementThis project is usingminizto save PNG files.
Package: pyproject-parser
Parser for ‘pyproject.toml’DocsTestsPyPIAnacondaActivityQAOtherInstallationpyproject-parsercan be installed from PyPI or Anaconda.To install withpip:$python-mpipinstallpyproject-parserTo install withconda:$condainstall-cconda-forgepyproject-parserpyproject-parseralso has an optional README validation feature, which checks the README will render correctly on PyPI.
This requires that thereadmeextra is installed:$python-mpipinstallpyproject-parser[readme]
Package: pyproject-pyupgrade
pyproject pyupgradepyproject.toml configuration wrapper forpyupgradeInstallationVia pippipinstallpyproject-pyupgradeVia poetrypoetryadd--groupdevpyproject-pyupgradeVia pipxpipxinstall-fpyproject-pyupgradeUsageMake sure you have a desired version ofpyupgradeinstalled in your python environment.Add the following section in yourpyproject.toml:[tool.pyupgrade]# for example, if you're using python 3.10py310-plus=trueAnd then just execute it via CLIpyproject-pyupgrade[filename[filenames...]]or shorter versionppyupgrade[filename[filenames...]]So, basically you specify flags that you want to add topyupgradeCLI arguments specifying them without leading two dashes (--).
This is the way how you can supply any option that your version ofpyupgradereceivesThere is also one additional parameter provided exclusively bypyproject-pyupgradewrapper:[tool.pyupgrade]pyproject-pyupgrade-debug=trueOr directly via CLIppyupgrade--pyproject-pyupgrade-debug...This option is going to output debug information aboutpyproject-pyupgrade.
Info about parsed configuration from pyproject.toml (if there is one) and all the flagsAs a pre-commit hookSeepre-commitfor instructions.Sample.pre-commit-config.yaml:repos:-repo:https://github.com/venomlab/pyproject-pyupgraderev:v0.1.1hooks:-id:ppyupgradeToDoAdd tests andtoxconfig to run them for all supported python versionsAdd option to specify custompyupgradecommand. It allows in case if you want to chain pyupgrade wrappers (for instance, withpyupgrade-directories)Add better parser for TOML. Right now the parser is ultra primitive and might lead to errors if used improperlyIfpythonversion >=3.11use tomllib forpyproject.tomlparsingSupport adding custom options or key-value arguments topyupgradeCLISupport storing configuration inpyupgrade.iniSupport storing configuration intox.iniSupport storing configuration insetup.cfg
Package: pyproject-requirements
pip-requirementsInstall requirements/dependencies specified in a pyproject.toml using pip.FeaturesInstalls required, optional and/or all dependencies.Detects and works with pip in installed in virtual environments.Generates a requirements.txt file from a pyproject.toml (for tool compatibility).Quick StartInstall pip-requirements:pipinstallpip-requirementsInstall all dependencies of your pyproject.toml# use `--optional name` to limit to optional named dependency section# use `--required` to install required dependenciespip-requirementsinstall--allpath/to/pyproject.tomlWhyThis only exists because it's not builtin to pip.Using requirements.txt files is primitive and redundant compared to the expressiveness
of pyproject.toml files..Usagepip-requirements [-h] {install,txt} ...

Install dependencies from a pyproject file.

optional arguments:
-h, --help     show this help message and exit

commands:
Valid commandsinstallCommandpip-requirements install [-h] [--all] [--required] [--optional [OPTIONAL ...]] [--pip PIP] [--dry] pyproject_toml

positional arguments:
pyproject_toml        pyproject.toml

optional arguments:
-h, --help            show this help message and exit
--all                 Install dependencies from all known sections (required and optional).
--required            Install required dependencies.
--optional [OPTIONAL ...]
Optional dependency to install. May be specified multiple times.
--pip PIP             Pip tool to use. Autodetected. Default: /home/nate/.local/bin/pip
--dry                 Dry runtxtCommandpip-requirements txt [-h] [--all] [--required] [--optional [OPTIONAL ...]] pyproject_toml [output_file]

Generate a requirements.txt files for compatibility.

positional arguments:
  pyproject_toml        pyproject.toml
  output_file           path to a file to output. stdout otherwise.

optional arguments:
  -h, --help            show this help message and exit
  --all                 Include dependencies from all known sections (required and optional).
  --required            Include required dependencies.
  --optional [OPTIONAL ...]
                        Include optional dependency. May be specified multiple times.FutureWe should have something like:pipinstall--optional=name--required--allpath/to/pyproject.tomlOr:piprequirementsinstall--allpath/to/pyproject.tomlLinksSource(Source Hut)
Package: pyproject-script
PyProject ScriptOverviewPyProject Scriptis a very simple development tool intended to be used withpyproject.tomlconfiguration files.
The intention is to provide an interface for running scripts within a local development workflow.# in your pyproject.toml[tool.pyscript]tests="path.to.my.tests.script:entrypoint_callable"Runningpyscript testsafter installingpyscriptwill import thepath.to.my.tests.scriptmodule and will callentrypoint_callablecallable.This works in much the same way aspoetry'spoetry runcommand without actually including those scripts in your
project build.NOTE: This is an alpha release. Use it your own risk.Installationpip install pyproject-scriptor if you're usingpoetrypoetry add -D pyproject-scriptLocal DevelopmentPyenvIt's recommended that you usepyenvpyenv-installercurl-Lhttps://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer|bashInstallpoetryThis project usespoetry. Install it using the following command.curl-sSLhttps://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py|python-More instructionshereInstall the dependencies:poetry installInstall pre-commit hooks:poetry run pre-commit installRunning Tests:poetry run pyscript tests
Package: pyprojectsort
pyprojectsortFormatter for pyproject.toml files.This package enforces consistent formatting of pyproject.toml files, reducing merge request conflicts and saving time otherwise spent on manual formatting. It also contributes to a cleaner git history and more readable code; enhancing overall project organisation and maintainability. Experience a streamlined workflow, reduced errors, and improved code readability withpyprojectsort.FeaturesAlphanumerically sorts pyproject.toml by:sectionsection keylist valueReformats pyproject.toml to a standardised styleline per list valuedouble quotationstrailing commasindentationend of file newlineInstallationpyprojectsortis available viaPyPI:pip install pyprojectsortUsing pyprojectsort withpre-commitTo use as an automated git hook, add this to your.pre-commit-config.yaml:-repo:https://github.com/kieran-ryan/pyprojectsortrev:v0.2.2hooks:-id:pyprojectsortExamplesWith the followingpyproject.toml:[tool.ruff]ignore=["G004","T201","ANN"][project]name='pyprojectsort'authors=[{name="Kieran Ryan"},"Author Name <author@email.com>",{name="Author name"}][tool.radon]show_mi=trueexclude="tests/*,venv/*"total_average=trueshow_complexity=true[build-system]build-backend="flit.buildapi"requires=["flit"]Run the package from within its directory:pyprojectsortThe configuration will be reformatted as follows:[build-system]build-backend="flit.buildapi"requires=["flit",][project]authors=["Author Name <author@email.com>",{name="Author Name"},{name="Kieran Ryan"},]name="pyprojectsort"[tool.radon]exclude="tests/*,venv/*"show_complexity=trueshow_mi=truetotal_average=true[tool.ruff]ignore=["ANN","G004","T201",]The pyproject file path can alternatively be specified:pyprojectsort ../pyproject.tomlCheck formattingThe--checkoption can be used to determine whether your file would be reformatted.pyprojectsort --checkIf the file needs reformatting, the program exits with an error code. This is useful forpipeline integrationas it prevents writing back changes so that a clean repository is maintained for subsequent jobs.The--diffoption provides similar functionality but also displays any changes that would be made.pyprojectsort --diffThe diff of an alphabetically reordered array will appear as follows:@@ -6,8 +6,8 @@[project]
authors = [+ { name = "Author Name" },{ name = "Kieran Ryan" },- { name = "Author Name" },]Licensepyprojectsortis licensed under theMIT License.
Package: pyproject-tag-check
pyproject-tag-checkI always forget to bump poetry version in pyproject.toml files. That's why I build this simple package. It is pre-commit hook which check that version in pyproject.toml is not used as a tag for given repo URL (must be public repository).Usage:Put it in.pre-commit.config.yamlrepos and argument must be URL to public repo on GH (for example this repo itselfhttps://github.com/rafsaf/pyproject-tag-check).repos:
  - repo: https://github.com/rafsaf/pyproject-tag-check
    rev: "1.0.0"
    hooks:
      - id: pyproject-tag-check
        always_run: true
        args:
          - https://github.com/rafsaf/pyproject-tag-checkUsealways_run: trueif check should be performed always, otherwise it will run only whenpyproject.tomlis changed.pyproject.tomlusually looks like[tool.poetry]name="some-name..."version="0.1.0"If repository is public and tag 0.1.0 already exists like it does forhttps://github.com/rafsaf/pyproject-tag-check, the check will not pass.