ayto-1.0.1


توضیحات

A Python library for calculating couple probabilites for the TV show *Are You the One?*
ویژگی مقدار
سیستم عامل OS Independent
نام فایل ayto-1.0.1
نام ayto
نسخه کتابخانه 1.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Dan Turkel <daturkel@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/ayto/
مجوز -
# AYTO [![PyPI version](https://badge.fury.io/py/ayto.svg)](https://badge.fury.io/py/ayto) ![Python version](https://img.shields.io/pypi/pyversions/ayto) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) A Python library for calculating couple probabilities for the TV show [Are You the One?](https://en.wikipedia.org/wiki/Are_You_the_One%3F). ## Installation ``` pip install ayto ``` ## Usage For a walkthrough of all of `ayto`'s functionality, see the [demo notebook](https://github.com/daturkel/ayto/blob/main/demo.ipynb). ```python from ayto import AYTO guys = ["Albert", "Bill", "Carl"] girls = ["Daisy", "Emily", "Faith"] season = AYTO(guys, girls) # "there are 6 possible scenarios" print(f"there are {season.num_scenarios} possible scenarios") # Al and Daisy go to the Truth Booth and get "NO MATCH" scenarios_left = season.apply_truth_booth("Albert", "Daisy", False) # "4 scenarios remain" print(f"{scenarios_left} scenarios remain") # A matchup ceremony with 1 beam scenarios_left = season.apply_matchup_ceremony( [("Albert", "Emily"), ("Bill", "Daisy"), ("Carl", "Faith")], beams=1 ) # "2 scenarios remain" print(f"{scenarios_left} scenarios remain") print(season.probabilities) # Albert Billy Carl # Daisy 0.0 0.5 0.5 # Emily 0.5 0.0 0.5 # Faith 0.5 0.5 0.0 season.save("my_season") # ...later, to restore everything: loaded_season = AYTO.load("my_season") print(loaded_season.probabilities) # Albert Billy Carl # Daisy 0.0 0.5 0.5 # Emily 0.5 0.0 0.5 # Faith 0.5 0.5 0.0 ```


نیازمندی

مقدار نام
- numpy
- pandas
>=0.991 mypy
>=7.2 pytest
>=4.0 pytest-benchmark
>=4.0 pytest-cov


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl ayto-1.0.1:

    pip install ayto-1.0.1.whl


نصب پکیج tar.gz ayto-1.0.1:

    pip install ayto-1.0.1.tar.gz