prisma-api 0.3.8__tar.gz → 0.3.9__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.
- {prisma_api-0.3.8 → prisma_api-0.3.9}/PKG-INFO +1 -1
- {prisma_api-0.3.8 → prisma_api-0.3.9}/prisma_api/__init__.py +1 -1
- {prisma_api-0.3.8 → prisma_api-0.3.9}/prisma_api/prisma_api_v2.py +2 -13
- {prisma_api-0.3.8 → prisma_api-0.3.9}/prisma_api.egg-info/PKG-INFO +1 -1
- {prisma_api-0.3.8 → prisma_api-0.3.9}/pyproject.toml +1 -1
- {prisma_api-0.3.8 → prisma_api-0.3.9}/LICENSE +0 -0
- {prisma_api-0.3.8 → prisma_api-0.3.9}/README.md +0 -0
- {prisma_api-0.3.8 → prisma_api-0.3.9}/prisma_api/config.py +0 -0
- {prisma_api-0.3.8 → prisma_api-0.3.9}/prisma_api/prisma_api.py +0 -0
- {prisma_api-0.3.8 → prisma_api-0.3.9}/prisma_api.egg-info/SOURCES.txt +0 -0
- {prisma_api-0.3.8 → prisma_api-0.3.9}/prisma_api.egg-info/dependency_links.txt +0 -0
- {prisma_api-0.3.8 → prisma_api-0.3.9}/prisma_api.egg-info/requires.txt +0 -0
- {prisma_api-0.3.8 → prisma_api-0.3.9}/prisma_api.egg-info/top_level.txt +0 -0
- {prisma_api-0.3.8 → prisma_api-0.3.9}/setup.cfg +0 -0
- {prisma_api-0.3.8 → prisma_api-0.3.9}/tests/test_prisma_api.py +0 -0
- {prisma_api-0.3.8 → prisma_api-0.3.9}/tests/test_prisma_api_v2.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: prisma_api
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.9
|
|
4
4
|
Summary: A package for interacting with PrISMa Platform APIs. PrISMa is a holistic system for numerical synthesis and assessment of Metal-Organic Frameworks and their applications, for Direct Air Capture of CO2. For more information, see: https://prisma.hw.ac.uk.
|
|
5
5
|
Author-email: RCCS-CaptureTeam <team@prisma-platform.org>
|
|
6
6
|
License: GNUv3
|
|
@@ -275,7 +275,7 @@ class PrismaAPIv2:
|
|
|
275
275
|
"""
|
|
276
276
|
GET /api/v2/list_cifs/
|
|
277
277
|
|
|
278
|
-
|
|
278
|
+
List CIF-backed MOF records.
|
|
279
279
|
|
|
280
280
|
Args:
|
|
281
281
|
tag: Optional tag to filter CIFs by. If omitted, all CIFs are returned.
|
|
@@ -283,11 +283,6 @@ class PrismaAPIv2:
|
|
|
283
283
|
Returns:
|
|
284
284
|
List of MOF names matching ``tag``.
|
|
285
285
|
"""
|
|
286
|
-
if not self._dev:
|
|
287
|
-
raise RuntimeError(
|
|
288
|
-
"list_cifs() is only available on the dev server. "
|
|
289
|
-
"Initialise with dev=True (e.g. prisma_api.init(local_dev=True))."
|
|
290
|
-
)
|
|
291
286
|
response = self._get("/cifs/", _compact(tag=tag))
|
|
292
287
|
records = response.get("results", response) if isinstance(response, dict) else response
|
|
293
288
|
records = records or []
|
|
@@ -300,7 +295,7 @@ class PrismaAPIv2:
|
|
|
300
295
|
"""
|
|
301
296
|
GET /api/v2/cifs/files/
|
|
302
297
|
|
|
303
|
-
|
|
298
|
+
Fetch CIF payload(s) for one or more MOF names.
|
|
304
299
|
|
|
305
300
|
Args:
|
|
306
301
|
mof: One MOF name (str) or list of MOF names.
|
|
@@ -319,12 +314,6 @@ class PrismaAPIv2:
|
|
|
319
314
|
If ``structured=False``: streamed CIF response(s), or saved path(s)
|
|
320
315
|
when ``save_dir`` is provided.
|
|
321
316
|
"""
|
|
322
|
-
if not self._dev:
|
|
323
|
-
raise RuntimeError(
|
|
324
|
-
"get_cifs() is only available on the dev server. "
|
|
325
|
-
"Initialise with dev=True (e.g. prisma_api.init(local_dev=True))."
|
|
326
|
-
)
|
|
327
|
-
|
|
328
317
|
if structured and save_dir is not None:
|
|
329
318
|
raise ValueError("save_dir is only supported when structured=False.")
|
|
330
319
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: prisma_api
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.9
|
|
4
4
|
Summary: A package for interacting with PrISMa Platform APIs. PrISMa is a holistic system for numerical synthesis and assessment of Metal-Organic Frameworks and their applications, for Direct Air Capture of CO2. For more information, see: https://prisma.hw.ac.uk.
|
|
5
5
|
Author-email: RCCS-CaptureTeam <team@prisma-platform.org>
|
|
6
6
|
License: GNUv3
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "prisma_api"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.9"
|
|
8
8
|
description = "A package for interacting with PrISMa Platform APIs. PrISMa is a holistic system for numerical synthesis and assessment of Metal-Organic Frameworks and their applications, for Direct Air Capture of CO2. For more information, see: https://prisma.hw.ac.uk."
|
|
9
9
|
authors = [
|
|
10
10
|
{name = "RCCS-CaptureTeam", email = "team@prisma-platform.org"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|