oceanprotocol-job-details 0.1.0__py3-none-any.whl → 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.
@@ -1,9 +1,8 @@
1
+ import json
1
2
  from dataclasses import InitVar, dataclass, field
2
3
  from pathlib import Path
3
4
  from typing import Iterator, Sequence, final
4
5
 
5
- import json
6
-
7
6
  from oceanprotocol_job_details.config import config
8
7
 
9
8
 
@@ -24,7 +23,14 @@ class DIDPaths:
24
23
 
25
24
  @dataclass(frozen=True)
26
25
  class Files:
27
- files: Sequence[DIDPaths]
26
+ _files: Sequence[DIDPaths]
27
+
28
+ @property
29
+ def files(self) -> Sequence[DIDPaths]:
30
+ return self._files
31
+
32
+ def __getitem__(self, index: int) -> DIDPaths:
33
+ return self.files[index]
28
34
 
29
35
  def __iter__(self) -> Iterator[DIDPaths]:
30
36
  return iter(self.files)
@@ -117,14 +117,6 @@ class DataToken:
117
117
  serviceId: str
118
118
 
119
119
 
120
- @dataclass_json
121
- @dataclass
122
- class SimpleDataToken:
123
- address: str
124
- name: str
125
- symbol: str
126
-
127
-
128
120
  @dataclass_json
129
121
  @dataclass
130
122
  class Price:
@@ -145,18 +137,6 @@ class Purgatory:
145
137
  state: bool
146
138
 
147
139
 
148
- @dataclass_json
149
- @dataclass
150
- class AccessDetails:
151
- templateId: int
152
- publisherMarketOrderFee: str
153
- type: str
154
- addressOrId: str
155
- price: str
156
- isPurchasable: bool
157
- datatoken: SimpleDataToken
158
-
159
-
160
140
  @dataclass_json
161
141
  @dataclass
162
142
  class DDO:
@@ -173,7 +153,6 @@ class DDO:
173
153
  datatokens: list[DataToken]
174
154
  stats: Stats
175
155
  purgatory: Purgatory
176
- accessDetails: AccessDetails
177
156
 
178
157
 
179
158
  @final
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: oceanprotocol-job-details
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A Python package to get details from OceanProtocol jobs
5
5
  Project-URL: Homepage, https://github.com/AgrospAI/oceanprotocol-job-details
6
6
  Project-URL: Issues, https://github.com/AgrospAI/oceanprotocol-job-details/issues
@@ -1,15 +1,15 @@
1
1
  oceanprotocol_job_details/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  oceanprotocol_job_details/config.py,sha256=lE9H8rRSF5RCJtMHMTAYf8CUYMyf9GPq0kiB2cT8-gE,1429
3
3
  oceanprotocol_job_details/job_details.py,sha256=98Uvx3jes1f75onYxT-65EOOOwcxdw32slAa3n1MqUc,1477
4
- oceanprotocol_job_details/ocean.py,sha256=W57jyqrcnILHBOZM3BGGm79kdhM4gWDWuqxr82xK6NI,3867
4
+ oceanprotocol_job_details/ocean.py,sha256=zSy6DnMxUH8_geH_cZc6DEXQ0d_m_-J0120AvFPVPdA,3527
5
5
  oceanprotocol_job_details/utils.py,sha256=btgys1g4AKSADsde_JRofPVmI0VbR_jf85DIYhuMhgs,940
6
6
  oceanprotocol_job_details/loaders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  oceanprotocol_job_details/loaders/loader.py,sha256=HIzsVKCuGP7ghfM7ppN3ANVybvsA64wr3h8I68mqS6A,195
8
8
  oceanprotocol_job_details/loaders/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  oceanprotocol_job_details/loaders/impl/ddo.py,sha256=LcKoDuGnZw8JW68Q5P9gWGYeZqszC97HxnkzOuorHBA,707
10
- oceanprotocol_job_details/loaders/impl/files.py,sha256=hiquES8Wz11XZHRCKlfcuOrv3FlZ6CFv9lPpPUh2zpM,1832
10
+ oceanprotocol_job_details/loaders/impl/files.py,sha256=hft3Y61D6eHpa9ZQ5i2C5tnCv9IZaTudOZaOIQUbkxo,2002
11
11
  oceanprotocol_job_details/loaders/impl/job_details.py,sha256=ERKQm1oH3jW8ebb8l4glL-Wm-9rV8mBfFalVvo0UomU,802
12
- oceanprotocol_job_details-0.1.0.dist-info/METADATA,sha256=F3_bS6NWShJOpwPbdMin5VRkb2yuuJAvDxJ9KNXK4iw,3141
13
- oceanprotocol_job_details-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- oceanprotocol_job_details-0.1.0.dist-info/licenses/LICENSE,sha256=ni3ix7P_GxK1W3VGC4fJ3o6QoCngCEpSuTJwO4nkpbw,1055
15
- oceanprotocol_job_details-0.1.0.dist-info/RECORD,,
12
+ oceanprotocol_job_details-0.1.2.dist-info/METADATA,sha256=qc5j3uozzNc6NNaIqRd4gGPPo_uFNHUoayCEmq3CeRM,3141
13
+ oceanprotocol_job_details-0.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ oceanprotocol_job_details-0.1.2.dist-info/licenses/LICENSE,sha256=ni3ix7P_GxK1W3VGC4fJ3o6QoCngCEpSuTJwO4nkpbw,1055
15
+ oceanprotocol_job_details-0.1.2.dist-info/RECORD,,