MintCore
Centralized virtual currency engine for game economies.
Install
pip install mintcore # core engine + CLI
pip install mintcore[bot] # + Discord bot
pip install mintcore[dev] # + dev/test tools
Quickstart
# 1. Install
pip install mintcore[bot]
# 2. Write .env
mintcore init
# 3. Fill in DISCORD_TOKEN in .env
# 4. Start API (terminal 1)
mintcore start
# 5. Start bot (terminal 2)
python -m mintcore.bot.main
Embed in your own app
from mintcore import MintCore
engine = MintCore(database_url="sqlite:///./mygame.db", admin_key="s3cr3t")
engine.run(host="0.0.0.0", port=8000)
CLI
mintcore start
mintcore admin currency GLD Gold G --supply-cap 1000000
mintcore admin mint player1 500 GLD
mintcore admin tax 5 GLD
mintcore admin richlist GLD
mintcore status
Discord slash commands
| Command | Who | Description |
|---|---|---|
/balance |
Everyone | Your wallet balances |
/transfer @user amount currency |
Everyone | Send currency |
/loan amount currency |
Everyone | Borrow from treasury |
/repay amount currency |
Everyone | Pay back debt |
/ledger |
Everyone | Last 10 transactions |
/rate USD EUR |
Everyone | Exchange rate lookup |
/admin-mint @user amount currency |
MintAdmin | Mint currency |
/admin-burn @user amount currency |
MintAdmin | Burn currency |
/admin-tax percentage currency |
MintAdmin | Tax sweep |
/admin-interest |
MintAdmin | Apply interest |
/admin-currency id name symbol |
MintAdmin | Create currency |
/stats |
Everyone | Economy snapshot |
/richlist currency |
Everyone | Top holders |
Publishing to PyPI
pip install hatch twine
hatch build
twine upload dist/*
Metadata
Release files for mintcore 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mintcore-1.0.1.tar.gz | 16.6 kB | Without provenance | Details for mintcore-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mintcore-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for mintcore-1.0.1-py3-none-any.whl |
Total release size: 39.1 kB
Release files / mintcore-1.0.1.tar.gz
| Download URL | mintcore-1.0.1.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9435219af1bef590867c8667e3c9d2db8fe374d04a0a1e6cb0f87b998840ddc6
|
|
BLAKE2b-256 checksum How to use checksums |
b7511cbd586f3ab561ffb8d915544f83693c45bf83c19ab02dd50dcd7ca7a513
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / mintcore-1.0.1-py3-none-any.whl
| Download URL | mintcore-1.0.1-py3-none-any.whl |
|---|---|
| Size | 22.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5ebc813697589c0fd197743e3b1e6d0d6f089680a0a2abfffa7adfd79d37f9c
|
|
BLAKE2b-256 checksum How to use checksums |
50853069268e5405e44df2670349551618ecd4976c8c86b0ca55747ecc62f592
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for mintcore 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.