-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ini
More file actions
53 lines (48 loc) · 1.55 KB
/
Copy pathconfig.ini
File metadata and controls
53 lines (48 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Dataverse Metadata Bulk Update Configuration
# Dataverse Server Configuration
[dataverse]
# URL of your Dataverse instance
server_url = https://your-dataverse-instance.org
# API token for authentication (set via environment variable DATAVERSE_API_TOKEN for security)
api_token = ${DATAVERSE_API_TOKEN}
# Paths Configuration
[paths]
# Directory containing JSON template files
json_input_dir = ./data/json_templates
# Output directory for JSON files generated from CSV
json_output_dir = ./data/json_output
# CSV file with metadata updates
csv_file = ./data/metadata.csv
# Backup directory for original files
backup_dir = ./backups
# Workflow Configuration
[workflow]
# Enable dry-run mode by default (show changes without applying them)
dry_run = true
# Create backup of original CSV before updating
create_backup = true
# Log file for tracking all operations
log_file = ./logs/update_log.txt
# CSV Column Configuration
[csv_columns]
# Column names in the CSV file
doi_column = DOI
dataset_name_column = dataset_name
file_id_column = file_id
file_label_column = file_label
file_description_column = file_description
file_path_column = file_path
file_size_column = file_size
file_type_column = file_type
original_description_column = original_description
new_description_column = new_description
new_file_path_column = new_file_path
status_column = status
# Logging Configuration
[logging]
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
level = INFO
# Format for log messages
format = %(asctime)s - %(name)s - %(levelname)s - %(message)s
# Append to existing log file
append = true