Metadata-Version: 2.1
Name: pyeconomy
Version: 0.1.25
Summary: A simple to use economy module
Home-page: https://github.com/konradsic/py-economy
Author: konradsic (Konrad)
Author-email: sicinskikonrad@gmail.com
License: UNKNOWN
Keywords: python,json,discord,discord-bot,cryptocurrency,economy
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: discord
Requires-Dist: typing


# py-economy

<a href="https://pypi.org/project/pyeconomy/0.1.25/"><img src="https://shields.io/pypi/v/pyeconomy.svg" alt="pypi_version" /></a>

<a href="https://pypi.org/project/pyeconomy/0.1.25/"><img src="https://img.shields.io/pypi/pyversions/pyeconomy.svg" alt="python_supported_versions" /></a>



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

* [PyPi - Python Package Index](https://pypi.org/project/pyeconomy/0.1.25/)

## 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:

```py

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. 



