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.12

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

Uploaded Source

Built Distribution

pyeconomy-0.1.12-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyeconomy-0.1.12.tar.gz
  • Upload date:
  • Size: 4.9 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.12.tar.gz
Algorithm Hash digest
SHA256 9bd522982e707e05c39ff9a505342f030cf2e1bfc9285e33f5c0d22a59205f19
MD5 cf052884e396ebacf801208d9b648033
BLAKE2b-256 2d35acf78ad9969880f2206d345342d6846381f5bfa9beed822615b35cdf6660

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyeconomy-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 f5b37bba0c0a735edacc62108b16122dbbb54d357b882d56ddfd39c93b4ae625
MD5 0b945eb7914855e36586da9d1e65c338
BLAKE2b-256 e353cf2ea3e0b2d428c52623a164db9134bbce6a651467aad772e26ec56872db

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