biolm-sdk 0.0.1__py2.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.
Files changed (59) hide show
  1. biolm/__init__.py +78 -0
  2. biolm/cli.py +3546 -0
  3. biolm/cli_entry.py +119 -0
  4. biolm/cli_theme.py +121 -0
  5. biolm/client.py +119 -0
  6. biolm/core/__init__.py +1 -0
  7. biolm/core/asynch.py +351 -0
  8. biolm/core/auth.py +1042 -0
  9. biolm/core/const.py +169 -0
  10. biolm/core/expression_evaluator.py +142 -0
  11. biolm/core/http.py +1581 -0
  12. biolm/core/legacy/__init__.py +12 -0
  13. biolm/core/legacy/api.py +365 -0
  14. biolm/core/legacy/cls.py +185 -0
  15. biolm/core/payloads.py +44 -0
  16. biolm/core/seqflow_auth.py +204 -0
  17. biolm/core/utils.py +71 -0
  18. biolm/core/validate.py +157 -0
  19. biolm/datasets_mlflow.py +430 -0
  20. biolm/examples.py +574 -0
  21. biolm/hub/__init__.py +22 -0
  22. biolm/hub/catalog.py +103 -0
  23. biolm/hub/config.py +86 -0
  24. biolm/hub/data/__init__.py +0 -0
  25. biolm/hub/data/catalog.json +35 -0
  26. biolm/hub/discovery.py +113 -0
  27. biolm/io/__init__.py +22 -0
  28. biolm/io/csv.py +152 -0
  29. biolm/io/fasta.py +248 -0
  30. biolm/io/json.py +179 -0
  31. biolm/io/pdb.py +153 -0
  32. biolm/ltc.py +1 -0
  33. biolm/models.py +276 -0
  34. biolm/pipeline/__init__.py +150 -0
  35. biolm/pipeline/async_executor.py +377 -0
  36. biolm/pipeline/base.py +1615 -0
  37. biolm/pipeline/clustering.py +493 -0
  38. biolm/pipeline/data.py +3639 -0
  39. biolm/pipeline/datastore.py +11 -0
  40. biolm/pipeline/datastore_duckdb.py +2797 -0
  41. biolm/pipeline/filters.py +935 -0
  42. biolm/pipeline/generative.py +1840 -0
  43. biolm/pipeline/mlm_remasking.py +693 -0
  44. biolm/pipeline/pipeline_def.py +575 -0
  45. biolm/pipeline/utils.py +574 -0
  46. biolm/pipeline/visualization.py +648 -0
  47. biolm/progress.py +55 -0
  48. biolm/protocols.py +987 -0
  49. biolm/protocols_mlflow.py +835 -0
  50. biolm/volumes.py +75 -0
  51. biolm/workspaces.py +75 -0
  52. biolm_sdk-0.0.1.dist-info/METADATA +166 -0
  53. biolm_sdk-0.0.1.dist-info/RECORD +59 -0
  54. biolm_sdk-0.0.1.dist-info/WHEEL +6 -0
  55. biolm_sdk-0.0.1.dist-info/entry_points.txt +7 -0
  56. biolm_sdk-0.0.1.dist-info/licenses/AUTHORS.rst +13 -0
  57. biolm_sdk-0.0.1.dist-info/licenses/LICENSE +16 -0
  58. biolm_sdk-0.0.1.dist-info/top_level.txt +2 -0
  59. biolmai/__init__.py +17 -0
biolm/__init__.py ADDED
@@ -0,0 +1,78 @@
1
+ """Top-level package for BioLM."""
2
+ __author__ = """Nikhil Haas"""
3
+ __email__ = "nikhil@biolm.ai"
4
+ __version__ = '0.0.1'
5
+
6
+ from biolm.core.http import BioLMApi, BioLMApiClient
7
+ from biolm.client import BioLM
8
+ from biolm.models import Model, predict, encode, generate
9
+ from biolm.protocols import Protocol
10
+ from biolm.workspaces import Workspace
11
+ from biolm.volumes import Volume
12
+ from biolm.examples import get_example, list_models
13
+ from biolm.io import (
14
+ load_fasta,
15
+ to_fasta,
16
+ load_csv,
17
+ to_csv,
18
+ load_pdb,
19
+ to_pdb,
20
+ load_json,
21
+ to_json,
22
+ )
23
+
24
+ try:
25
+ from biolm import pipeline
26
+ _HAS_PIPELINE = True
27
+ except ImportError:
28
+ _HAS_PIPELINE = False
29
+
30
+ from typing import Optional, Union, List, Any
31
+
32
+ __all__ = [
33
+ 'BioLM',
34
+ 'biolm',
35
+ 'BioLMApi',
36
+ 'BioLMApiClient',
37
+ 'Model',
38
+ 'Protocol',
39
+ 'Workspace',
40
+ 'Volume',
41
+ 'predict',
42
+ 'encode',
43
+ 'generate',
44
+ 'get_example',
45
+ 'list_models',
46
+ 'load_fasta',
47
+ 'to_fasta',
48
+ 'load_csv',
49
+ 'to_csv',
50
+ 'load_pdb',
51
+ 'to_pdb',
52
+ 'load_json',
53
+ 'to_json',
54
+ ]
55
+ if _HAS_PIPELINE:
56
+ __all__.append('pipeline')
57
+
58
+
59
+ def biolm(
60
+ *,
61
+ entity: str,
62
+ action: str,
63
+ type: Optional[str] = None,
64
+ items: Union[Any, List[Any]],
65
+ params: Optional[dict] = None,
66
+ api_key: Optional[str] = None,
67
+ **kwargs
68
+ ) -> Any:
69
+ """Top-level convenience function that wraps the BioLM class and returns the result."""
70
+ return BioLM(
71
+ entity=entity,
72
+ action=action,
73
+ type=type,
74
+ items=items,
75
+ params=params,
76
+ api_key=api_key,
77
+ **kwargs
78
+ )