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)
-
If you have any issues:
https://github.com/ErrorThree/Python-Economy/issues -
API Documentation:
Coming Soon
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)
Built Distribution
Close
Hashes for pythoneconomy-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4954a1be6315966337d120a5e102b2a8b57d768138382240e6d8e2d7e1f16d27 |
|
MD5 | b5f347722e31c52854dc32ae05fbbb81 |
|
BLAKE2b-256 | 540f81015596f20bb6097f418f7d97d703b970857fc4c3e1d61cf6242d3bcbcd |