Skip to main content

A simple to use economy module

Project description

py-economy

pypi_version

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

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.balance}")

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.

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

Uploaded Source

Built Distribution

pyeconomy-0.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyeconomy-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 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.1.tar.gz
Algorithm Hash digest
SHA256 beeab89513f28b1c62039a3c47eba2f16387d57a8c75ac5d705a12560ae1e167
MD5 9ecb31f35466dd83e2152620df3e5b30
BLAKE2b-256 cfabdb6c0312ce48c1b005c18f266c564ebc933df498e3e0c0090bcb55f455b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyeconomy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7961876eb94f9408563885546a74880f3a025b3e1627d1b73df5fccd1856564f
MD5 76cb8bc7b6e2865e7a71257521b68c86
BLAKE2b-256 7ada03343bc3755113d78d08aaa2e418722fe68113ef04622b9dbe84c68e0c68

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