osmose-app

PAM annotation platform

https://github.com/project-osmose/osmose-app

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.6%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

PAM annotation platform

Basic Info
Statistics
  • Stars: 6
  • Watchers: 3
  • Forks: 6
  • Open Issues: 64
  • Releases: 0
Created over 4 years ago · Last pushed 6 months ago
Metadata Files
Readme License Citation

README.md

OsmoseApp

Continuous integration Code style: black

In this repository there are actually 2 projets : APLOSE software and OSmOSE team's website. The backend is shared by the 2 projects but is located in distincts Django apps.

> Read the documentation

APLOSE

APLOSE is a scalable web-based annotation tool for marine bioacoustics. It allows the annotations of audio spectrograms. It is currently used for marine bioacoustics studies but its usage can be extended to all kind of acousitc studies.

APLOSE is composed of a React frontend, located in "frontend" folder, and a Django backend, located in the "backend" folder ("api" app).

OSmOSE team's website

OSmOSE team's website is composed of a React frontend, located in "website" folder, and a Django backend, located in the "backend" folder ("osmosewebsite" app).


Deployment

For Ifremer infrastructure follow the comments in the .gitlab-ci.yml file, otherwise use the docker-compose.yml file (you should create a .env file with the required variables, see possible variables).

Development

This project uses poetry (pip install poetry) for Python dev and npm for Javascript dev.

Setup

Backend:

```bash

Initial setup

poetry install docker run --name devdb -e POSTGRES_PASSWORD=postgres -p 127.0.0.1:5432:5432 -d postgis/postgis docker start devdb poetry run ./manage.py migrate poetry run ./manage.py seed

Run

docker start devdb poetry run ./manage.py runserver ```

Frontend:

```bash

Initial setup

cd frontend npm install

Run

npm run dev ```

Testing

```bash

Run backend & frontend tests

docker start devdb poetry run ./manage.py test cd frontend; npm test

Run backend coverage

coverage run ./manage.py test && coverage report

You can also get an html report in the htmlcov folder

coverage html ```

Cypress testing

We use Cypress for end to end testing. Examples of cypress tests are kept in frontend/cypress/examples, they should be deleted once we have a solid E2E test base.

```bash cd frontend

Run Cypress test runner

./node_modules/.bin/cypress open ```

Before pushing to github

```bash

Be sure not to forget any migrations

poetry run ./manage.py makemigrations

You should run Pylint regularly when coding to get tips and avoid bad patterns

poetry run pylint backend

Also don't forget to use black in order to unify code style

poetry run black backend ```

Tooling & maintenance

To update a package to a specific version do not directly edit the pyproject.toml file but rather use the following command: bash poetry add --group dev "pylint==2.14.5" Here --group dev because this is a dev tool, if it's a library to also be used in production you can drop that option.

If you want to changes pylint rules, the configuration options are in the pyproject.toml file.

Formatting :

If you use VSCode, you can add "python.formatting.provider": "black" to your .vscode/settings.json

Possible .env variable

ENV= # either "development" or "production", used for backend.api.settings STAGING= # "true" if we are in staging, used in backend/start.sh to install dev libraries SECRET_KEY= # see https://docs.djangoproject.com/en/3.2/ref/settings/#secret-key OSMOSE_HOST= # "osmose.ifremer.fr" for production, use what you want for staging and localhost OSMOSE_DB_USER= # database username OSMOSE_DB_PWD= # database password HTTPS_PORTAL_STAGE= # see https://github.com/SteveLTN/https-portal, use "local" to test on your machine OSMOSE_SENTRY_URL= # if you use https://sentry.io (more for staging and production)

Owner

  • Name: OSmOSE
  • Login: Project-OSmOSE
  • Kind: organization
  • Location: France

When Open Science meets the Ocean Sound Explorers !

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Keribin"
  given-names: "Erwan"
- family-names: "Morin"
  given-names: "Élodie"
- family-names: "Vovard"
  given-names: "Romain"
title: "APLOSE: a scalable web-based annotation tool for marine bioacoustics - public repository"
version: 1.6.4
doi: 10.5281/zenodo.10468000
date-released: 2024-01-08
url: "https://github.com/Project-OSmOSE/osmose-app"

GitHub Events

Total
  • Create event: 91
  • Issues event: 33
  • Release event: 18
  • Watch event: 4
  • Delete event: 74
  • Issue comment event: 5
  • Push event: 290
  • Pull request review event: 3
  • Pull request review comment event: 7
  • Pull request event: 127
  • Gollum event: 5
  • Fork event: 1
Last Year
  • Create event: 91
  • Issues event: 33
  • Release event: 18
  • Watch event: 4
  • Delete event: 74
  • Issue comment event: 5
  • Push event: 290
  • Pull request review event: 3
  • Pull request review comment event: 7
  • Pull request event: 127
  • Gollum event: 5
  • Fork event: 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 45
  • Total pull requests: 112
  • Average time to close issues: 2 months
  • Average time to close pull requests: 16 days
  • Total issue authors: 5
  • Total pull request authors: 6
  • Average comments per issue: 0.13
  • Average comments per pull request: 0.08
  • Merged pull requests: 83
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 25
  • Pull requests: 73
  • Average time to close issues: 2 days
  • Average time to close pull requests: 4 days
  • Issue authors: 1
  • Pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 53
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ElodieENSTA (37)
  • mathieudpnt (3)
  • MaelleTtrt (2)
  • flo-bou (2)
  • ixio (1)
Pull Request Authors
  • ElodieENSTA (101)
  • rvovard (5)
  • marc31 (2)
  • ussefhajji (2)
  • PYLRR (1)
  • ixio (1)
Top Labels
Issue Labels
annotator-front (8) enhancement (6) bug (5) osmose-back (3) website-front (2) Linked to OSEkit (1)
Pull Request Labels
bug (27) enhancement (21) annotator-front (10) website-front (5) osmose-back (4) documentation (1) tech (1) Linked to OSEkit (1)

Dependencies

.github/workflows/continuous-integration.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/setup-node v2 composite
  • actions/setup-python v2 composite
  • postgres * docker
.github/workflows/deploy-coverage.yml actions
  • actions/cache v2 composite
  • actions/checkout v2 composite
  • actions/deploy-pages v1 composite
  • actions/setup-python v2 composite
  • actions/upload-pages-artifact v1 composite
  • postgres * docker
docker-compose.yml docker
  • osmose_back-image latest
  • osmose_front-image latest
  • postgres 13.3-alpine
  • steveltn/https-portal 1.19
frontend/package.json npm
  • babel-core ^6.26.3 development
  • babel-eslint ^9.0.0 development
  • babel-plugin-transform-class-properties ^6.24.1 development
  • babel-preset-env ^1.7.0 development
  • babel-preset-flow ^6.23.0 development
  • babel-preset-react ^6.24.1 development
  • babel-register ^6.26.0 development
  • enzyme ^3.3.0 development
  • enzyme-adapter-react-16 ^1.1.1 development
  • eslint-plugin-flowtype ^2.50.0 development
  • eslint-plugin-react ^7.10.0 development
  • flow-bin 0.201.0 development
  • jsdom ^11.11.0 development
  • mocha ^5.2.0 development
  • mocha-eslint ^4.1.0 development
  • nock ^13.0.0 development
  • bootstrap ^5.2.3
  • eslint 5.12.0
  • react ^16.9.0
  • react-bootstrap ^1.6.6
  • react-confirm ^0.1.27
  • react-dom ^16.9.0
  • react-router-dom ^5.0.0
  • react-scripts ^2.0.5
  • superagent ^3.8.3
website/package.json npm
  • @types/leaflet ^1.7.9 development
  • @types/react-router-dom ^5.3.3 development
  • @testing-library/jest-dom ^5.16.4
  • @testing-library/react ^11.2.7
  • @testing-library/user-event ^12.8.3
  • @types/jest ^26.0.24
  • @types/node ^12.20.48
  • @types/react ^17.0.44
  • @types/react-dom ^17.0.15
  • leaflet ^1.7.1
  • postcss ^8.4.12
  • react ^17.0.2
  • react-dom ^17.0.2
  • react-leaflet ^3.2.5
  • react-router-dom ^5.3.0
  • react-scripts ^5.0.1
  • typescript ^4.6.3
  • web-vitals ^1.1.2
poetry.lock pypi
  • astroid 2.11.7 develop
  • atomicwrites 1.4.1 develop
  • black 22.12.0 develop
  • click 8.1.7 develop
  • colorama 0.4.6 develop
  • coverage 6.5.0 develop
  • dill 0.3.7 develop
  • django-debug-toolbar 4.2.0 develop
  • faker 19.6.2 develop
  • isort 5.12.0 develop
  • lazy-object-proxy 1.9.0 develop
  • mccabe 0.7.0 develop
  • more-itertools 10.1.0 develop
  • mypy-extensions 1.0.0 develop
  • packaging 23.1 develop
  • pathspec 0.11.2 develop
  • platformdirs 3.10.0 develop
  • pluggy 0.13.1 develop
  • py 1.11.0 develop
  • pylint 2.14.5 develop
  • pylint-django 2.5.3 develop
  • pylint-plugin-utils 0.8.2 develop
  • pytest 5.4.3 develop
  • python-dateutil 2.8.2 develop
  • six 1.16.0 develop
  • tomli 2.0.1 develop
  • tomlkit 0.12.1 develop
  • wcwidth 0.2.6 develop
  • wrapt 1.15.0 develop
  • asgiref 3.7.2
  • attrs 23.1.0
  • certifi 2023.7.22
  • django 3.2.21
  • djangorestframework 3.14.0
  • djangorestframework-simplejwt 4.8.0
  • drf-spectacular 0.26.5
  • gunicorn 20.1.0
  • inflection 0.5.1
  • jsonschema 4.19.1
  • jsonschema-specifications 2023.7.1
  • psycopg2-binary 2.9.8
  • pyjwt 2.8.0
  • pytz 2023.3.post1
  • pyyaml 6.0.1
  • referencing 0.30.2
  • rpds-py 0.10.3
  • sentry-sdk 1.31.0
  • setuptools 68.2.2
  • sqlparse 0.4.4
  • typing-extensions 4.8.0
  • uritemplate 4.1.1
  • urllib3 2.0.5
pyproject.toml pypi
  • Django ^3.2
  • djangorestframework ^3.12.4
  • djangorestframework-simplejwt ^4.6.0
  • drf-spectacular ^0.26.0
  • gunicorn ^20.1.0
  • psycopg2-binary ^2.8.6
  • python ^3.9
  • sentry-sdk ^1.3.1