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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyeconomy-0.1.26.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

Hashes for pyeconomy-0.1.26.tar.gz
Algorithm Hash digest
SHA256 bb9c5a0b309c1e4bae666e2ef6477cd5bed8841bad6ed62b3318be0cc73622d1
MD5 39f9ac3ccfddd410d5e99f1388820cf8
BLAKE2b-256 d6b452b23ed82862e599258cae340a58cce7f23d5368287ec75c6ff6997218e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyeconomy-0.1.26-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

Hashes for pyeconomy-0.1.26-py3-none-any.whl
Algorithm Hash digest
SHA256 f5d4538c091c3a773877af8f657bdb503b26c51b0facaa1140712cea3e626776
MD5 6ca101d0158fcc8860a90ce34e74bed7
BLAKE2b-256 3f81c64d1feb427ed36e04da23725067410a42150543c4071e73858f77c13be0

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