rowan-python 2.1.1__py3-none-any.whl → 2.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.
rowan/protein.py CHANGED
@@ -162,7 +162,7 @@ def list_proteins(
162
162
  return [Protein(**item) for item in results]
163
163
 
164
164
 
165
- def upload_protein(name: str, file_path: Path) -> Protein:
165
+ def upload_protein(name: str, file_path: Path, project_uuid: str | None = None) -> Protein:
166
166
  """
167
167
  Uploads a protein from a PDB file to the API.
168
168
 
@@ -181,7 +181,11 @@ def upload_protein(name: str, file_path: Path) -> Protein:
181
181
  protein_data = conversion_response.json()
182
182
 
183
183
  # Step 2: Use the converted data to create the final protein object.
184
- creation_payload = {"name": name, "protein_data": protein_data, "ancestor_uuid": None}
184
+ creation_payload = {
185
+ "name": name,
186
+ "protein_data": protein_data,
187
+ "project_uuid": project_uuid,
188
+ }
185
189
  final_response = client.post("/protein", json=creation_payload)
186
190
  final_response.raise_for_status()
187
191
 
@@ -189,7 +193,7 @@ def upload_protein(name: str, file_path: Path) -> Protein:
189
193
  return Protein(**final_response.json())
190
194
 
191
195
 
192
- def create_protein_from_pdb_id(name: str, code: str, project_uuid: str) -> Protein:
196
+ def create_protein_from_pdb_id(name: str, code: str, project_uuid: str | None = None) -> Protein:
193
197
  """
194
198
  Creates a protein from a PDB ID.
195
199
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rowan-python
3
- Version: 2.1.1
3
+ Version: 2.1.2
4
4
  Summary: Rowan Python Library
5
5
  Project-URL: Homepage, https://github.com/rowansci/rowan-client
6
6
  Project-URL: Bug Tracker, https://github.com/rowansci/rowan-client/issues
@@ -2,14 +2,14 @@ rowan/__init__.py,sha256=2rz6dW0l9DzawiFi6S0WSv8XlZq1CoTBKJrsJ1uesvk,171
2
2
  rowan/constants.py,sha256=ZZvv3L0b2y3dMGlWGeaRmx40J5tBrpxNxvJgjP1TNjg,37
3
3
  rowan/folder.py,sha256=n9WkjHMweQLtVcWUvCttOrmezvUdbFxam_eDEMzLF_A,6791
4
4
  rowan/project.py,sha256=ALPPkMa_cg7w5OkXno1cs6acCofw8AOUYRSeWgr3L0o,3774
5
- rowan/protein.py,sha256=8hVNfnrULxE0Pz8cv5AnbTr7sMWNvStfM03vZh4k7uw,7925
5
+ rowan/protein.py,sha256=bMemvLZua_pnTrYOxHFZ4jFlRH9KgpYvtjj5M2__28k,8026
6
6
  rowan/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  rowan/user.py,sha256=Dl--NPUPATKCs2VmILsW8HnLiunG0Lxr0n6mKuHm21U,3891
8
8
  rowan/utils.py,sha256=907lV0fEP6BnjOWyisd3Uh8Mk5JuQMOX9QEjGi_mdew,3314
9
9
  rowan/workflow.py,sha256=LwU1iaweXseQENOHYAOQqvjNkwITZn82JHeSr4xZiTc,39505
10
10
  rowan/rowan_rdkit/__init__.py,sha256=EATX2VRzywzKxqkpCUMTf7RNQLkWsfi5VcCNDW6EIiw,503
11
11
  rowan/rowan_rdkit/chem_utils.py,sha256=i7-EmAcmvHYtc9NiZblLY_k2DoQKofAZo5KT2qtkUCI,34775
12
- rowan_python-2.1.1.dist-info/METADATA,sha256=tEZXVzgU_hhMrinC7ktl1VM-AOIwbgmpkxRljvShlnk,1598
13
- rowan_python-2.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- rowan_python-2.1.1.dist-info/licenses/LICENSE,sha256=i05z7xEhyrg6f8j0lR3XYjShnF-MJGFQ-DnpsZ8yiVI,1084
15
- rowan_python-2.1.1.dist-info/RECORD,,
12
+ rowan_python-2.1.2.dist-info/METADATA,sha256=Pj9WxcyKn2jjFIMsew0Ka7GWJ9X0CLElGIsT8agjEME,1598
13
+ rowan_python-2.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
+ rowan_python-2.1.2.dist-info/licenses/LICENSE,sha256=i05z7xEhyrg6f8j0lR3XYjShnF-MJGFQ-DnpsZ8yiVI,1084
15
+ rowan_python-2.1.2.dist-info/RECORD,,