openprotein-python 0.3.1__tar.gz → 0.4.0__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.
Files changed (27) hide show
  1. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/PKG-INFO +2 -2
  2. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/README.md +1 -1
  3. openprotein_python-0.4.0/openprotein/__init__.py +99 -0
  4. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/openprotein/api/__init__.py +3 -2
  5. openprotein_python-0.3.1/openprotein/api/poet.py → openprotein_python-0.4.0/openprotein/api/align.py +116 -671
  6. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/openprotein/api/data.py +30 -5
  7. openprotein_python-0.4.0/openprotein/api/design.py +508 -0
  8. openprotein_python-0.4.0/openprotein/api/embedding.py +1232 -0
  9. openprotein_python-0.4.0/openprotein/api/fold.py +448 -0
  10. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/openprotein/api/jobs.py +25 -153
  11. openprotein_python-0.4.0/openprotein/api/poet.py +612 -0
  12. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/openprotein/api/predict.py +130 -163
  13. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/openprotein/api/train.py +124 -136
  14. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/openprotein/base.py +3 -5
  15. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/openprotein/config.py +4 -1
  16. openprotein_python-0.4.0/openprotein/futures.py +57 -0
  17. openprotein_python-0.4.0/openprotein/jobs.py +186 -0
  18. openprotein_python-0.4.0/openprotein/schemas.py +55 -0
  19. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/pyproject.toml +1 -1
  20. openprotein_python-0.3.1/openprotein/__init__.py +0 -70
  21. openprotein_python-0.3.1/openprotein/api/design.py +0 -259
  22. openprotein_python-0.3.1/openprotein/api/embedding.py +0 -850
  23. openprotein_python-0.3.1/openprotein/models.py +0 -377
  24. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/LICENSE.txt +0 -0
  25. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/openprotein/_version.py +0 -0
  26. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/openprotein/errors.py +0 -0
  27. {openprotein_python-0.3.1 → openprotein_python-0.4.0}/openprotein/fasta.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openprotein-python
3
- Version: 0.3.1
3
+ Version: 0.4.0
4
4
  Summary: OpenProtein Python interface.
5
5
  Home-page: https://docs.openprotein.ai/
6
6
  License: MIT
@@ -115,7 +115,7 @@ session.jobs.get(JOB_ID) # Replace JOB_ID with the ID of the specific job to be
115
115
  ### Resuming Jobs
116
116
  Jobs from prior workflows can be resumed using the load_job method provided by each API.
117
117
  ```
118
- session.train.load_job(JOB_ID) # Replace JOB_ID with the ID of the training job to resume
118
+ session.load_job(JOB_ID) # Replace JOB_ID with the ID of the training job to resume
119
119
  ```
120
120
 
121
121
  ## PoET interface
@@ -92,7 +92,7 @@ session.jobs.get(JOB_ID) # Replace JOB_ID with the ID of the specific job to be
92
92
  ### Resuming Jobs
93
93
  Jobs from prior workflows can be resumed using the load_job method provided by each API.
94
94
  ```
95
- session.train.load_job(JOB_ID) # Replace JOB_ID with the ID of the training job to resume
95
+ session.load_job(JOB_ID) # Replace JOB_ID with the ID of the training job to resume
96
96
  ```
97
97
 
98
98
  ## PoET interface
@@ -0,0 +1,99 @@
1
+ from openprotein._version import __version__
2
+
3
+ from openprotein.base import APISession
4
+ from openprotein.api.jobs import JobsAPI, Job
5
+ from openprotein.api.data import DataAPI
6
+ from openprotein.api.align import AlignAPI
7
+ from openprotein.api.embedding import EmbeddingAPI
8
+ from openprotein.api.train import TrainingAPI
9
+ from openprotein.api.design import DesignAPI
10
+ from openprotein.api.fold import FoldAPI
11
+ from openprotein.api.jobs import load_job
12
+
13
+
14
+ class OpenProtein(APISession):
15
+ """
16
+ The base class for accessing OpenProtein API functionality.
17
+ """
18
+
19
+ _embedding = None
20
+ _fold = None
21
+ _align = None
22
+ _jobs = None
23
+ _data = None
24
+ _train = None
25
+ _design = None
26
+
27
+ def wait(self, job: Job, *args, **kwargs):
28
+ return job.wait(self, *args, **kwargs)
29
+
30
+ wait_until_done = wait
31
+
32
+ def load_job(self, job_id):
33
+ return load_job(self, job_id)
34
+
35
+ @property
36
+ def jobs(self) -> JobsAPI:
37
+ """
38
+ The jobs submodule gives access to functionality for listing jobs and checking their status.
39
+ """
40
+ if self._jobs is None:
41
+ self._jobs = JobsAPI(self)
42
+ return self._jobs
43
+
44
+ @property
45
+ def data(self) -> DataAPI:
46
+ """
47
+ The data submodule gives access to functionality for uploading and accessing user data.
48
+ """
49
+ if self._data is None:
50
+ self._data = DataAPI(self)
51
+ return self._data
52
+
53
+ @property
54
+ def train(self) -> TrainingAPI:
55
+ """
56
+ The train submodule gives access to functionality for training and validating ML models.
57
+ """
58
+ if self._train is None:
59
+ self._train = TrainingAPI(self)
60
+ return self._train
61
+
62
+ @property
63
+ def align(self) -> AlignAPI:
64
+ """
65
+ The PoET submodule gives access to the PoET generative model and MSA and prompt creation interfaces.
66
+ """
67
+ if self._align is None:
68
+ self._align = AlignAPI(self)
69
+ return self._align
70
+
71
+ @property
72
+ def embedding(self) -> EmbeddingAPI:
73
+ """
74
+ The embedding submodule gives access to protein embedding models and their inference endpoints.
75
+ """
76
+ if self._embedding is None:
77
+ self._embedding = EmbeddingAPI(self)
78
+ return self._embedding
79
+
80
+ @property
81
+ def design(self) -> DesignAPI:
82
+ """
83
+ The design submodule gives access to functionality for designing new sequences using models from train.
84
+ """
85
+ if self._design is None:
86
+ self._design = DesignAPI(self)
87
+ return self._design
88
+
89
+ @property
90
+ def fold(self) -> FoldAPI:
91
+ """
92
+ The fold submodule gives access to functionality for folding sequences and returning PDBs.
93
+ """
94
+ if self._fold is None:
95
+ self._fold = FoldAPI(self)
96
+ return self._fold
97
+
98
+
99
+ connect = OpenProtein
@@ -2,5 +2,6 @@ from . import data
2
2
  from . import design
3
3
  from . import train
4
4
  from . import predict
5
- from . import poet
6
- from . import embedding
5
+ from . import align
6
+ from . import embedding
7
+ from . import fold