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
Version
Currently running on version 0.1.13
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
Hashes for pyeconomy-0.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9075d87711437cfa3fc8c144adddd4cd3b9360e3b33ffb7cc718a81557b85f2e |
|
MD5 | 97d7c1a67e901ea3d053fc5e8ea24718 |
|
BLAKE2b-256 | be6eb97ade0c0873814d8e67b3426f0a597961976e135140c94916597426c5eb |