evo-files 0.2.0__py3-none-any.whl → 0.2.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.
- evo/files/io.py +11 -1
- {evo_files-0.2.0.dist-info → evo_files-0.2.2.dist-info}/METADATA +10 -4
- {evo_files-0.2.0.dist-info → evo_files-0.2.2.dist-info}/RECORD +5 -5
- {evo_files-0.2.0.dist-info → evo_files-0.2.2.dist-info}/WHEEL +0 -0
- {evo_files-0.2.0.dist-info → evo_files-0.2.2.dist-info}/licenses/LICENSE.md +0 -0
evo/files/io.py
CHANGED
|
@@ -109,9 +109,19 @@ class FileAPIUpload(Upload, _FileIOMixin):
|
|
|
109
109
|
self._id = file_id
|
|
110
110
|
self._version_id = version_id
|
|
111
111
|
|
|
112
|
+
@property
|
|
113
|
+
def file_id(self) -> UUID:
|
|
114
|
+
"""The ID of the file that is being uploaded."""
|
|
115
|
+
return self._id
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def version_id(self) -> str:
|
|
119
|
+
"""The ID of the version that will be created after the upload completes."""
|
|
120
|
+
return self._version_id
|
|
121
|
+
|
|
112
122
|
@property
|
|
113
123
|
def label(self) -> str:
|
|
114
|
-
"""The file and version ID
|
|
124
|
+
"""The file and version ID of the file that is being uploaded."""
|
|
115
125
|
return f"{self._id}?version_id={self._version_id}"
|
|
116
126
|
|
|
117
127
|
async def get_upload_url(self) -> str:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: evo-files
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Python SDK for using the Seequent Evo File API
|
|
5
5
|
Project-URL: Source, https://github.com/SeequentEvo/evo-python-sdk
|
|
6
6
|
Project-URL: Tracker, https://github.com/SeequentEvo/evo-python-sdk/issues
|
|
@@ -20,7 +20,7 @@ Description-Content-Type: text/markdown
|
|
|
20
20
|
<p align="center"><a href="https://seequent.com" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://developer.seequent.com/img/seequent-logo-dark.svg" alt="Seequent logo" width="400" /><img src="https://developer.seequent.com/img/seequent-logo.svg" alt="Seequent logo" width="400" /></picture></a></p>
|
|
21
21
|
<p align="center">
|
|
22
22
|
<a href="https://pypi.org/project/evo-files/"><img alt="PyPI - Version" src="https://img.shields.io/pypi/v/evo-files" /></a>
|
|
23
|
-
<a href="https://github.com/SeequentEvo/evo-python-sdk/actions/workflows/
|
|
23
|
+
<a href="https://github.com/SeequentEvo/evo-python-sdk/actions/workflows/run-all-tests.yaml"><img src="https://github.com/SeequentEvo/evo-python-sdk/actions/workflows/run-all-tests.yaml/badge.svg" alt="" /></a>
|
|
24
24
|
</p>
|
|
25
25
|
<p align="center">
|
|
26
26
|
<a href="https://developer.seequent.com/" target="_blank">Seequent Developer Portal</a>
|
|
@@ -34,9 +34,14 @@ The File API provides the ability to manage files of any type or size, associate
|
|
|
34
34
|
Enable your product with Evo connected workflows by integrating with the Seequent Evo File API. Most file
|
|
35
35
|
formats and sizes are accepted.
|
|
36
36
|
|
|
37
|
+
## Pre-requisites
|
|
38
|
+
|
|
39
|
+
* Python ^3.10
|
|
40
|
+
* An [application registered in Bentley](https://developer.bentley.com/register/?product=seequent-evo)
|
|
41
|
+
|
|
37
42
|
## Installation
|
|
38
43
|
|
|
39
|
-
```
|
|
44
|
+
```shell
|
|
40
45
|
pip install evo-files
|
|
41
46
|
```
|
|
42
47
|
|
|
@@ -56,11 +61,12 @@ files = await file_client.list_files()
|
|
|
56
61
|
|
|
57
62
|
For some interactive Jupyter notebook examples, see the [examples folder](https://github.com/SeequentEvo/evo-python-sdk/tree/main/packages/evo-files/docs/examples).
|
|
58
63
|
|
|
59
|
-
##
|
|
64
|
+
## Contributing
|
|
60
65
|
|
|
61
66
|
For instructions on contributing to the development of this library, please refer to the [evo-python-sdk documentation](https://github.com/seequentevo/evo-python-sdk).
|
|
62
67
|
|
|
63
68
|
## License
|
|
69
|
+
|
|
64
70
|
The Python SDK for Evo is open source and licensed under the [Apache 2.0 license.](https://github.com/SeequentEvo/evo-python-sdk/tree/main/packages/evo-files/./LICENSE.md).
|
|
65
71
|
|
|
66
72
|
Copyright © 2025 Bentley Systems, Incorporated.
|
|
@@ -2,13 +2,13 @@ evo/files/__init__.py,sha256=jX2_a4BNg92QZFNEXaBpvpcSgbqRyOXrWx1JIkLUZqk,887
|
|
|
2
2
|
evo/files/_model_config.py,sha256=612yrPQyY-vquEboZdmSWkt8nT2ttbfBy476FyruV30,827
|
|
3
3
|
evo/files/client.py,sha256=-zfbeym3l9_3t-OjenWj-1k5ZVpLtpsNdmTiMi3PUVU,12847
|
|
4
4
|
evo/files/data.py,sha256=J9hieUY6LAeYhmIpRorMNcgjsYuSsO5R7_s1qnDAIlM,2380
|
|
5
|
-
evo/files/io.py,sha256=
|
|
5
|
+
evo/files/io.py,sha256=wlHEXusTOhSRLCU1FWUD4q0p7xiav6VPVEWNP4I40xk,6689
|
|
6
6
|
evo/files/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
evo/files/endpoints/__init__.py,sha256=UE77QavwbhokEtz8XmDl2p-z5fpsghraTgboDscq76A,1441
|
|
8
8
|
evo/files/endpoints/models.py,sha256=rz7wqkhfen9_wqQqj0mEUbKKnkA0AYniEe9QnoigdPY,4640
|
|
9
9
|
evo/files/endpoints/api/__init__.py,sha256=dHngHmRPwy-Kixoz7BP4ur4qzV4z9T2e8ccTqBtpuio,650
|
|
10
10
|
evo/files/endpoints/api/file_v2_api.py,sha256=mP3EiKbgmpw_Z5bzWmu-Fi3JuP9CsUpgN-9isywry3I,34127
|
|
11
|
-
evo_files-0.2.
|
|
12
|
-
evo_files-0.2.
|
|
13
|
-
evo_files-0.2.
|
|
14
|
-
evo_files-0.2.
|
|
11
|
+
evo_files-0.2.2.dist-info/METADATA,sha256=KWkQ7dT000cXImJ5L69chwnbD8gxRDhMp5suWHCdl_M,3703
|
|
12
|
+
evo_files-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
13
|
+
evo_files-0.2.2.dist-info/licenses/LICENSE.md,sha256=HcFeRdOI-VP5WPEymQerlwLvEj2z_1Yh66RkN-wN7Oc,10778
|
|
14
|
+
evo_files-0.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|