Skip to content

Session Id

app.domain.session.session_id

View source code

Session identifier — unique key for a video processing session.

See Also
  • Session — runtime container identified by a session ID
  • SessionManager — creates and manages session lifecycles

Layer: Domain. Context: Defines application concepts independently of UI and infrastructure implementations.

SessionId dataclass

Unique identifier for a video processing session.

ATTRIBUTE DESCRIPTION
path

Absolute file path to the video file.

TYPE: str

Note

Immutable and hashable so it can safely serve as a stable dictionary key or set member. Equality is value-based on the stored path, making it suitable for identifying sessions in function parameters, UI display, and internal lookups without risk of accidental mutation.

Example

s_id = SessionId(path="/home/user/video.mp4") print(s_id.basename) # "video.mp4" print(s_id.basename_without_extension) # "video"

Layer: Domain. Context: Represents application concepts without UI or infrastructure dependencies.

basename property

Return the video filename without its parent directories.

basename_without_extension property

Return the video filename without its extension.

path: str instance-attribute

__init__(path: str) -> None