Skip to main content

A simple to use economy module

Project description

py-economy

pypi_version

python_supported_versions

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyeconomy-0.1.26.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

pyeconomy-0.1.26-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page