Photo Objects
Application for storing photos in S3 compatible object-storage. Key features:
- Automatically scales photos according to different sizes defined in settings.
- Provides simple grouping and access control for the photos with albums.
Developing
Build containers:
docker compose build
Start or update development environment:
docker compose up -d
Print initial admin password (username of the initial administrator account is admin):
docker compose exec api cat /var/photo_objects/initial_admin_password
Make database migrations (requires development environment to be running):
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
Metadata
Release files for photo-objects 0.15.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| photo_objects-0.15.0.tar.gz | 51.0 kB | Without provenance | Details for photo_objects-0.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| photo_objects-0.15.0-py3-none-any.whl | Python 3 | none | any | Details for photo_objects-0.15.0-py3-none-any.whl |
Total release size: 131.6 kB
Release files / photo_objects-0.15.0.tar.gz
| Download URL | photo_objects-0.15.0.tar.gz |
|---|---|
| Size | 51.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8130145b7e9f20b5ac7dffdb13f2af4dfcd9e2ee2e56aa0450f917a43b76ddff
|
|
BLAKE2b-256 checksum How to use checksums |
9cb1f3a3be32cf422847b1ba7029cec73932e8454152a79473e6370ca5502afc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / photo_objects-0.15.0-py3-none-any.whl
| Download URL | photo_objects-0.15.0-py3-none-any.whl |
|---|---|
| Size | 80.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b139b32a13577f65850c00bf05c8ecb56157b2e477f240daffbeb461990e2f3a
|
|
BLAKE2b-256 checksum How to use checksums |
ed05bc2c54c7f42b2d148d46462ddce09e97eb0e1a875d40f36bcb0ffbde7f68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Security for photo-objects 0.15.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.