Skip to main content

AllianceAuth Routing and Pathfinding

Project description

Routing for Alliance Auth

Routing is a pathfinding plugin for Alliance Auth.

Features

  • def route_path(source: int, destination: int, mode="p_shortest", algorithm="astar", edges: list = [], static_cache: bool = False) -> List[int]:

  • def route_length(source: int, destination: int, mode="p_shortest", algorithm="astar", edges: List = [], static_cache: bool = False ) -> int:

  • def systems_range(source: int, range: int, mode="p_shortest", edges: list = [], static_cache: bool = False) -> List:

  • A pregenerated optional Graph dict, to reduce DB load and processing for mass use, cannot guarantee accuracy without shipping new versions.

Implementations

Planned

AA Drifters AA Incursions

Installation

Routing is an App for Alliance Auth, Please make sure you have this installed. Routing is not a standalone Django Application

Step 1 - Install app

pip install aa-routing

Step 2 - Configure Auth settings

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

  • Add 'routing' to INSTALLED_APPS
  • Add below lines to your settings file:

Step 3 - Maintain Alliance Auth

  • Run migrations python manage.py migrate
  • Gather your staticfiles python manage.py collectstatic
  • Restart your project supervisorctl restart myauth:

Step 4 - Pull Required Data

python manage.py shell
from routing.tasks import import_trig_data

import_trig_data()

Settings

Name Description Default

Development

Regenerating the static procompute

python manage.py routing_precompute drag from routing_output.txt to static_data.py

Contributing

Make sure you have signed the License Agreement by logging in at https://developers.eveonline.com before submitting any pull requests. All bug fixes or features must not include extra superfluous formatting changes.

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_routing-1.0.0.tar.gz (77.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aa_routing-1.0.0-py3-none-any.whl (87.7 kB view details)

Uploaded Python 3

File details

Details for the file aa_routing-1.0.0.tar.gz.

File metadata

  • Download URL: aa_routing-1.0.0.tar.gz
  • Upload date:
  • Size: 77.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for aa_routing-1.0.0.tar.gz
Algorithm Hash digest
SHA256 25c9b7cc8feb65e6bcb56b652c549b909b626efa6d6b96bb2e06d63faced9147
MD5 bfe4e5f941f9621a20bcb7a8db69052e
BLAKE2b-256 8b5bee967464802c90a0da994f8f71ffe94cd61b93434049ed4dbff314f0dd85

See more details on using hashes here.

File details

Details for the file aa_routing-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: aa_routing-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 87.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for aa_routing-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1608573d349f863679dae6fddf37a816d1d5bf220494d89cd145c54e604834a3
MD5 67b5f3fda06be78537ba16e17f749d50
BLAKE2b-256 eaeeb30111c55e7100497ebcd33d68eb905eefb2a51bd7889833413147c11276

See more details on using hashes here.

Supported by

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