enciva 0.1.2__py3-none-any.whl

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.
enciva/__init__.py ADDED
@@ -0,0 +1,56 @@
1
+ """Official Enciva Python client.
2
+
3
+ The CLI (`enciva`) is a thin wrapper around :class:`Enciva`. Use the same
4
+ client object from Python:
5
+
6
+ from enciva import Enciva
7
+
8
+ client = Enciva(url="https://enciva.example.com", token="gjp_...")
9
+ ws = client.workspaces.upload("roads.gpkg")
10
+ jobs = client.jobs.list()
11
+ """
12
+
13
+ from enciva.client import Enciva
14
+ from enciva.errors import (
15
+ AuthenticationError,
16
+ AuthorizationError,
17
+ ConfigError,
18
+ EncivaError,
19
+ NetworkError,
20
+ NotFoundError,
21
+ ServerError,
22
+ ValidationError,
23
+ WaitTimeoutError,
24
+ mask_token,
25
+ )
26
+ from enciva.models import (
27
+ PipelineStages,
28
+ job_pipeline,
29
+ job_write_body,
30
+ pipeline_stages,
31
+ stage_included,
32
+ )
33
+ from enciva.resources.workspaces import Workspace
34
+
35
+ __version__ = "0.1.2"
36
+
37
+ __all__ = [
38
+ "Enciva",
39
+ "Workspace",
40
+ "PipelineStages",
41
+ "job_pipeline",
42
+ "job_write_body",
43
+ "pipeline_stages",
44
+ "stage_included",
45
+ "EncivaError",
46
+ "AuthenticationError",
47
+ "AuthorizationError",
48
+ "ConfigError",
49
+ "NetworkError",
50
+ "NotFoundError",
51
+ "ServerError",
52
+ "ValidationError",
53
+ "WaitTimeoutError",
54
+ "mask_token",
55
+ "__version__",
56
+ ]
enciva/__main__.py ADDED
@@ -0,0 +1,4 @@
1
+ from enciva.cli import main
2
+
3
+ if __name__ == "__main__":
4
+ main()