Skip to main content

Character and Corporation statistics, including detailed information on ESS, Ratting, Trading, Mining, and other activities.

Project description

Assets module for AllianceAuth.

pre-commit.ci status Code style: black Tests codecov

ko-fi

Assets System with Ordering Feature

-

Features

  • Asset System for Character & Corporation
  • Ordering System

Upcoming

  • Performance Updates
  • More Filter
  • Notifications
  • Status Updates

Installation

[!NOTE] AA Assets needs at least Alliance Auth v4.0.0 Please make sure to update your Alliance Auth before you install this APP

Step 1 - Install the Package

Make sure you're in your virtual environment (venv) of your Alliance Auth then install the pakage.

pip install aa-assets

Step 2 - Configure Alliance Auth

Configure your Alliance Auth settings (local.py) as follows:

  • Add 'eveuniverse', to INSTALLED_APPS
  • Add 'assets', to INSTALLED_APPS

Step 3 - Add the Scheduled Tasks

To set up the Scheduled Tasks add following code to your local.py

CELERYBEAT_SCHEDULE["assets_update_all_assets"] = {
    "task": "assets.tasks.update_all_assets",
    "schedule": crontab(minute=0, hour="*/1"),
}
CELERYBEAT_SCHEDULE["assets_update_all_locations"] = {
    "task": "assets.tasks.update_all_locations",
    "schedule": crontab(minute=0, hour="*/12"),
}
CELERYBEAT_SCHEDULE["assets_update_all_parent_locations"] = {
    "task": "assets.tasks.update_all_parent_locations",
    "schedule": crontab(minute=0, hour=0, day_of_week=0),
}

Step 4 - Migration to AA

python manage.py collectstatic
python manage.py migrate

Step 5 - Setting up Permissions

With the Following IDs you can set up the permissions for the Assets

ID Description
basic_access Can access the Assets module All Members with the Permission can access the Assets.
add_personal_owner Can add personal owners
add_corporate_owner Can add corporate owners
manage_requests Can manage requests Get Notifications & Manage Requests

Step 6 - (Optional) Setting up Compatibilies

The Following Settings can be setting up in the local.py

  • ASSETS_APP_NAME: "YOURNAME" - Set the name of the APP

  • ASSETS_LOGGER_USE: True / False - Set to use own Logger File

If you set up ASSETS_LOGGER_USE to True you need to add the following code below:

LOGGING_ASSETS = {
    "handlers": {
        "assets_file": {
            "level": "INFO",
            "class": "logging.handlers.RotatingFileHandler",
            "filename": os.path.join(BASE_DIR, "log/assets.log"),
            "formatter": "verbose",
            "maxBytes": 1024 * 1024 * 5,
            "backupCount": 5,
        },
    },
    "loggers": {
        "assets": {
            "handlers": ["assets_file", "console"],
            "level": "INFO",
        },
    },
}
LOGGING["handlers"].update(LOGGING_ASSETS["handlers"])
LOGGING["loggers"].update(LOGGING_ASSETS["loggers"])

Highlights

[!NOTE] Contributing You want to improve the project? Just Make a Pull Request with the Guidelines. We Using pre-commit

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

aa_assets-0.1.2.tar.gz (58.4 kB view details)

Uploaded Source

Built Distribution

aa_assets-0.1.2-py3-none-any.whl (70.4 kB view details)

Uploaded Python 3

File details

Details for the file aa_assets-0.1.2.tar.gz.

File metadata

  • Download URL: aa_assets-0.1.2.tar.gz
  • Upload date:
  • Size: 58.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for aa_assets-0.1.2.tar.gz
Algorithm Hash digest
SHA256 eca558bb36e1c86baea9b71efda1ab38e86cf6a25eb8de3d3ef4e65798481570
MD5 02886b9cb70570d0d10356c9dd382760
BLAKE2b-256 4e0ef9dec2e3c0689d1270b4d0560497324fae3842e837532c511aeda97df4ea

See more details on using hashes here.

File details

Details for the file aa_assets-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: aa_assets-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 70.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for aa_assets-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 31bf5f468e4e48f00cdabf4a24d98c934550c7063319bd0767e29c43c7736441
MD5 8e43aa3ace20da6634d27c0666260fe3
BLAKE2b-256 a18a638e7d27e63879aa9b329e83521ac804db4d6cdc0d7b084a44f621524d2f

See more details on using hashes here.

Supported by

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