Skip to main content

Picture of the Day

This project provides a REST API endpoint for delivering a Picture of the Day.

It requires a connection to a Nextcloud instance with Nextcloud Photos being enabled. You can also use Memories for Nextcloud, but you need to have Nextcloud Photos enabled for photo album support (Memories and Photos are sharing their albums).

You can then specify an album from which the photos are fetched. Afterwards, you can assign for each calandar day a specific photo. For days for which there is no photo assigned, a random photo is choosen.

The app remembers which photos have already been delivered and prefers photos for the random assignment which haven't been picked yet. If there are no more new photos, the already delivered photos will be picked again.

Motivation

My personal motivation for this app is to use it for an ESP32-S3-PhotoFrame, which has an e-ink display and therefore has ultra-low energy consumption and can run on a battery for months.

Important

[!CAUTION]
While this application has some form of basic authentication, I still recommend to only run this within a trusted home network without exposing it to the internet.

Install

To install the latest release:
pip install picture-of-the-day

To install from source:
pip install .

Developing & Testing

Install all dependencies:

pip install -U .[dev,tests]

Run tests:

pytest -v

Run

picture-of-the-day run

License

This project is licensed under the terms of the MIT license.

Metadata

Release files for picture-of-the-day 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for picture-of-the-day 0.6.1
File Size Uploaded Provenance
picture_of_the_day-0.6.1.tar.gz 12.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for picture-of-the-day 0.6.1
File Interpreter ABI Platform
picture_of_the_day-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.8 kB

Release files / picture_of_the_day-0.6.1.tar.gz

Download URL picture_of_the_day-0.6.1.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
437b9df47f61493113a9420a5e650aafb58a942633ce0a9bf5586dbd3d30f41e
BLAKE2b-256 checksum
How to use checksums
5b496dd23a00dd271d6e4105ed78707d983e7c9397c1079584c7bc655e6d19d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 25, 2026.

Transparency log

Release files / picture_of_the_day-0.6.1-py3-none-any.whl

Download URL picture_of_the_day-0.6.1-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9908e2371c01c49eb5f34eb3e2195d547894d4f46afe8218562ce7f1a1d1a09f
BLAKE2b-256 checksum
How to use checksums
adb1d58cdb10f2879e80c771aca2d7ff6962f95673272d286385693d42e99103
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 25, 2026.

Transparency log

Security for picture-of-the-day 0.6.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for picture_of_the_day-0.6.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 25, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page