Skip to main content

A simple library for easily working with time

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: inventor-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b3c7ff019b1e23bd5a04f3b9f53d721cc141f686a0828c007d978413179c6b83
MD5 be9b95d89ff41f34b757748a643d21ea
BLAKE2b-256 81b002378b27ff0acef3b529044a7f08ef15d7677afa37d826dbc32adafe2532

See more details on using hashes here.

File details

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

File metadata

  • Download URL: inventor-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0389de6409ad12a4e4d5d7d48859f897011edc28b8b68c700b46837ff37700d4
MD5 0fcfaf73bd37f4ecf63bf3772bf52890
BLAKE2b-256 49f27d84cd32694bfe0848e5f2f096018e5694ccc2e05788235243069861d706

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