A simple library for easily creating and managing inventory
Project description
inventor
A simple library for creating inventory for games.
Installation
pip install inventor
Quick Start
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()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
inventor-1.0.2.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inventor-1.0.2.tar.gz.
File metadata
- Download URL: inventor-1.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eec0635eab4e07c3add8a6eea6bf744f41a58640db7b6ec78306056573978f67
|
|
| MD5 |
4e776e400153928a42f38b9a732b400d
|
|
| BLAKE2b-256 |
639b4f19abff1db3605f65e7a8626829fc4bee2f832c1f05da8b4c7c7b7da1ad
|
File details
Details for the file inventor-1.0.2-py3-none-any.whl.
File metadata
- Download URL: inventor-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c360f6599bda2a6e2408e22054ff0ec3766d14115de6cf0741531a1aac385e07
|
|
| MD5 |
1d713f83626fba74772879cf19f3c000
|
|
| BLAKE2b-256 |
c027fc9fe64b51162b72ec8968404fff05047eaede3867e10af942e9a9243285
|