semvec/pypi-packages huggingface dataset:
unique-log-filter 0.1.0
A log filter that removes duplicate log messages
Requires Python: >=3.7

unique_log_filter
=================

A simple tool to filter out duplicate lines from a log file. Usage is simple:

```python
from logging import getLogger
from unique_log_filter import UniqueLogFilter

logger = getLogger("my_logger")
logger.addFilter(UniqueLogFilter())
```
AgentGLM 1.0.1
llm agent engine package

A library encapsulating an inference engine based on a large language model, supporting both Chinese and English.

For command interpretation:

def intent_chat(self, prompt, symbol=False)
For information retrieval and general conversation:

def model_chat(self, prompt, history=[], max_length=1024, top_p=0.7, temperature=0.1)
These functions handle command interpretation (intent_chat) and facilitate information retrieval and general conversation (model_chat). The library supports both Chinese and English languages.
pytest-aspec 1.3
A rspec format reporter for pytest
Keywords: pytest pspec test report bdd rspec

pytest_aspec
==============

A `pspec format`_ reporter for pytest

.. _pspec format: https://en.wikipedia.org/wiki/RSpec

.. image:: https://i.imgur.com/cCMJXHe.png

Install
-------

::

    pip install pytest_aspec


Usage
-----

Add the parameter `--pspec` when running `pytest`. Ex:

::

    pytest --pspec your-tests/

Tip: If you don't want to type ``--pspec`` every time you run ``pytest``, add it
to `addopts <https://docs.pytest.org/en/latest/customize.html#confval-addopts>`_
in your `ini file <https://docs.pytest.org/en/latest/customize.html#initialization-determining-rootdir-and-inifile>`_. Ex:

.. code-block:: ini

    # content of pytest.ini
    # (or tox.ini or setup.cfg)
    [pytest]
    addopts = --pspec


Demo Code
---------

Add the doc strings Ex:

.. code-block:: python

    import unittest

    class TestWayTwo(unittest.TestCase):
        "Pspec Python TDD"

        def test_should_add(self):
            "it adds two integers and returns integer"
            self.assertEqual(2+2, 4)

        def test_should_find_difference_between_integers(self):
            self.assertEqual(4-2, 2)

running ``pytest --pspec`` outputs

.. code-block::

    demo
     🌸 it adds two integers and returns integer
     🌸 should find difference between integers



Configuration file options
--------------------------

pspec\_passed
~~~~~~~~~~~~~~~

Specifies pspec passed character. Ex:

.. code:: ini

    # content of pytest.ini
    # (or tox.ini or setup.cfg)
    [pytest]
    pspec_passed=\N{heavy check mark}\N{vs16}

::

    $ pytest test_demo.py
    ============================= test session starts ==============================
    platform darwin -- Python 3.5.0, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
    rootdir: /private/tmp/demo, inifile: pytest.ini
    plugins: pspec-dev
    collected 2 items

    test_demo.py
    Pytest pspec
     ✔️ prints a BDD style output to your tests
     ✔️ lets you focus on the behavior

pspec\_failed
~~~~~~~~~~~~~~~

Specifies pspec failed character. Ex:

.. code:: ini

    # content of pytest.ini
    # (or tox.ini or setup.cfg)
    [pytest]
    pspec_failed=\N{skull and crossbones}\N{vs16}

::

    $ pytest test_demo.py
    ============================= test session starts ==============================
    platform darwin -- Python 3.5.0, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
    rootdir: /private/tmp/demo, inifile: pytest.ini
    plugins: pspec-dev
    collected 2 items

    test_demo.py
    Pytest pspec
     🌸️ this failed??!!

pspec\_skipped
~~~~~~~~~~~~~~~

Specifies pspec skipped character. Ex:

.. code:: ini

    # content of pytest.ini
    # (or tox.ini or setup.cfg)
    [pytest]
    pspec_skipped=\N{snowman without snow}\N{vs16}

::

    $ pytest test_demo.py
    ============================= test session starts ==============================
    platform darwin -- Python 3.5.0, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
    rootdir: /private/tmp/demo, inifile: pytest.ini
    plugins: pspec-dev
    collected 2 items

    test_demo.py
    Pytest pspec
     ☃️️ skipping this test for now