physistool 0.1.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.
- physistool-0.1.0/LICENSE +21 -0
- physistool-0.1.0/PKG-INFO +68 -0
- physistool-0.1.0/README.md +51 -0
- physistool-0.1.0/physis/__init__.py +32 -0
- physistool-0.1.0/physis/attestation.py +754 -0
- physistool-0.1.0/physis/dispatcher.py +124 -0
- physistool-0.1.0/physis/envelope.py +253 -0
- physistool-0.1.0/physis/licensing.py +190 -0
- physistool-0.1.0/physis/metering.py +129 -0
- physistool-0.1.0/physis/physis_client.py +1921 -0
- physistool-0.1.0/physistool.egg-info/PKG-INFO +68 -0
- physistool-0.1.0/physistool.egg-info/SOURCES.txt +16 -0
- physistool-0.1.0/physistool.egg-info/dependency_links.txt +1 -0
- physistool-0.1.0/physistool.egg-info/entry_points.txt +2 -0
- physistool-0.1.0/physistool.egg-info/requires.txt +1 -0
- physistool-0.1.0/physistool.egg-info/top_level.txt +1 -0
- physistool-0.1.0/pyproject.toml +38 -0
- physistool-0.1.0/setup.cfg +4 -0
physistool-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MorphoComputing
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: physistool
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Open-source PhysisFold client — CLI + SDK for constraint-guided all-atom protein folding via a remote (Nitro Enclave) endpoint.
|
|
5
|
+
Author: MorphoComputing
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://physisfold.com
|
|
8
|
+
Keywords: protein,folding,structure,bioinformatics,physisfold
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
12
|
+
Requires-Python: >=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: cryptography>=41
|
|
16
|
+
Dynamic: license-file
|
|
17
|
+
|
|
18
|
+
# physistool
|
|
19
|
+
|
|
20
|
+
The open-source **PhysisFold client** — a thin, auditable CLI + SDK that speaks
|
|
21
|
+
HTTP+JSON to a remote PhysisFold folding endpoint (the engine runs server-side
|
|
22
|
+
inside an AWS Nitro Enclave; there is no protected IP in this package).
|
|
23
|
+
|
|
24
|
+
`physistool` is the umbrella command: `physistool fold ...` today, with sibling
|
|
25
|
+
verbs (engineer, msa, search, ...) joining the same command as more tools ship.
|
|
26
|
+
|
|
27
|
+
## Install
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
pip install physistool
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## SDK
|
|
34
|
+
|
|
35
|
+
The pip package is `physistool`; the import module is `physis` (scikit-learn ->
|
|
36
|
+
sklearn convention).
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
from physis import fold, FoldError
|
|
40
|
+
|
|
41
|
+
try:
|
|
42
|
+
report = fold("input.fasta", out_path="result.pdb",
|
|
43
|
+
endpoint="http://127.0.0.1:8787")
|
|
44
|
+
except FoldError as e:
|
|
45
|
+
...
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## CLI
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
physistool fold input.fasta --out result.pdb --endpoint http://127.0.0.1:8787
|
|
52
|
+
# equivalently, the flat flag surface:
|
|
53
|
+
physistool --sequence input.fasta --out result.pdb
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Run `physistool --help` for the full flag set (best-of seeds, helix prior,
|
|
57
|
+
Stage-C `--encrypt`, metering, attestation `--expected-pcr0`, ...).
|
|
58
|
+
|
|
59
|
+
## Security model
|
|
60
|
+
|
|
61
|
+
Before any input leaves your machine the client fetches and **verifies** the
|
|
62
|
+
endpoint's AWS Nitro attestation (signature chain to the pinned Nitro root +
|
|
63
|
+
published PCR0) and only then trusts the enclave public key. See the module
|
|
64
|
+
docstrings in `physis/attestation.py` and `physis/envelope.py`.
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
|
|
68
|
+
MIT. See `LICENSE`.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# physistool
|
|
2
|
+
|
|
3
|
+
The open-source **PhysisFold client** — a thin, auditable CLI + SDK that speaks
|
|
4
|
+
HTTP+JSON to a remote PhysisFold folding endpoint (the engine runs server-side
|
|
5
|
+
inside an AWS Nitro Enclave; there is no protected IP in this package).
|
|
6
|
+
|
|
7
|
+
`physistool` is the umbrella command: `physistool fold ...` today, with sibling
|
|
8
|
+
verbs (engineer, msa, search, ...) joining the same command as more tools ship.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
pip install physistool
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## SDK
|
|
17
|
+
|
|
18
|
+
The pip package is `physistool`; the import module is `physis` (scikit-learn ->
|
|
19
|
+
sklearn convention).
|
|
20
|
+
|
|
21
|
+
```python
|
|
22
|
+
from physis import fold, FoldError
|
|
23
|
+
|
|
24
|
+
try:
|
|
25
|
+
report = fold("input.fasta", out_path="result.pdb",
|
|
26
|
+
endpoint="http://127.0.0.1:8787")
|
|
27
|
+
except FoldError as e:
|
|
28
|
+
...
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## CLI
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
physistool fold input.fasta --out result.pdb --endpoint http://127.0.0.1:8787
|
|
35
|
+
# equivalently, the flat flag surface:
|
|
36
|
+
physistool --sequence input.fasta --out result.pdb
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Run `physistool --help` for the full flag set (best-of seeds, helix prior,
|
|
40
|
+
Stage-C `--encrypt`, metering, attestation `--expected-pcr0`, ...).
|
|
41
|
+
|
|
42
|
+
## Security model
|
|
43
|
+
|
|
44
|
+
Before any input leaves your machine the client fetches and **verifies** the
|
|
45
|
+
endpoint's AWS Nitro attestation (signature chain to the pinned Nitro root +
|
|
46
|
+
published PCR0) and only then trusts the enclave public key. See the module
|
|
47
|
+
docstrings in `physis/attestation.py` and `physis/envelope.py`.
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
MIT. See `LICENSE`.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""``physis`` — the open-source PhysisFold client (CLI + SDK).
|
|
2
|
+
|
|
3
|
+
This is what the customer installs and runs. It speaks HTTP+JSON to a remote
|
|
4
|
+
PhysisFold folding endpoint (see ``PhysisFold/enclave/CONTRACT.md``). There is no
|
|
5
|
+
protected IP here: the engine lives server-side (inside the enclave); this
|
|
6
|
+
package is a thin, auditable client.
|
|
7
|
+
|
|
8
|
+
SDK surface
|
|
9
|
+
-----------
|
|
10
|
+
from physis import fold, FoldError
|
|
11
|
+
|
|
12
|
+
``fold(...)`` is the programmatic entry point (see its docstring for the full
|
|
13
|
+
parameter set). ``FoldError`` is raised on any transport failure or ``ok:false``
|
|
14
|
+
server response.
|
|
15
|
+
|
|
16
|
+
CLI
|
|
17
|
+
---
|
|
18
|
+
Installed by ``pip install physistool`` as the ``physistool`` console script
|
|
19
|
+
(the import module stays ``physis``, like scikit-learn -> sklearn)::
|
|
20
|
+
|
|
21
|
+
physistool fold input.fasta --out result.pdb --endpoint http://127.0.0.1:8787
|
|
22
|
+
# or the flat flag surface:
|
|
23
|
+
physistool --sequence input.fasta --out result.pdb
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
from __future__ import annotations
|
|
27
|
+
|
|
28
|
+
from .physis_client import FoldError, fold
|
|
29
|
+
|
|
30
|
+
__all__ = ["fold", "FoldError"]
|
|
31
|
+
|
|
32
|
+
__version__ = "0.1.0"
|