Skip to main content

Centralized virtual currency engine for game economies

Project description

MintCore

PyPI Python License: SOCL-1.0

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/*

GitHub: https://github.com/TheServer-lab/mintcore

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

mintcore-1.0.1.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mintcore-1.0.1-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file mintcore-1.0.1.tar.gz.

File metadata

  • Download URL: mintcore-1.0.1.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mintcore-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9435219af1bef590867c8667e3c9d2db8fe374d04a0a1e6cb0f87b998840ddc6
MD5 979c049a41518503a92dcb39b2796a39
BLAKE2b-256 b7511cbd586f3ab561ffb8d915544f83693c45bf83c19ab02dd50dcd7ca7a513

See more details on using hashes here.

File details

Details for the file mintcore-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: mintcore-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mintcore-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5ebc813697589c0fd197743e3b1e6d0d6f089680a0a2abfffa7adfd79d37f9c
MD5 6e2f8275f0ad0a8b3db885825e5b751f
BLAKE2b-256 50853069268e5405e44df2670349551618ecd4976c8c86b0ca55747ecc62f592

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page