gamebanking is a module that makes coding currency in games easier.
Project description
gamebanking
gamebanking is a Python module that makes coding game currency easier. It allows you to create accounts, deposit and withdraw currency, transfer money, track transaction history, and manage accounts.
Functions
create(number)- Creates a new account with the given number. Returns True if successful, False if the account already exists.deposit(number, amount)- Adds currency to the given account. Returns True if successful, False if the account does not exist. Logs the transaction in the account’s history.withdraw(number, amount)- Subtracts currency from the given account. Returns True if successful, False if the account does not exist or has insufficient funds. Logs the transaction in the account’s history.balance(number)- Returns the current balance of the given account. Returns False if the account does not exist.transfer(number1, number2, amount)- Moves currency from one account to another. Returns True if successful, False if accounts are invalid or the source account lacks funds. Both accounts’ histories are updated.reset(number)- Resets the balance of the given account to 0. Returns True if successful, False if the account does not exist.resetall()- Resets all accounts’ balances to 0.delete(number)- Deletes a single account. Returns True if successful, False if the account does not exist.deleteall()- Deletes all accounts.history(number)- Returns a list of all transactions for the given account. Returns an empty list if no transactions exist. Returns False if the account does not exist.
Author
CorruptDragon24
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gamebanking-1.1.1.tar.gz
(2.1 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 gamebanking-1.1.1.tar.gz.
File metadata
- Download URL: gamebanking-1.1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d19937a2f68cf51af1fa8f75c47e35d0f594d1ce9a2fa8d24d2e394b9d41a94
|
|
| MD5 |
43075511246ddd96181a8d6e83b9bfd8
|
|
| BLAKE2b-256 |
32c7cc99c4ebe993a87b9ad7df5902c50e8ad37270a8cb44bbcb9d9a137438ae
|
File details
Details for the file gamebanking-1.1.1-py3-none-any.whl.
File metadata
- Download URL: gamebanking-1.1.1-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91d8425bc281d20d8fe3b0e3f14a9ce317af123b0c2cd47d4796585a0aee6b94
|
|
| MD5 |
6488b9e2d0bb060f5f116f471457b9de
|
|
| BLAKE2b-256 |
338e4f01f5f10fbcc42a2541d766adf52875a5f19a8529110a24797abc79014d
|