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 19 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: 17 days ago

Total Commits: 4,523
Total Committers: 8
Avg Commits per committer: 565.375
Development Distribution Score (DDS): 0.716

Commits in past year: 158
Committers in past year: 3
Avg Commits per committer in past year: 52.667
Development Distribution Score (DDS) in past year: 0.557

Name Email Commits
florianm f****r@d****u 1285
Xinlyu Wang x****e@g****m 1212
Ashley Felton a****y@r****m 1198
Florian Mayer F****r@d****u 634
Evan Hallein e****n@i****m 109
Florian Mayer F****r@d****u 43
dependabot[bot] 4****] 41
Florian Mayer F****r@g****m 1

Committer domains:


Issue and Pull Request metadata

Last synced: 19 days ago

Total issues: 101
Total pull requests: 442
Average time to close issues: almost 3 years
Average time to close pull requests: 30 days
Total issue authors: 4
Total pull request authors: 5
Average comments per issue: 0.44
Average comments per pull request: 0.71
Merged pull request: 149
Bot issues: 2
Bot pull requests: 263

Past year issues: 0
Past year pull requests: 94
Past year average time to close issues: N/A
Past year average time to close pull requests: 12 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.65
Past year merged pull request: 23
Past year bot issues: 0
Past year bot pull requests: 76

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] (263)
  • ropable (70)
  • RickWangPerth (56)
  • ehallein (48)
  • 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 (262)
  • python (183)
  • github_actions (26)

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: v0.61.0 (published almost 4 years ago)
  • Last Synced: 2026-06-20T03:00:50.981Z (17 days ago)
  • Versions: 39
  • 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
poetry.lock pypi
  • 165 dependencies
.github/workflows/docs_pages.yml actions
  • JamesIves/github-pages-deploy-action v4 composite
  • actions/cache v2 composite
  • actions/checkout v3 composite
  • actions/setup-python v2 composite
  • snok/install-poetry v1 composite
.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
.github/workflows/multi-build.yaml actions
  • actions/checkout v6 composite
  • actions/download-artifact v7 composite
  • actions/upload-artifact v6 composite
  • aquasecurity/trivy-action 0.33.1 composite
  • docker/build-push-action v6 composite
  • docker/login-action v3 composite
  • docker/metadata-action v5 composite
  • docker/setup-buildx-action v3 composite
  • github/codeql-action/upload-sarif v4 composite

Score: -Infinity