Skip to main content

A Easier way to make a Economic System

Project description

Python-Economy

Require to have Python 3.7
This python package is just to make save files easier.

To install

# Windows
pip install pythoneconomy

How to Import

from economy import economy

Quick Example

#To create a Folder with a Fileinside:

from economy import economy
economy.bal.start(foldername, filename,   {"Variable": 0})

Values

#Add Value (Example Output: 1+1 = 2)
from economy import economy
addvalue(foldername, userdatajsonfilename,valuename, value)

#Subtract Value (Example Output: 1-1 = 0)
subtractvalue(foldername, userdatajsonfilename,valuename, value)

#Get Value (Example: User: 3 | print(user) | Output: 3)
getvalue(foldername, userdatajsonfilename,valuename)

#Change Value (Example: User:  3 | print(user) | Output: 3 | changevalue(user, 4) | Output: 4)
changevalue(foldername, userdatajsonfilename, valuename, value)

#Add a New Value (Example: User 3 | newvalue(user, {"e":3}) | print(e) | Output: 3)
newvalue(foldername, userdatajsonfilename, valuename, value)

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

pythoneconomy-0.0.6.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

pythoneconomy-0.0.6-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

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