26 lines
914 B
Python
26 lines
914 B
Python
import datetime
|
|
import pathlib
|
|
from dataclasses import dataclass
|
|
|
|
ASSUMED_PREHISTORICAL_DATETIME = datetime.datetime.fromtimestamp(0)
|
|
DESTINATION_COLUMN_NAME = "documents"
|
|
DEFAULT_BATCH_SIZE = 100
|
|
COSMOS_DB_TIMESTAMP_FIELD_KEY = "_ts"
|
|
|
|
|
|
@dataclass
|
|
class PATHS:
|
|
logging_file: pathlib.Path = pathlib.Path("anaxi.log")
|
|
# Expand user is important. It will replace the user and give you the full
|
|
# path. Stuff breaks without it.
|
|
config_home_path: pathlib.Path = pathlib.Path("~/.anaxi/").expanduser()
|
|
cosmos_db_config_file_path: pathlib.Path = config_home_path / pathlib.Path(
|
|
"cosmos-db.yml"
|
|
)
|
|
postgres_config_file_path: pathlib.Path = config_home_path / pathlib.Path(
|
|
"postgres.yml"
|
|
)
|
|
streams_config_file_path: pathlib.Path = config_home_path / pathlib.Path(
|
|
"streams.yml"
|
|
)
|
|
checkpoints_folder_path: pathlib.Path = config_home_path / "checkpoints/"
|