-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
32 lines (23 loc) · 723 Bytes
/
Copy pathconfig.py
File metadata and controls
32 lines (23 loc) · 723 Bytes
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
# -*- coding: utf-8 -*-
#
# Copyright (C) 2019 CERN.
#
# Zenodo-Uploader is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
import os
ACCESS_TOKEN = 'CHANGEME'
"""Zenodo API access token."""
ENDPOINT = 'https://sandbox.zenodo.org/api/deposit/depositions'
"""Zenodo API endpoint"""
FILES_PATH_TEMPLATES = [
('testupload2/img-arch/{barcode}/barcode.jpg', '{barcode}.jpg'),
]
"""List of templates for filename generation.
Each entry in the list has too look like this:
('<path template>', '<name template>'),
You can use the following variables in the templates:
- barcode
- name
- family
- basename (only in name template)
"""