Skip to content
Snippets Groups Projects
Commit f552c442 authored by Blaß, Michael's avatar Blaß, Michael :speech_balloon:
Browse files

Added SourceMeta dataclass.

parent 40c39429
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
License: BSD-3-Clasuse
Copyright (C) 2020, Michael Blaß, michael.blass@uni-hamburg.de
"""
import datetime
import pathlib
import pickle
from typing import ClassVar, Type, TypeVar, Union
......@@ -19,14 +20,23 @@ from apollon import types
T = TypeVar('T')
@dataclass
class SourceMeta(container.Params):
"""Source file meta data."""
_schema: ClassVar[types.Schema] = None
name: str
hash: str
extension: str
@dataclass
class TrackMeta(container.Params):
"""Track meta data."""
_schema: ClassVar[types.Schema] = None
version: str
time_stamp: str
source_name: str
source_hash: str
extraction_date: datetime.datetime
source: SourceMeta
@dataclass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment