datakit-data 0.6.3__tar.gz → 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {datakit_data-0.6.3 → datakit_data-0.7.0}/PKG-INFO +2 -2
- {datakit_data-0.6.3 → datakit_data-0.7.0}/datakit_data/__init__.py +1 -1
- {datakit_data-0.6.3 → datakit_data-0.7.0}/datakit_data/project_mixin.py +14 -0
- {datakit_data-0.6.3 → datakit_data-0.7.0}/pyproject.toml +2 -2
- {datakit_data-0.6.3 → datakit_data-0.7.0}/datakit_data/commands/__init__.py +0 -0
- {datakit_data-0.6.3 → datakit_data-0.7.0}/datakit_data/commands/init.py +0 -0
- {datakit_data-0.6.3 → datakit_data-0.7.0}/datakit_data/commands/pull.py +0 -0
- {datakit_data-0.6.3 → datakit_data-0.7.0}/datakit_data/commands/push.py +0 -0
- {datakit_data-0.6.3 → datakit_data-0.7.0}/datakit_data/commands/status.py +0 -0
- {datakit_data-0.6.3 → datakit_data-0.7.0}/datakit_data/extra_flags.py +0 -0
- {datakit_data-0.6.3 → datakit_data-0.7.0}/datakit_data/s3.py +0 -0
- {datakit_data-0.6.3 → datakit_data-0.7.0}/datakit_data/sync_markers.py +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: datakit-data
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: A datakit plugin to manage data assets on AWS S3.
|
|
5
5
|
Author: Larry Fenn
|
|
6
6
|
Author-email: Larry Fenn <lfenn@ap.org>
|
|
7
7
|
License: ISC
|
|
8
8
|
Requires-Dist: boto3
|
|
9
9
|
Requires-Dist: cliff
|
|
10
|
-
Requires-Dist: datakit-core>=0.
|
|
10
|
+
Requires-Dist: datakit-core>=0.5.0
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
12
|
Project-URL: Homepage, https://github.com/associatedpress/datakit-data
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import os
|
|
2
2
|
|
|
3
|
+
from datakit import ConfigField
|
|
3
4
|
from datakit.utils import read_json
|
|
4
5
|
|
|
5
6
|
|
|
@@ -7,6 +8,19 @@ class ProjectMixin:
|
|
|
7
8
|
|
|
8
9
|
plugin_slug = 'datakit-data'
|
|
9
10
|
|
|
11
|
+
config_spec = [
|
|
12
|
+
ConfigField('s3_bucket', required=True,
|
|
13
|
+
help='S3 bucket name where project data is archived'),
|
|
14
|
+
ConfigField('aws_user_profile', default='default',
|
|
15
|
+
help='AWS credentials profile to use'),
|
|
16
|
+
ConfigField('sync_status_location', default='.sync_status/',
|
|
17
|
+
help='S3 key prefix where sync status is recorded'),
|
|
18
|
+
ConfigField('s3_path_prefix',
|
|
19
|
+
help='Optional prefix prepended to the project S3 path'),
|
|
20
|
+
ConfigField('s3_path_suffix',
|
|
21
|
+
help='Optional suffix appended to the project S3 path'),
|
|
22
|
+
]
|
|
23
|
+
|
|
10
24
|
@property
|
|
11
25
|
def default_configs(self):
|
|
12
26
|
return {
|
|
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "datakit-data"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.7.0"
|
|
8
8
|
description = "A datakit plugin to manage data assets on AWS S3."
|
|
9
9
|
authors = [
|
|
10
10
|
{name = "Larry Fenn", email = "lfenn@ap.org"},
|
|
@@ -14,7 +14,7 @@ requires-python = ">=3.10"
|
|
|
14
14
|
dependencies = [
|
|
15
15
|
"boto3",
|
|
16
16
|
"cliff",
|
|
17
|
-
"datakit-core>=0.
|
|
17
|
+
"datakit-core>=0.5.0",
|
|
18
18
|
]
|
|
19
19
|
|
|
20
20
|
[project.urls]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|