Skip to content

Commit 3e1ea48

Browse files
committed
feat: add readme for polywrap-manifest
1 parent e76bb7d commit 3e1ea48

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# polywrap-manifest
2+
3+
Python implementation of the WRAP manifest schema at https://github.com/polywrap/wrap
4+
5+
## Usage
6+
7+
### Deserialize WRAP manifest
8+
9+
```python
10+
from polywrap_manifest import deserialize_wrap_manifest, WrapManifest_0_1
11+
12+
with open("<path to WRAP package>/wrap.info", "rb") as f:
13+
raw_manifest = f.read()
14+
15+
manifest = deserialize_wrap_manifest(raw_manifest)
16+
assert isinstance(manifest, WrapManifest_0_1)
17+
```

0 commit comments

Comments
 (0)