An open API service indexing awesome lists of open source software.

https://github.com/codeofandrin/uncle-nelson

A small library to calculate mixes for the game Schedule 1
https://github.com/codeofandrin/uncle-nelson

calculator python python3 schedule-1 schedule-i

Last synced: 8 months ago
JSON representation

A small library to calculate mixes for the game Schedule 1

Awesome Lists containing this project

README

          

uncle-nelson


A small library to calculate mixes for the game Schedule 1.


PyPi version
Python version
License

## Installing

**Python 3.9 or higher is required**

To install the latest stable version, use
```cmd
pip install -U uncle-nelson
```

To install the development version (**may be unstable**), use
```cmd
pip install -U git+https://github.com/codeofandrin/uncle-nelson
```

## Example

```python
from uncle_nelson import calculate_mix, DrugType, IngredientType

def main():
mix = calculate_mix(DrugType.meth, [IngredientType.cuke, IngredientType.banana])
effects = ", ".join(e.value for e in mix.effects)

print(f"Your custom mix has following effects: {effects}")

if __name__ == "__main__":
main()
```

## Links
* [Documentation][1]

[1]: https://uncle-nelson.readthedocs.io/latest/