Moon Tools
moon frack monitoring and taxation, taxation is calculated ( default, but configurable ) 2 weekly and includes all valid "taxes" from the period.
tax options
- Corp Filter
- Rank system for all strucutres that are captured in a "Tax Group"
- Flat rate or configurable variable tax rates per ore type More specific overrides the rest
- Region filter
- Constellation Filter
- System Filter
- Moon Filter
installation
- this app is built on corptools and invoices. install them first.
pip install allianceauth-corptools-moons- add 'moons' to your installed apps in local.py
- set your "public" moons variable in
local.py
PUBLIC_MOON_CORPS = [1234, 56789, 101112] # where the numbers are the corp ids
- run migrations
- run the setup management task
python manage.py moons_setup_tool
-
wait for the tasks to finish.
-
you need to ensure all your corps have pulled data and are working correctly before you invoice for the first time.
-
setup your tax brackets and taxation rates / zones in admin
admin > moons > mining tax ( Highest rank is run first )
check the settings in console
python manage.py moons_tax_outstanding
Calculating!
Last Invoice 2021-09-06 00:00:00+00:00!
Doing some math... Please wait...
We've seen 56 known members!
We've seen 12 unknown characters!
Who have mined $833,068,517,622.8707 worth of ore!
Current Tax puts this at $195,791,603,220.688 in taxes!
the structures included are:
[system] - [name]
[system] - [name]
[system] - [name]
[system] - [name]
[system] - [name]
[system] - [name]
- once you are happy, open admin and enable and then run the
Send Moon Invoicestask. This will now run every 14 days. You can freely edit the period of this task to match what your group requires.
Ore Price Sources
MOONS_ORE_RATE_BUY_SELL
MOONS_ORE_RATE_BUY_SELL="buy"
- Sets the ore prices to buy and uses the bucket defined in the
MOONS_ORE_RATE_BUCKEToption
MOONS_ORE_RATE_BUY_SELL="sell"
- Sets the ore prices to buy and uses the bucket defined in the
MOONS_ORE_RATE_BUCKEToption
MOONS_ORE_RATE_BUY_SELL="split"
- Sets the ore prices to a calculated split value and ignores bucket defined in the
MOONS_ORE_RATE_BUCKEToption (Max Buy + Min Sell) / 2
MOONS_ORE_RATE_BUCKET
Sets the bucket used in buy/sell ore calculations:
MOONS_ORE_RATE_BUCKET="weightedAverage"MOONS_ORE_RATE_BUCKET="max"MOONS_ORE_RATE_BUCKET="min"MOONS_ORE_RATE_BUCKET="stddev"MOONS_ORE_RATE_BUCKET="median"MOONS_ORE_RATE_BUCKET="percentile"
Metadata
Release files for allianceauth-corptools-moons 2.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 | |
|---|---|---|---|
| allianceauth_corptools_moons-2.0.1.tar.gz | 893.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| allianceauth_corptools_moons-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.8 MB
Release files / allianceauth_corptools_moons-2.0.1.tar.gz
| Download URL | allianceauth_corptools_moons-2.0.1.tar.gz |
|---|---|
| Size | 893.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fc1acfcec0b3c164f8e0e2a4231ac3fd245a41084944c6f25bcb00b29499e61
|
|
BLAKE2b-256 checksum How to use checksums |
85b23e2bef66fd5340fa702e31467a55011fb817a7e6275569f997c64017eb9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / allianceauth_corptools_moons-2.0.1-py3-none-any.whl
| Download URL | allianceauth_corptools_moons-2.0.1-py3-none-any.whl |
|---|---|
| Size | 934.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04b4d0c61d59249f762f540800ba38ca063ffdbe2d0ad844d1550feeb6b6da97
|
|
BLAKE2b-256 checksum How to use checksums |
0fdb69f969907d2d29dc97ae7d99602daebb7fd602dfffbc0cfd0558b4c89dea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|