semvec/pypi-packages huggingface dataset:
pyprocessors-afp_entities 0.5.266
Sherpa Consolidation processor
Requires Python: >=3.8

# pyprocessors_afp_entities

[![license](https://img.shields.io/github/license/oterrier/pyprocessors_afp_entities)](https://github.com/oterrier/pyprocessors_afp_entities/blob/master/LICENSE)
[![tests](https://github.com/oterrier/pyprocessors_afp_entities/workflows/tests/badge.svg)](https://github.com/oterrier/pyprocessors_afp_entities/actions?query=workflow%3Atests)
[![codecov](https://img.shields.io/codecov/c/github/oterrier/pyprocessors_afp_entities)](https://codecov.io/gh/oterrier/pyprocessors_afp_entities)
[![docs](https://img.shields.io/readthedocs/pyprocessors_afp_entities)](https://pyprocessors_afp_entities.readthedocs.io)
[![version](https://img.shields.io/pypi/v/pyprocessors_afp_entities)](https://pypi.org/project/pyprocessors_afp_entities/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyprocessors_afp_entities)](https://pypi.org/project/pyprocessors_afp_entities/)

AFPEntities annotations coming from different annotators

## Installation

You can simply `pip install pyprocessors_afp_entities`.

## Developing

### Pre-requesites

You will need to install `flit` (for building the package) and `tox` (for orchestrating testing and documentation building):

```
python3 -m pip install flit tox
```

Clone the repository:

```
git clone https://github.com/oterrier/pyprocessors_afp_entities
```

### Running the test suite

You can run the full test suite against all supported versions of Python (3.8) with:

```
tox
```

### Building the documentation

You can build the HTML documentation with:

```
tox -e docs
```

The built documentation is available at `docs/_build/index.html.
pyprocessors-openai_completion 0.5.397
OpenAICompletion processor
Requires Python: >=3.8

## Requirements

- Python 3.8+
- Flit to put Python packages and modules on PyPI
- Pydantic for the data parts.

## Installation
```
pip install flit
pip install pymultirole-plugins
```

## Publish the Python Package to PyPI
- Increment the version of your package in the `__init__.py` file:
```
"""An amazing package!"""

__version__ = 'x.y.z'
```
- Publish
```
flit publish
```
pytest-unique 0.1.7
Pytest fixture to generate unique values.
Requires Python: <4.0,>=3.10

pytest-unique
=============

`Pytest <http://pytest.org>`_ fixture to generate unique values.

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
   :target: https://github.com/cr3/pytest-unique/blob/master/LICENSE
   :alt: License
.. image:: https://img.shields.io/pypi/v/pytest-unique.svg
   :target: https://pypi.python.org/pypi/pytest-unique/
   :alt: PyPI
.. image:: https://img.shields.io/github/issues-raw/cr3/pytest-unique.svg
   :target: https://github.com/cr3/pytest-unique/issues
   :alt: Issues

Requirements
------------

You will need the following prerequisites to use pytest-unique:

- Python 3.9, 3.10, 3.11, 3.12, 3.13

Installation
------------

To install pytest-unique:

.. code-block:: bash

  $ pip install pytest-unique

Usage
-----

You can use the ``unique`` fixture by passing it as a test argument:

.. code-block:: python

  def test_integer(unique):
      assert unique("integer") > 0

Here are some of the plugins available by default:

* ``bytes`` with invalid UTF8 characters.
* ``digits`` with just numbers.
* ``email`` with a unique username.
* ``float`` with a whole part and a decimal part.
* ``integer`` with ``base`` and ``mod`` arguments.
* ``password`` with ``lowercase``, ``uppercase``, ``digits`` and
  ``punctuation`` arguments.
* ``text`` with ``prefix``, ``suffix`` and ``separator`` arguments.

Extensions
----------

The ``unique`` fixture can be extended with custom plugins:

.. code-block:: python

  from datetime import datetime, timezone

  def unique_datetime(unique)
      """Return a datetime unique to this factory instance."""
      timestamp = unique("integer")
      return datetime.fromtimestamp(timestamp, timezone.utc)

Then, add it to the ``pyproject.toml`` file of your project:

.. code-block:: text

  [tool.poetry.plugins."pytest_unique"]
  datetime = "your_project.unique:unique_datetime"

You can then use the plugin like all other plugins:

.. code-block:: python

  from datetime import datetime

  def test_datetime(unique):
      assert isinstance(unique("datetime"), datetime)


Limitations
-----------

The ``unique`` fixture cannot be used as parameters in parameterized tests
by virtue of being a fixture. The reason it is a fixture rather than a
function is that unique values are generated from an instance of a counter
that returns sequential values. This makes it possible to see the order
in which values were generated which can be useful when troubleshooting.

Resources
---------

- `Documentation <https://cr3.github.io/pytest-unique/>`_
- `Release Notes <http://github.com/cr3/pytest-unique/blob/master/CHANGES.rst>`_
- `Issue Tracker <http://github.com/cr3/pytest-unique/issues>`_
- `Source Code <http://github.com/cr3/pytest-unique/>`_
- `PyPi <https://pypi.org/project/pytest-unique/>`_