semvec/pypi-packages huggingface dataset:
set-algebra 0.3.6
Algebra of Sets
License: MIT
Keywords: math set interval

Algebra of Sets in Python
=================================

| How to have a set containing all real numbers from 1 to 10 not including 10?
| How to add interval from 20 to 30 to the set?
| How to make sure this set is a subset of set of positive numbers?
| How to add scalar number to it?
| How to get complement of the set?

.. code:: python

    >>> from set_algebra import Interval, Set
    >>> s = Set('[1, 10)')
    >>> 1 in s
    True
    >>> 10 in s
    False
    >>> s.add(Interval('[20, 30]'))
    >>> 25 in s
    True
    >>> s <= Set('(0, inf)')
    True
    >>> s.add(100)
    >>> s.notation
    '[1, 10), [20, 30], {100}'
    >>> (~s).notation
    '(-inf, 1), [10, 20), (30, 100), (100, inf)'

Set-Algebra provides classes representing math concepts:

- Infinity
- Endpoint
- Interval
- Uncountable Infinite Set

Besides numbers, Set-Algebra supports all objects that can be compared to each other - strings, datetimes, etc.

Infinity() is greater than any of these objects except float('inf') and float('nan').
NegativeInfinity included as well.


Set-Algebra fully supports Python3. Tested on python 2.7, 3.2 - 3.6.
whist-core 0.9.2
Whist rules implementation
License: MIT
Requires Python: <4.0,>=3.9
Keywords: game, whist

[![Documentation Status](https://readthedocs.org/projects/pip/badge/?version=stable)](https://whist-core.readthedocs.io/en/latest/)
[![codecov](https://codecov.io/gh/Whist-Team/Whist-Core/branch/main/graph/badge.svg)](https://codecov.io/gh/Whist-Team/Whist-Core)
![PyPI](https://img.shields.io/pypi/v/whist-core)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/whist-core)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/whist-core)
![GitHub repo size](https://img.shields.io/github/repo-size/whist-team/whist-core)
![Lines of code](https://img.shields.io/tokei/lines/github/whist-team/whist-core)
![PyPI - Downloads](https://img.shields.io/pypi/dm/whist-core)
![PyPI - License](https://img.shields.io/pypi/l/whist-core)

# Whist-Core
Whist rules implementation

## Development

### Setup
You need [Poetry](https://python-poetry.org/) for development.
```bash
# Create venv and install deps
poetry install
```
The Python virtual environment will be created in the `.venv` directory.

### Run tests/lint
```bash
# Run tests (in venv)
python -m pytest # or pylint...
# OR
poetry run python -m pytest
```

### Build
Generates `sdist` and `bdist_wheel`.
```bash
poetry build
```

### Publish
You need the environment variable `POETRY_PYPI_TOKEN_PYPI` filled with a PyPI token.
```bash
poetry build
poetry publish
# OR
poetry publish --build
```