openprotein-python 0.1.1b4__tar.gz → 0.1.1b6__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.
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/PKG-INFO +2 -2
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/README.md +1 -1
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/__init__.py +9 -9
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/_version.py +1 -1
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/api/data.py +4 -4
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/api/design.py +6 -6
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/api/embedding.py +6 -6
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/api/jobs.py +3 -3
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/api/poet.py +6 -6
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/api/predict.py +6 -6
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/api/train.py +5 -5
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/base.py +3 -3
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/models.py +1 -1
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/pyproject.toml +1 -1
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/LICENSE.txt +0 -0
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/api/__init__.py +0 -0
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/config.py +0 -0
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/errors.py +0 -0
- {openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/fasta.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: openprotein-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1b6
|
|
4
4
|
Summary: OpenProtein Python interface.
|
|
5
5
|
Home-page: https://docs.openprotein.ai/
|
|
6
6
|
License: MIT
|
|
@@ -30,7 +30,7 @@ Python interface for the OpenProtein.AI REST API.
|
|
|
30
30
|
You can install with pip:
|
|
31
31
|
|
|
32
32
|
```
|
|
33
|
-
pip install
|
|
33
|
+
pip install openprotein_python
|
|
34
34
|
```
|
|
35
35
|
## Getting started
|
|
36
36
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
from
|
|
1
|
+
from openprotein_python._version import __version__
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
3
|
+
from openprotein_python.base import APISession
|
|
4
|
+
from openprotein_python.api.jobs import JobsAPI, Job
|
|
5
|
+
from openprotein_python.api.data import DataAPI
|
|
6
|
+
from openprotein_python.api.poet import PoetAPI
|
|
7
|
+
from openprotein_python.api.embedding import EmbeddingAPI
|
|
8
|
+
from openprotein_python.api.train import TrainingAPI
|
|
9
|
+
from openprotein_python.api.design import DesignAPI
|
|
10
|
+
from openprotein_python.api.predict import PredictAPI
|
|
11
11
|
class OpenProtein(APISession):
|
|
12
12
|
"""
|
|
13
13
|
The base class for accessing OpenProtein API functionality.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version_tuple__ = version_tuple = (0, 1, 1, '
|
|
1
|
+
__version_tuple__ = version_tuple = (0, 1, 1, 'b6')
|
|
2
2
|
__version__ = version = '.'.join(str(x) for x in __version_tuple__)
|
|
@@ -3,10 +3,10 @@ import pydantic
|
|
|
3
3
|
from typing import Optional, List
|
|
4
4
|
from io import BytesIO
|
|
5
5
|
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
import
|
|
6
|
+
from openprotein_python.models import AssayMetadata, AssayDataPage
|
|
7
|
+
from openprotein_python.errors import APIError
|
|
8
|
+
from openprotein_python.base import APISession
|
|
9
|
+
import openprotein_python.config as config
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
def list_models(session: APISession, assay_id: str) -> List:
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
from typing import Optional
|
|
2
2
|
import pydantic
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
import
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
4
|
+
from openprotein_python.base import APISession
|
|
5
|
+
from openprotein_python.api.jobs import AsyncJobFuture, Job
|
|
6
|
+
import openprotein_python.config as config
|
|
7
|
+
from openprotein_python.api.jobs import load_job
|
|
8
|
+
from openprotein_python.models import DesignJobCreate, JobType, DesignResults
|
|
9
|
+
from openprotein_python.errors import (
|
|
10
10
|
APIError,
|
|
11
11
|
InvalidJob,
|
|
12
12
|
)
|
{openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/api/embedding.py
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
1
|
+
from openprotein_python.base import APISession
|
|
2
|
+
from openprotein_python.api.jobs import (
|
|
3
3
|
Job,
|
|
4
4
|
MappedAsyncJobFuture,
|
|
5
5
|
PagedAsyncJobFuture,
|
|
6
6
|
job_get,
|
|
7
7
|
JobStatus,
|
|
8
8
|
)
|
|
9
|
-
from
|
|
10
|
-
import
|
|
11
|
-
from
|
|
12
|
-
from
|
|
9
|
+
from openprotein_python.errors import InvalidJob
|
|
10
|
+
import openprotein_python.config as config
|
|
11
|
+
from openprotein_python.api.jobs import load_job
|
|
12
|
+
from openprotein_python.models import (
|
|
13
13
|
ModelDescription,
|
|
14
14
|
TokenInfo,
|
|
15
15
|
ModelMetadata,
|
|
@@ -11,9 +11,9 @@ import tqdm
|
|
|
11
11
|
import pydantic
|
|
12
12
|
from pydantic import BaseModel
|
|
13
13
|
|
|
14
|
-
from
|
|
15
|
-
from
|
|
16
|
-
import
|
|
14
|
+
from openprotein_python.errors import TimeoutException
|
|
15
|
+
from openprotein_python.base import APISession
|
|
16
|
+
import openprotein_python.config as config
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class JobStatus(str, Enum):
|
|
@@ -5,18 +5,18 @@ import csv
|
|
|
5
5
|
import codecs
|
|
6
6
|
import requests
|
|
7
7
|
|
|
8
|
-
from
|
|
9
|
-
from
|
|
8
|
+
from openprotein_python.base import APISession
|
|
9
|
+
from openprotein_python.api.jobs import (
|
|
10
10
|
Job,
|
|
11
11
|
AsyncJobFuture,
|
|
12
12
|
StreamingAsyncJobFuture,
|
|
13
13
|
job_get,
|
|
14
14
|
job_args_get,
|
|
15
15
|
)
|
|
16
|
-
from
|
|
17
|
-
import
|
|
16
|
+
from openprotein_python.api.jobs import load_job #as base_load_job
|
|
17
|
+
import openprotein_python.config as config
|
|
18
18
|
|
|
19
|
-
from
|
|
19
|
+
from openprotein_python.models import (
|
|
20
20
|
MSASamplingMethod,
|
|
21
21
|
PoetInputType,
|
|
22
22
|
PoetScoreJob,
|
|
@@ -27,7 +27,7 @@ from openprotein.models import (
|
|
|
27
27
|
PoetSSPJob,
|
|
28
28
|
PoetSSPResult,
|
|
29
29
|
)
|
|
30
|
-
from
|
|
30
|
+
from openprotein_python.errors import (
|
|
31
31
|
InvalidParameterError,
|
|
32
32
|
MissingParameterError,
|
|
33
33
|
APIError,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
from typing import Optional, List, Union
|
|
2
2
|
import pydantic
|
|
3
3
|
|
|
4
|
-
from
|
|
5
|
-
from
|
|
6
|
-
from
|
|
4
|
+
from openprotein_python.base import APISession
|
|
5
|
+
from openprotein_python.api.jobs import AsyncJobFuture, Job
|
|
6
|
+
from openprotein_python.models import (
|
|
7
7
|
SequenceDataset,
|
|
8
8
|
SequenceData,
|
|
9
9
|
PredictJob,
|
|
10
10
|
PredictSingleSiteJob,
|
|
11
11
|
JobType,
|
|
12
12
|
)
|
|
13
|
-
from
|
|
14
|
-
from
|
|
15
|
-
from
|
|
13
|
+
from openprotein_python.errors import InvalidParameterError, APIError, InvalidJob
|
|
14
|
+
from openprotein_python.api.train import TrainFuture
|
|
15
|
+
from openprotein_python.api.jobs import load_job
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
def _create_predict_job(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
from typing import Optional, List, Union
|
|
2
2
|
import pydantic
|
|
3
|
-
from
|
|
4
|
-
from
|
|
3
|
+
from openprotein_python.base import APISession
|
|
4
|
+
from openprotein_python.api.jobs import AsyncJobFuture, Job
|
|
5
5
|
|
|
6
|
-
from
|
|
7
|
-
from
|
|
8
|
-
from
|
|
6
|
+
from openprotein_python.models import TrainGraph, JobType, Jobplus, CVResults
|
|
7
|
+
from openprotein_python.errors import InvalidParameterError, APIError, InvalidJob
|
|
8
|
+
from openprotein_python.api.data import AssayDataset, AssayMetadata
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def list_models(session: APISession, job_id: str) -> List:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import openprotein_python.config as config
|
|
2
2
|
|
|
3
3
|
import requests
|
|
4
4
|
from urllib.parse import urljoin
|
|
@@ -7,7 +7,7 @@ from typing import Union
|
|
|
7
7
|
from requests.adapters import HTTPAdapter
|
|
8
8
|
from requests.packages.urllib3.util.retry import Retry
|
|
9
9
|
|
|
10
|
-
from
|
|
10
|
+
from openprotein_python.errors import APIError, InvalidParameterError, MissingParameterError, AuthError
|
|
11
11
|
|
|
12
12
|
class BearerAuth(requests.auth.AuthBase):
|
|
13
13
|
"""
|
|
@@ -40,7 +40,7 @@ class APISession(requests.Session):
|
|
|
40
40
|
|
|
41
41
|
def __init__(self, username:str,
|
|
42
42
|
password:str,
|
|
43
|
-
backend:str = "https://
|
|
43
|
+
backend:str = "https://api.openprotein.ai/api/" ):
|
|
44
44
|
super().__init__()
|
|
45
45
|
self.backend = backend
|
|
46
46
|
self.verify = True
|
|
@@ -4,7 +4,7 @@ from datetime import datetime
|
|
|
4
4
|
from enum import Enum
|
|
5
5
|
import numpy as np
|
|
6
6
|
from pydantic import BaseModel, Field, validator
|
|
7
|
-
from
|
|
7
|
+
from openprotein_python.api.jobs import Job, JobStatus
|
|
8
8
|
|
|
9
9
|
class ModelDescription(BaseModel):
|
|
10
10
|
citation_title: Optional[str] = None
|
|
File without changes
|
{openprotein_python-0.1.1b4 → openprotein_python-0.1.1b6}/openprotein_python/api/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|