semvec/pypi-packages huggingface dataset:
python-versioning 1.0a1
A small package for PEP 440-compliant versioning of Python packages.
Requires Python: >=3.7
Keywords: python,versioning

# python-versioning

[![](https://results.pre-commit.ci/badge/github/paduszyk/python-versioning/main.svg)](https://results.pre-commit.ci/latest/github/paduszyk/python-versioning/main)
[![](https://img.shields.io/github/actions/workflow/status/paduszyk/python-versioning/ci.yaml?label=CI&logo=github)](https://github.com/paduszyk/python-versioning/actions/workflows/ci.yaml)
[![](https://img.shields.io/codecov/c/github/paduszyk/python-versioning?logo=codecov&label=codecov&token=B68F4Ewt2a)](https://codecov.io/gh/paduszyk/python-versioning)

[![](https://img.shields.io/badge/code%20style-black-black)](https://github.com/psf/black)
[![](https://img.shields.io/badge/linter-flake8-olive)](https://flake8.pycqa.org)
[![](https://img.shields.io/badge/imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort)

## Summary

This project aims to facilitate the incorporation of [PEP 440](https://peps.python.org/pep-0440/)-compliant versioning of Python packages using [Semantic Versioning](https://semver.org) (*SemVer*), without a shadow of a doubt the most popular versioning scheme nowadays.

The rationale behind developing it was to:
- use a cleaner (and thus more *Pythonic*) OOP-based approach as an alternative to the conventional version specification using strings;
- avoid invalid versioning errors during builds thanks to version validation.[^1]

## Installation

The latest version of the package can be installed using `pip`:
```bash
$ pip install python-versioning --upgrade
```
or any other package manager specific to your Python environment.

## License

Released under the [MIT license](LICENSE).


[^1]: In fact, *SemVer* is not fully compatible with PEP 440, especially in the case of the clauses of the former regarding pre-releases (see the [official proposal](https://peps.python.org/pep-0440/#semantic-versioning)).
aioworkers-aiohttp 0.8
Integrations aioworkers with aiohttp
Requires Python: >=3.7
Keywords: aiohttp,aioworkers

aioworkers-aiohttp
==================

The package to integration aioworkers with aiohttp

.. image:: https://img.shields.io/pypi/v/aioworkers-aiohttp.svg
  :target: https://pypi.org/project/aioworkers-aiohttp

.. image:: https://github.com/aioworkers/aioworkers-aiohttp/workflows/Tests/badge.svg
  :target: https://github.com/aioworkers/aioworkers-aiohttp/actions?query=workflow%3ATests

.. image:: https://codecov.io/gh/aioworkers/aioworkers-aiohttp/branch/master/graph/badge.svg
  :target: https://codecov.io/gh/aioworkers/aioworkers-aiohttp
  :alt: Coverage

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v0.json
  :target: https://github.com/charliermarsh/ruff
  :alt: Code style: ruff

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
  :target: https://github.com/psf/black
  :alt: Code style: black

.. image:: https://img.shields.io/badge/types-Mypy-blue.svg
  :target: https://github.com/python/mypy
  :alt: Code style: Mypy

.. image:: https://readthedocs.org/projects/aioworkers-aiohttp/badge/?version=latest
  :target: https://github.com/aioworkers/aioworkers-aiohttp#readme
  :alt: Documentation Status

.. image:: https://img.shields.io/pypi/pyversions/aioworkers-aiohttp.svg
  :target: https://pypi.org/project/aioworkers-aiohttp
  :alt: Python versions

.. image:: https://img.shields.io/pypi/dm/aioworkers-aiohttp.svg
  :target: https://pypi.org/project/aioworkers-aiohttp

.. image:: https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg
  :alt: Hatch project
  :target: https://github.com/pypa/hatch


Features
--------

- Building of the routing from config like swagger
- Start aiohttp project with multiprocessing mode

Example
-------

.. code-block:: yaml

  http:
    port: 8080
    access_log:
      format: %a %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"

  app:
    routes:
      - mymodule.route_table
      - mymodule.route
    resources:
      /html:
        static: static/html
      /css:
        static:
          path: static/css
      api:
        prefix: /api
        pets:
          /pet/{pet_id}:
            get:
              tags: [Pet]
              handler: mymodule.mycoro
              description: Info about pet
              parameters:
                - name: pet_id
                  in: path
                  type: integer
                  minimum: 0
              responses:
                200:
                  description: OK
                400:
                  description: Validation error
                404:
                  description: Not found


Development
-----------

Check code:

.. code-block:: shell

    hatch run lint:all


Format code:

.. code-block:: shell

    hatch run lint:fmt


Run tests:

.. code-block:: shell

    hatch run pytest


Run tests with coverage:

.. code-block:: shell

    hatch run cov