Catalog PyPI
PACKAGE EXPLORERView in registry

aa-assets

PyPI

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

Versions collected1
Direct dependencies6From release 0.1.2
Last observed20 Oct, 16:47 UTC

README

Version 0.1.2 documentation

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

IDDescription
basic_accessCan access the Assets moduleAll Members with the Permission can access the Assets.
add_personal_ownerCan add personal owners
add_corporate_ownerCan add corporate owners
manage_requestsCan manage requestsGet 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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.223 Sept 20246

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
geuthur/aa-assets

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:47 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b03d1ca9d724c4b01b34326cc20bfef5b2646794b9f83fa806338cdf132d15ff