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.4.tar.gz (2.4 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.4-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: inventor-1.0.4.tar.gz
  • Upload date:
  • Size: 2.4 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.4.tar.gz
Algorithm Hash digest
SHA256 17d44e57c3da4f422351a92701bbe800962067863cdfb9dd8329f7251c5c6e59
MD5 64f8f5e78017f28daf1ebef969c0dcc4
BLAKE2b-256 68328c8d9e3717a77a24612fb7db12c192c147773c7abe5c521c40c103d49ad6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: inventor-1.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fbec0a1d65ea3655d3df24fb80754bde0f18003377207cf48334afdc3094af5b
MD5 c0441e3783e0886d046b6f54cb1b91d2
BLAKE2b-256 9f8051f54d08310c4eec3b9786002066947a82f1f2338393395782e324bb99a2

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