wastd

Turtle strandings in Western Australian, as reported to the Department of Biodiversity, Conservation and Attractions.
https://github.com/dbca-wa/wastd

Category: Biosphere
Sub Category: Marine Life and Fishery

Keywords

biodiversity conservation-bio marine-species marine-turtles marine-wildlife-incidents strandings

Keywords from Contributors

catalog ckan ckan-next

Last synced: about 16 hours ago
JSON representation

Repository metadata

Western Australian Sea Turtle and Strandings Database

README.md

Western Australian Sea Turtles Database (WASTD)

This project is the Department of Biodiversity, Conservation and Attractions
Sea Turtles Database corporate application.

Project layout / description

  • wastd: the core Django project directory, containing common settings, configuration and templates.
  • observations: the primary data model for the project, defining the Encounter and Observation models and subclasses.
  • users: an extension of the Django contrib.auth.models.User class, customised for this project.
  • wamtram2: auto-generated model classes to provide readonly ORM utility for the legacy WAMTRAM database.

The intent is for this project to replace the WAMTRAM legacy project and to act as the repository for
turtle tagging data. The wamtram application was created to ease access to the legacy database, and
the tagging application was created as an interim step to refactoring the legacy data into the
Encounter/Observation model defined in the observations application. It is expected that wamtram will
be removed after data migration, and that tagging will be removed after the data is refactored.

Installation

Dependencies for this project are managed using uv.
With uv installed, change into the project directory and run:

uv sync

Activate the virtualenv like so:

source .venv/bin/activate

To run Python commands in the activated virtualenv, thereafter run them like so:

python manage.py

Manage new or updated project dependencies with uv also, like so:

uv add newpackage==1.0

Environment variables

This project uses python-dotenv to set environment variables (in a .env file).
The following variables are required for the project to run:

DATABASE_URL="postgis://USER:PASSWORD@HOST:5432/DATABASE_NAME"

Variables below may also need to be defined (context-dependent):

SECRET_KEY=ThisIsASecretKey
DEBUG=True GEOSERVER_URL=https://geoserver.url/service

Running

Use runserver to run a local copy of the application:

python manage.py runserver 0:8080

Run console commands manually:

python manage.py shell_plus

Media uploads

The production system stores media uploads in Azure blob storage.
Credentials for doing so should be defined in the following environment
variables:

AZURE_ACCOUNT_NAME=name
AZURE_ACCOUNT_KEY=key
AZURE_CONTAINER=container_name

To bypass this and use local media storage (for development, etc.) simply set
the LOCAL_MEDIA_STORAGE=True environment variable and create a writable
media directory in the project directory.

Docker image

To build a new Docker image from the Dockerfile:

docker image build -t ghcr.io/dbca-wa/wastd .

Pre-commit hooks

This project includes the following pre-commit hooks:

Pre-commit hooks may have additional system dependencies to run. Optionally
install pre-commit hooks locally like so:

pre-commit install

Reference: https://pre-commit.com/


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 5 days ago

Total Commits: 4,625
Total Committers: 10
Avg Commits per committer: 462.5
Development Distribution Score (DDS): 0.722

Commits in past year: 226
Committers in past year: 5
Avg Commits per committer in past year: 45.2
Development Distribution Score (DDS) in past year: 0.668

Name Email Commits
florianm f****r@d****u 1285
Xinlyu Wang x****e@g****m 1218
Ashley Felton a****y@r****m 1208
Florian Mayer F****r@d****u 634
Evan Hallein e****n@i****m 109
Liz Huangfu l****u@d****u 75
dependabot[bot] 4****] 51
Florian Mayer F****r@d****u 43
LizzzzHF 1****F 1
Florian Mayer F****r@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 101
Total pull requests: 513
Average time to close issues: almost 3 years
Average time to close pull requests: 27 days
Total issue authors: 4
Total pull request authors: 6
Average comments per issue: 0.44
Average comments per pull request: 0.69
Merged pull request: 189
Bot issues: 2
Bot pull requests: 298

Past year issues: 0
Past year pull requests: 144
Past year average time to close issues: N/A
Past year average time to close pull requests: 11 days
Past year issue authors: 0
Past year pull request authors: 4
Past year average comments per issue: 0
Past year average comments per pull request: 0.58
Past year merged pull request: 62
Past year bot issues: 0
Past year bot pull requests: 94

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/dbca-wa/wastd

Top Issue Authors

  • florianm (94)
  • RyanDou (4)
  • dependabot[bot] (2)
  • ehallein (1)

Top Pull Request Authors

  • dependabot[bot] (298)
  • ropable (72)
  • RickWangPerth (56)
  • ehallein (48)
  • LizzzzHFFF (34)
  • rockychen-dpaw (5)

Top Issue Labels

  • bug (15)
  • UX (12)
  • docs (12)
  • data (12)
  • reporting (11)
  • model (6)
  • forms (5)
  • ready (5)
  • in progress (3)
  • support (2)
  • python (2)
  • dependencies (2)
  • api (2)
  • filters (1)
  • test (1)

Top Pull Request Labels

  • dependencies (297)
  • python (183)
  • github_actions (39)
  • python:uv (22)

Package metadata

proxy.golang.org: github.com/dbca-wa/wastd

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/dbca-wa/wastd#section-documentation
  • Licenses: mit
  • Latest release: v2.3.3+incompatible (published about 2 months ago)
  • Last Synced: 2026-08-30T01:08:29.330Z (1 day ago)
  • Versions: 40
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 5.401%
    • Average: 5.583%
    • Dependent repos count: 5.764%

Dependencies

Dockerfile docker
  • builder_base latest build
  • python 3.10.4-buster build
  • python_libs_wastd latest build
.github/workflows/run-tests.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • snok/install-poetry v1 composite
  • postgis/postgis 13-3.1-alpine docker
pyproject.toml pypi
  • dbca-utils 1.1.6
  • dj-database-url 1.0.0
  • django 3.2.21
  • django-ajax-selects 2.2.0
  • django-bootstrap-pagination 1.7.1
  • django-bootstrap4 22.3
  • django-crispy-forms 1.14.0
  • django-easy-select2 1.5.8
  • django-export-download 0.2.3
  • django-extensions 3.2.1
  • django-filter 22.1
  • django-fsm 2.8.1
  • django-fsm-admin 1.2.5
  • django-fsm-log 3.1.0
  • django-geojson 4.0.0
  • django-grappelli 3.0.4
  • django-import-export 3.1.0
  • django-leaflet 0.28.3
  • django-phonenumber-field 7.0.1
  • django-polymorphic 3.1.0
  • django-reversion 5.0.4
  • django-select2 8.0.0
  • django-storages 1.13.2
  • django-tables2 2.4.1
  • gunicorn 20.1.0
  • mssql-django 1.2
  • pandas 1.5.2
  • phonenumbers 8.13.3
  • pillow 9.5.0
  • psycopg2 2.9.6
  • python ^3.10
  • python-dateutil 2.8.2
  • python-dotenv 0.21.0
  • python-slugify 8.0.1
  • webtemplate-dbca 1.5.1
  • whitenoise 6.3.0
  • xmltodict 0.13.0
uv.lock pypi
  • 111 dependencies
.github/workflows/multi-build.yml actions
  • actions/checkout 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 composite
  • actions/download-artifact 3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c composite
  • actions/upload-artifact 043fb46d1a93c77aae656e7c1c64a875d1fc6a0a composite
  • aquasecurity/trivy-action ed142fd0673e97e23eac54620cfb913e5ce36c25 composite
  • docker/build-push-action 53b7df96c91f9c12dcc8a07bcb9ccacbed38856a composite
  • docker/login-action af1e73f918a031802d376d3c8bbc3fe56130a9b0 composite
  • docker/metadata-action dc802804100637a589fabce1cb79ff13a1411302 composite
  • docker/setup-buildx-action bb05f3f5519dd87d3ba754cc423b652a5edd6d2c composite
  • github/codeql-action/upload-sarif v4 composite

Score: -Infinity