rowan-python 2.0.2__py3-none-any.whl → 2.0.3__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.
- rowan/utils.py +3 -3
- rowan/workflow.py +1 -1
- {rowan_python-2.0.2.dist-info → rowan_python-2.0.3.dist-info}/METADATA +1 -1
- {rowan_python-2.0.2.dist-info → rowan_python-2.0.3.dist-info}/RECORD +6 -6
- {rowan_python-2.0.2.dist-info → rowan_python-2.0.3.dist-info}/WHEEL +0 -0
- {rowan_python-2.0.2.dist-info → rowan_python-2.0.3.dist-info}/licenses/LICENSE +0 -0
rowan/utils.py
CHANGED
|
@@ -19,10 +19,10 @@ def get_api_key() -> str:
|
|
|
19
19
|
|
|
20
20
|
:return: The API key.
|
|
21
21
|
"""
|
|
22
|
-
if (
|
|
23
|
-
return api_key
|
|
24
|
-
elif hasattr(rowan, "api_key"):
|
|
22
|
+
if hasattr(rowan, "api_key") and rowan.api_key:
|
|
25
23
|
return rowan.api_key
|
|
24
|
+
elif (api_key := os.environ.get("ROWAN_API_KEY")) is not None:
|
|
25
|
+
return api_key
|
|
26
26
|
|
|
27
27
|
raise ValueError(
|
|
28
28
|
"No API key provided. You can set your API key using 'rowan.api_key = <API-KEY>',"
|
rowan/workflow.py
CHANGED
|
@@ -52,7 +52,7 @@ class Workflow(BaseModel):
|
|
|
52
52
|
starred: bool
|
|
53
53
|
public: bool
|
|
54
54
|
workflow_type: str = Field(alias="object_type")
|
|
55
|
-
data: dict[str, Any] = Field(default=
|
|
55
|
+
data: dict[str, Any] | None = Field(default=None, alias="object_data")
|
|
56
56
|
email_when_complete: bool
|
|
57
57
|
max_credits: int | None = None
|
|
58
58
|
elapsed: float | None = None
|
|
@@ -4,11 +4,11 @@ rowan/folder.py,sha256=n9WkjHMweQLtVcWUvCttOrmezvUdbFxam_eDEMzLF_A,6791
|
|
|
4
4
|
rowan/protein.py,sha256=TOCsN50RaYh3Ja4GBxzH6R7qUk-Y9Xv7y1WU3buPFis,7778
|
|
5
5
|
rowan/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
rowan/user.py,sha256=Dl--NPUPATKCs2VmILsW8HnLiunG0Lxr0n6mKuHm21U,3891
|
|
7
|
-
rowan/utils.py,sha256=
|
|
8
|
-
rowan/workflow.py,sha256=
|
|
7
|
+
rowan/utils.py,sha256=907lV0fEP6BnjOWyisd3Uh8Mk5JuQMOX9QEjGi_mdew,3314
|
|
8
|
+
rowan/workflow.py,sha256=LwU1iaweXseQENOHYAOQqvjNkwITZn82JHeSr4xZiTc,39505
|
|
9
9
|
rowan/rowan_rdkit/__init__.py,sha256=EATX2VRzywzKxqkpCUMTf7RNQLkWsfi5VcCNDW6EIiw,503
|
|
10
10
|
rowan/rowan_rdkit/chem_utils.py,sha256=i7-EmAcmvHYtc9NiZblLY_k2DoQKofAZo5KT2qtkUCI,34775
|
|
11
|
-
rowan_python-2.0.
|
|
12
|
-
rowan_python-2.0.
|
|
13
|
-
rowan_python-2.0.
|
|
14
|
-
rowan_python-2.0.
|
|
11
|
+
rowan_python-2.0.3.dist-info/METADATA,sha256=-RDgaRghr3pWuUCJp7GTdGzoo1PnggTEsb8uIVrz8mU,1598
|
|
12
|
+
rowan_python-2.0.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
13
|
+
rowan_python-2.0.3.dist-info/licenses/LICENSE,sha256=i7ehYBS-6gGmbTcgU4mgk28pyOx2kScJ0kcx8n7bWLM,1084
|
|
14
|
+
rowan_python-2.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|