You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An SDK conforming to the Spectra S3 [specification](https://developer.spectralogic.com/doc/ds3api/1.2/wwhelp/wwhimpl/js/html/wwhelp.htm) for Python 3.11
4
+
An SDK conforming to the Spectra DS3 API [specification](https://developer.spectralogic.com/doc/ds3api/5.4/DS3%20API%20Reference.htm) for Python 3.6+
5
5
6
6
## Contact Us
7
7
Join us at our [Google Groups](https://groups.google.com/d/forum/spectralogicds3-sdks) forum to ask questions, or see frequently asked questions.
8
8
9
9
## Installing
10
-
To install the ds3_python3_sdk, either clone the latest code, or download a release bundle from [Releases](http://github.com/SpectraLogic/ds3_python3_sdk/releases). Once the code has been download, cd into the bundle, and install it with `sudo python3 setup.py install`
10
+
To install the Ds3 Python3 SDK, either clone the latest code, or download a release bundle from [Releases](http://github.com/SpectraLogic/ds3_python3_sdk/releases). Once the code has been download, cd into the bundle.
11
+
Use pip with a virtual environment to build and install the package from the project root (where pyproject.toml is located).
11
12
12
-
Once `setup.py` completes the ds3_python3_sdk should be installed and available to be imported into python scripts.
- The distribution name is ds3-sdk, but you import it as ds3 in Python code.
13
53
14
54
## Documentation
15
-
The documentation for the SDK can be found at [http://spectralogic.github.io/ds3_python3_sdk/sphinx/v3.4.1/](http://spectralogic.github.io/ds3_python3_sdk/sphinx/v3.4.1/)
55
+
The documentation for the SDK can be found at [http://spectralogic.github.io/ds3_python3_sdk](http://spectralogic.github.io/ds3_python3_sdk)
16
56
17
57
## SDK
18
-
The SDK provides an interface for a user to add Spectra S3 functionality to their existing or new python application. In order to take advantage of the SDK you need to import the `ds3` python package and module. The following is an example that creates a Spectra S3 client from environment variables, creates a bucket, and lists all the buckets that are visible to the user.
58
+
The SDK provides an interface for a user to add Spectra DS3 functionality to their existing or new python application. In order to take advantage of the SDK you need to import the `ds3` python package and module. The following is an example that creates a Spectra DS3 client from environment variables, creates a bucket, and lists all the buckets that are visible to the user.
19
59
20
60
```python
21
61
@@ -71,10 +111,10 @@ to put and get a specific file, but the principle can be expanded to transferrin
71
111
-[An example of getting ONE object in a bucket](samples/getting_one_file_in_directory.py)
72
112
73
113
### Moving data the old way
74
-
To put data to a Spectra S3 appliance you have to do it inside the context of what is called a Bulk Job. Bulk Jobs allow the Spectra S3 appliance to plan how data should land to cache, and subsequently get written/read to/from tape. The basic flow of every job is:
114
+
To put data to a Spectra DS3 appliance, you have to do it inside the context of what is called a Bulk Job. Bulk Jobs allow the Spectra DS3 appliance to plan how data should land to cache, and subsequently get written/read to/from tape. The basic flow of every job is:
75
115
76
-
* Generate the list of objects that will either be sent to or retrieved from Spectra S3
77
-
* Send a bulk put/get to Spectra S3 to plan the job
116
+
* Generate the list of objects that will either be sent to or retrieved from Spectra DS3
117
+
* Send a bulk put/get to Spectra DS3 to plan the job
78
118
* The job will be split into multiple chunks. An application must then get the available list of chunks that can be processed
79
119
* For each chunk that can be processed, sent the object (this step can be done in parallel)
80
120
* Repeat getting the list of available chunks until all chunks have been processed
@@ -90,4 +130,4 @@ Update the version of the SDK before creating a new release. The format is `<maj
90
130
`<major>.<minor>` numbers must match the version of BP. The `<patch>` is an incrementing number that increments with
91
131
each SDK release for a given major/minor release.
92
132
93
-
The release number is specified in `setup.py`.
133
+
The release number is specified in `pyproject.toml`.
0 commit comments