Skip to main content

Application for storing photos in S3 compatible object-storage.

Project description

Photo Objects

CI

Application for storing photos in S3 compatible object-storage.

Developing

Make migrations:

python3 back/manage.py makemigrations --pythonpath="$(pwd)"

Testing

Static analysis

Check and automatically fix formatting with:

pycodestyle --exclude back/api/settings.py,*/migrations/*.py back photo_objects
autopep8 -aaar --in-place --exclude back/api/settings.py,*/migrations/*.py back photo_objects

Run static analysis with:

pylint back/api photo_objects

Integration tests

Run integration tests (in the api directory) with:

python3 runtests.py

Get test coverage with:

coverage run --branch --source photo_objects runtests.py
coverage report -m

End-to-end tests

Run end-to-end tests with Docker Compose:

docker compose -f docker-compose.test.yaml up --exit-code-from test --build

Run end-to-end tests in interactive mode (in the tests directory):

# Install dependencies
npm ci

# Start test target
docker compose up -d

# Configure credentials
export USERNAME=admin
export PASSWORD=$(docker compose exec api cat /var/photo_objects/initial_admin_password)

# Start test UI
npx playwright test --ui

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

photo_objects-0.10.4.tar.gz (38.2 kB view details)

Uploaded Source

Built Distribution

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

photo_objects-0.10.4-py3-none-any.whl (58.2 kB view details)

Uploaded Python 3

File details

Details for the file photo_objects-0.10.4.tar.gz.

File metadata

  • Download URL: photo_objects-0.10.4.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for photo_objects-0.10.4.tar.gz
Algorithm Hash digest
SHA256 22ba1855a42ebd4759eee087bad464fa5ba723ee77f076cb79cb093417f04c41
MD5 65d2da092733f461c63cf09952e3515b
BLAKE2b-256 770e397628b6986668aef077d5396cb31ffa59fb6e83a69dfb1b57d69a147f9f

See more details on using hashes here.

File details

Details for the file photo_objects-0.10.4-py3-none-any.whl.

File metadata

  • Download URL: photo_objects-0.10.4-py3-none-any.whl
  • Upload date:
  • Size: 58.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for photo_objects-0.10.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f74157b33b113853ba3b094ed01009a5e7a82fc50b9287ad00344d6c3887c952
MD5 2ba890bbd34926d688180b51fbdbe5e9
BLAKE2b-256 8f2cd2651adddddf233f508e96fa34d3b38708c19e93defd256e9fe1c4e6a867

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