A simple to use economy module
Project description
py-economy
A simple to use economy module.
WARNING: This project is in alpha release and may be unstable and buggy.
Developers: Konrad (@konradsic)
Install
pip install pyeconomy
Links
How it works
It is very simple:
-
Everything is stored in
.json
files -
Discord async functions works same as normal, but it returns an embed object that you can send.
Code example:
import pyeconomy as economy
instance = economy.Economy(discord_mode=False)
user = instance.get_user_by_id(id="1234567890") # enter user id here
if user is None:
print("User not found!")
else:
print(f"{user.name}'s balance: {user.wallet}")
This easy example will create an economy instance (economy.Economy
) set discord mode to False
.
Then it searches for a user with id 1234567890
, checks if it exists and prints it's balance.
Please note, that its an pre-alpha relase and it does not support discord yet.
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
Built Distribution
File details
Details for the file pyeconomy-0.1.22.tar.gz
.
File metadata
- Download URL: pyeconomy-0.1.22.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2502c8c657c512636900b1248e7ce3c40c8ff8363e0fa2aab992398aaff549ff |
|
MD5 | 9d4175db8fa2fbdd9d189e92ab0b3a9c |
|
BLAKE2b-256 | 493230e94064d23bd6b6c0dbd3037b7247a9a6a1001a684af188090e9f946ebc |
File details
Details for the file pyeconomy-0.1.22-py3-none-any.whl
.
File metadata
- Download URL: pyeconomy-0.1.22-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 087862c93bd33ada527fb1cec77c5360506f931a2c1c794065301b7ffaadaf98 |
|
MD5 | bfdbbf8df0689b8783abe107c3236233 |
|
BLAKE2b-256 | a98badef2b277ba69db7eaeb945539024ecb05968331e1d840c4a9010895ecb8 |