Metadata-Version: 2.4
Name: inventor
Version: 1.0.4
Summary: A simple library for easily creating and managing inventory
Home-page: https://github.com/ISviterI/chronolight
Author: Sviter
License: MIT
Project-URL: Homepage, https://github.com/ISviterI/inventor
Project-URL: Discord, https://discord.gg/MXv3KTFmPE
Project-URL: Wiki, https://github.com/ISviterI/inventor/wiki
Project-URL: Documentation, https://github.com/ISviterI/inventor/wiki/Documentation
Keywords: inventor,inventory,pocket,easy,simple,peak,bruh,game,games,forgames
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

# inventor

[![Discord](https://img.shields.io/discord/1488880281376260186?color=7289da&label=discord&logo=discord&logoColor=white)](https://discord.gg/MXv3KTFmPE)

A simple library for creating inventory for games.

## Installation

```bash
pip install inventor
```

## Quick Start

```python
import inventor
inv = inventor.Inventory()
sword = inventor.Item("sword", lambda item: print("Attacked!"), description="Use it to attack")
inv.add_item(sword)
while True:
    action = input("What to do?: ")
    if action == "inventory":
        inv.print_slot(message="Here's ur inventory:")
    for i in inv.slots.get("items"):
        if action == i.name:
            i.use()
```
