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

Version

Currently running on version 0.1.11

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.11.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pyeconomy-0.1.11-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file pyeconomy-0.1.11.tar.gz.

File metadata

  • Download URL: pyeconomy-0.1.11.tar.gz
  • Upload date:
  • Size: 4.5 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

Hashes for pyeconomy-0.1.11.tar.gz
Algorithm Hash digest
SHA256 e01de1f0601527345feed938c0e327b6306e70945b5b8e1e27da978afc52a0a3
MD5 fe1ce80a892342d47b4f3725b7723811
BLAKE2b-256 fdbc893922aaac6eca43ca88ab607d1f3bd7bc4f8dceadbc5f467f77fdb4a51f

See more details on using hashes here.

File details

Details for the file pyeconomy-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: pyeconomy-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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

Hashes for pyeconomy-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 ffdad0932377f6e5450e01ed1d13b2de12b8c511dc382679271bab19f33925b9
MD5 3a70661d01501c461e4cd4c0d34b33af
BLAKE2b-256 4b5098bb520d755f9bf9f68ab5cd2b07ceb3797548791110fcc79241b4f3b825

See more details on using hashes here.

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