Skip to main content

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

  1. this app is built on corptools and invoices. install them first.
  2. pip install allianceauth-corptools-moons
  3. add 'moons' to your installed apps in local.py
  4. set your "public" moons variable in local.py
   PUBLIC_MOON_CORPS = [1234, 56789, 101112] # where the numbers are the corp ids
  1. run migrations
  2. run the setup management task
   python manage.py moons_setup_tool
  1. wait for the tasks to finish.

  2. you need to ensure all your corps have pulled data and are working correctly before you invoice for the first time.

  3. 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]
  1. once you are happy, open admin and enable and then run the Send Moon Invoices task. 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_BUCKET option

MOONS_ORE_RATE_BUY_SELL="sell"

  • Sets the ore prices to buy and uses the bucket defined in the MOONS_ORE_RATE_BUCKET option

MOONS_ORE_RATE_BUY_SELL="split"

  • Sets the ore prices to a calculated split value and ignores bucket defined in the MOONS_ORE_RATE_BUCKET option
  • (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)

Source distribution for allianceauth-corptools-moons 2.0.1
File Size Uploaded
allianceauth_corptools_moons-2.0.1.tar.gz 893.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for allianceauth-corptools-moons 2.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page