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.2.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.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for inventor-1.0.2.tar.gz
Algorithm Hash digest
SHA256 eec0635eab4e07c3add8a6eea6bf744f41a58640db7b6ec78306056573978f67
MD5 4e776e400153928a42f38b9a732b400d
BLAKE2b-256 639b4f19abff1db3605f65e7a8626829fc4bee2f832c1f05da8b4c7c7b7da1ad

See more details on using hashes here.

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

Hashes for inventor-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c360f6599bda2a6e2408e22054ff0ec3766d14115de6cf0741531a1aac385e07
MD5 1d713f83626fba74772879cf19f3c000
BLAKE2b-256 c027fc9fe64b51162b72ec8968404fff05047eaede3867e10af942e9a9243285

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