Catalog PyPI
Back to packageRELEASE DETAILS

0.1.2

PyPI

aa-assets

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

Published23 Sept 2024
Direct dependencies6
Transitive dependenciesNot calculated

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.

Declared dependencies 6

Native requirements
6 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
allianceauth-app-utils
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
allianceauth-app-utils>=1.19runtime
allianceauth
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
allianceauth>=4runtime
django-eveuniverse
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
django-eveuniverse>=1.3runtime
django-ninja
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
django-ninjaruntime
coverage
Environment
{
  "extras": "",
  "marker": "extra == \"tests-allianceauth-latest\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
coverage; extra == "tests-allianceauth-latest"runtime
django-webtest
Environment
{
  "extras": "",
  "marker": "extra == \"tests-allianceauth-latest\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
django-webtest; extra == "tests-allianceauth-latest"runtime

Distribution files

2 collected
aa_assets-0.1.2-py3-none-any.whl

bdist_wheel · 68.72 KB · Python py3

Source file
aa_assets-0.1.2.tar.gz

sdist · 57.04 KB · Python source

Source file

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_version:b2083419d15921dfb1e574763c766dfd327d7409b4743ce57db5f7757ea3dcfe

Other collected versions

View all collected versions →