Skip to main content

A simple library for easily creating and managing inventory

Project description

inventor

Discord

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.3.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inventor-1.0.3-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file inventor-1.0.3.tar.gz.

File metadata

  • Download URL: inventor-1.0.3.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

Hashes for inventor-1.0.3.tar.gz
Algorithm Hash digest
SHA256 47d6ff08fad76a758ca9905339f887937ea299031ed10d6c0f62f0ecd3ba4657
MD5 55966c509c72838161a2dafbf9055fc7
BLAKE2b-256 9a594660c98b1546a5d065768814babbf3d6cd4053bb898e9677ab1c222d7b45

See more details on using hashes here.

File details

Details for the file inventor-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: inventor-1.0.3-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

Hashes for inventor-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 daa1309c947c4989eda405d4730fb4d7f1f5ea3f4c0957f55dd2862f790fc78b
MD5 77dcc4ea7eade5b5f078711aa948c6f6
BLAKE2b-256 86ddfc7d6eba8b84fdd636af4e5fba501bff64d9c13ba8d53c8a40fb70ac003a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page