semvec/pypi-packages huggingface dataset:
CountType 0.1.1
Your package description here
License: MIT
Requires Python: >=3.6

# counttypes

Count types in a list - int, float, str, bool, list, set, dict, tuple

## Example

```python
from countertypes import CountTypes

data = [1, 2.2, 'hello', [1, 2], {'a': 1}]
counter = CountTypes(data)
print(counter.NonZeroTotal())
amari.py 1.3.2
An asynchronous API wrapper for the Amari API.
License: MIT
Requires Python: <4,>=3.9

Amari.py
========

.. image:: https://readthedocs.org/projects/amaripy/badge/?version=latest
   :target: https://amaripy.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. image:: https://img.shields.io/pypi/v/amari.py.svg
   :target: https://pypi.org/project/amaripy/
   :alt: PyPi Library version

.. image:: https://img.shields.io/pypi/pyversions/amari.py.svg
   :target: https://pypi.org/project/amaripy/
   :alt: PyPi library Python versions

Amari.py is an async, easy to use API wrapper for the AmariBot.

Installation
------------

Enter any of these commands to install the library:

.. code:: sh

  pip install amari.py

  python -m pip install amari.py

Key features
------------

- Utilizes the whole Amari API
- Asynchronous built
- Anti 429s (rate limiting)

Support
-------

If you have any questions or require support with the API wrapper, visit the `AmariBot Support Server <https://discord.gg/qKkSUSwU2G>`_ and ask in `#amari.py <https://discord.com/channels/346474194394939393/882370112710123570>`_.

Bugs
----

If you find any bugs with the library, you can report it by creating a bug issue at `Amari.py's Github repo <https://github.com/RayyanW786/amaripy>`_.

Docs
----

Visit the `Amari.py docs <https://amaripy.readthedocs.io/en/latest/>`_ for usage of the library.
amari 1.3.2
An asynchronous API wrapper for the Amari API.
License: MIT
Requires Python: <4,>=3.9

Amari.py
========

.. image:: https://readthedocs.org/projects/amaripy/badge/?version=latest
   :target: https://amaripy.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. image:: https://img.shields.io/pypi/v/amari.py.svg
   :target: https://pypi.org/project/amaripy/
   :alt: PyPi Library version

.. image:: https://img.shields.io/pypi/pyversions/amari.py.svg
   :target: https://pypi.org/project/amaripy/
   :alt: PyPi library Python versions

Amari.py is an async, easy to use API wrapper for the AmariBot.

Installation
------------

Enter any of these commands to install the library:

.. code:: sh

  pip install amari.py

  python -m pip install amari.py

Key features
------------

- Utilizes the whole Amari API
- Asynchronous built
- Anti 429s (rate limiting)

Support
-------

If you have any questions or require support with the API wrapper, visit the `AmariBot Support Server <https://discord.gg/qKkSUSwU2G>`_ and ask in `#amari.py <https://discord.com/channels/346474194394939393/882370112710123570>`_.

Bugs
----

If you find any bugs with the library, you can report it by creating a bug issue at `Amari.py's Github repo <https://github.com/RayyanW786/amaripy>`_.

Docs
----

Visit the `Amari.py docs <https://amaripy.readthedocs.io/en/latest/>`_ for usage of the library.
teams-logger 0.5.1
Microsoft Teams logging handler for Python
License: MIT
Requires Python: <4.0,>=3.8

teams-logger
===================

Python logging handler for Microsoft Teams webhook integration with both simple and dictionary configurations.

This package requires Python 3.8 or newer.

Installation
------------
.. code-block:: bash

    pip install teams-logger

Examples
--------
Simple configuration
''''''''''''''''''''
.. code-block:: python

  import logging
  from teams_logger import TeamsHandler

  th = TeamsHandler(url='YOUR_WEB_HOOK_URL', level=logging.INFO)
  logging.basicConfig(handlers=[th])
  logging.warning('warn message')

Simple configuration and non blocking handler
'''''''''''''''''''''''''''''''''''''''''''''
.. code-block:: python

  import logging
  from teams_logger import TeamsQueueHandler
  th = TeamsQueueHandler(url='YOUR_WEB_HOOK_URL', level=logging.INFO)
  logging.basicConfig(handlers=[th])
  logging.info("info message")

Simple configuration and Card Formatter
'''''''''''''''''''''''''''''''''''''''
.. code-block:: python

  import logging
  from teams_logger import TeamsHandler, Office365CardFormatter

  logger = logging.getLogger(__name__)
  logger.setLevel(logging.DEBUG)

  th = TeamsHandler(url='YOUR_WEB_HOOK_URL', level=logging.INFO)
  th.setLevel(logging.DEBUG)
  logger.addHandler(th)

  cf = Office365CardFormatter(facts=["name", "levelname", "lineno"])
  th.setFormatter(cf)
  logger.debug('debug message')
  logger.info('info message')
  logger.warning('warning message')
  logger.error('error message')
  logger.critical('critical message')

  try:
      2/0
  except ZeroDivisionError as e:
      logger.error('Oops !', exc_info=True)

Dictionary configuration and Card Formatter
'''''''''''''''''''''''''''''''''''''''''''
.. code-block:: python

  import logging
  import logging.config
  from teams_logger import TeamsHandler, Office365CardFormatter

  url = 'YOUR_WEB_HOOK_URL'
  logging_dict = {
      'version': 1, 
      'disable_existing_loggers': False,
      'formatters': {
          'teamscard': {
              '()': Office365CardFormatter,
              'facts': ["name", "levelname", "lineno"],
          },
      },
      'handlers': {
          'msteams': {
              'level': logging.INFO,
              'class': 'teams_logger.TeamsHandler',
              'url': url,
              'formatter': 'teamscard',
          },
      },
      'loggers': {
          __name__: {
              'handlers': ['msteams'],
              'level': logging.DEBUG,
          }
      },
  }
  logging.config.dictConfig(logging_dict)
  logger = logging.getLogger(__name__)
  logger.info('Info message')
python-rule-engine 1.0.0
A rule engine where rules are written in JSON format
License: MIT
Requires Python: <4.0,>=3.9
Keywords: rule-engine, rules, json, python

# python-rule-engine

[![pypi](https://img.shields.io/pypi/v/python-rule-engine.svg)](https://pypi.python.org/pypi/python-rule-engine)
[![versions](https://img.shields.io/pypi/pyversions/python-rule-engine.svg)](https://github.com/santalvarez/python-rule-engine)
[![license](https://img.shields.io/github/license/pydantic/pydantic.svg)](https://github.com/pydantic/pydantic/blob/main/LICENSE)
[![Downloads](https://pepy.tech/badge/python-rule-engine)](https://pepy.tech/project/python-rule-engine)
[![Downloads Month](https://pepy.tech/badge/python-rule-engine/month)](https://pepy.tech/project/python-rule-engine)



A rule engine where rules are defined in JSON format. The syntax of the rules belongs to the [json-rules-engine](https://github.com/CacheControl/json-rules-engine) javascript library though it contains some changes to make it more powerfull.

- [Rule Syntax](docs/rules.md)
- [Operators](docs/operators.md)

## Installation
```
pip install python-rule-engine
```

## Quick Example

```python
from python_rule_engine import RuleEngine

rule = {
    "name": "basic_rule",
    "conditions": {
        "all": [
            {
                # JSONPath support
                "path": "$.person.name",
                "operator": "equal",
                "value": "Lionel"
            },
            {
                "path": "$.person.last_name",
                "operator": "equal",
                "value": "Messi"
            }
        ]
    }
}

obj = {
    "person": {
        "name": "Lionel",
        "last_name": "Messi"
    }
}

engine = RuleEngine([rule])

results = engine.evaluate(obj)

```