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

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.1.tar.gz (58.8 kB view details)

Uploaded Source

Built Distribution

aa_assets-0.1.1-py3-none-any.whl (71.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aa_assets-0.1.1.tar.gz
  • Upload date:
  • Size: 58.8 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.1.tar.gz
Algorithm Hash digest
SHA256 f31db7cd1f9514b3c4d8c4ca879b505682f06474384108d90d7b4a3ddad329fa
MD5 63e7031b13072dae0552e810ff114b53
BLAKE2b-256 1d91d34359bbc49bc3396a4f79aaaf907e168bb47c5f4a597bdf985d0c233371

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aa_assets-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 71.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fd6d94c4fc01f02f88255ecbdf50e7f2ffdf79b24ef1142c1c9922deed06f17
MD5 bd387d600447400013dcfc064df61d9c
BLAKE2b-256 da188e6b9a1554c6b9e9aa8d0737532a7a4e0b7198d5cfca3607c3654d31a0e5

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