# Biolink model toolkit - lite!
_bmt-lite_ is a zero-dependency near-clone of a subset of [_bmt_](https://github.com/biolink/biolink-model-toolkit).
It is backed by a pre-populated cache of input/output pairs for many of the more commonly used _bmt_ methods.
_bmt_ alone occupies ~127 KB on disk, but with all of its dependencies it takes up ~36.2 MB. On the other hand, _bmt-lite-1.8.2_ is ~295 KB on disk, of which ~254 KB is the cached data. To initialize a Toolkit from _bmt_ takes ~2 seconds, while initializing a Toolkit from _bmt-lite_ takes ~2e-7 seconds. Because all of _bmt-lite_'s behavior is pre-cached, it does not require the internet at run time.
| | bmt | bmt-lite (-1.8.2) |
|---|---|---|
| size | 127 KB | 295 KB |
| size w/ deps | 36.2 MB | 295 KB |
| init time | 2 sec | 2e-7 sec |
_* all measurements made on a typical laptop on a random Tuesday afternoon_
Note: _bmt-lite_ does not implement all of the functionality of _bmt_. Feature requests (or pull requests?!) are welcome. In addition, the existing functionality may differ slightly; for example, _bmt-lite_'s element-name/id format conversions are known to differ for some special cases.
# Installation
You must install a specific "flavor" of bmt-lite corresponding to the Biolink model version that you want.
Versions 1.7.0 - 2.2.5 are currently available.
For example,
```bash
pip install bmt-lite-1.8.2
```
# Usage
Use bmt-lite almost exactly like you would use bmt itself: https://github.com/biolink/biolink-model-toolkit#usage
# Development
### Building
```bash
pip install -rrequirements-build.txt
./build.sh
```
### Testing
```bash
pip install -rrequirements-test.txt
tox
```
### Publishing
```bash
pip install twine
twine upload dist/*
```
Raw data
{
"_id": null,
"home_page": "https://github.com/patrickkwang/bmt-lite",
"name": "bmt-lite-v3.1.0",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Patrick Wang",
"author_email": "patrick@covar.com",
"download_url": "https://files.pythonhosted.org/packages/c2/55/524ca8da60ce495e9d3b4cd889da2f7f952eaa9f0205185a697a505f14f9/bmt-lite-v3.1.0-2.2.2.tar.gz",
"platform": null,
"description": "# Biolink model toolkit - lite!\n\n_bmt-lite_ is a zero-dependency near-clone of a subset of [_bmt_](https://github.com/biolink/biolink-model-toolkit).\nIt is backed by a pre-populated cache of input/output pairs for many of the more commonly used _bmt_ methods.\n\n_bmt_ alone occupies ~127 KB on disk, but with all of its dependencies it takes up ~36.2 MB. On the other hand, _bmt-lite-1.8.2_ is ~295 KB on disk, of which ~254 KB is the cached data. To initialize a Toolkit from _bmt_ takes ~2 seconds, while initializing a Toolkit from _bmt-lite_ takes ~2e-7 seconds. Because all of _bmt-lite_'s behavior is pre-cached, it does not require the internet at run time.\n\n| | bmt | bmt-lite (-1.8.2) |\n|---|---|---|\n| size | 127 KB | 295 KB |\n| size w/ deps | 36.2 MB | 295 KB |\n| init time | 2 sec | 2e-7 sec |\n\n_* all measurements made on a typical laptop on a random Tuesday afternoon_\n\nNote: _bmt-lite_ does not implement all of the functionality of _bmt_. Feature requests (or pull requests?!) are welcome. In addition, the existing functionality may differ slightly; for example, _bmt-lite_'s element-name/id format conversions are known to differ for some special cases.\n\n# Installation\n\nYou must install a specific \"flavor\" of bmt-lite corresponding to the Biolink model version that you want.\nVersions 1.7.0 - 2.2.5 are currently available.\n\nFor example,\n```bash\npip install bmt-lite-1.8.2\n```\n\n# Usage\n\nUse bmt-lite almost exactly like you would use bmt itself: https://github.com/biolink/biolink-model-toolkit#usage\n\n# Development\n\n### Building\n\n```bash\npip install -rrequirements-build.txt\n./build.sh\n```\n\n### Testing\n\n```bash\npip install -rrequirements-test.txt\ntox\n```\n\n### Publishing\n\n```bash\npip install twine\ntwine upload dist/*\n```\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A zero-dependency near-clone of common bmt capabilities",
"version": "2.2.2",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d8aa6fd11ef134be17495c7235864d8c1992593b756b0ee9a80a513d6734369e",
"md5": "c4a56de541c4f62cbc1b8b22b2dea3de",
"sha256": "7f3b909f5eb47fd2780f23a334c1069bef51efffb99e895997559e9719dd2233"
},
"downloads": -1,
"filename": "bmt_lite_v3.1.0-2.2.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c4a56de541c4f62cbc1b8b22b2dea3de",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 103027,
"upload_time": "2022-11-10T13:41:46",
"upload_time_iso_8601": "2022-11-10T13:41:46.150774Z",
"url": "https://files.pythonhosted.org/packages/d8/aa/6fd11ef134be17495c7235864d8c1992593b756b0ee9a80a513d6734369e/bmt_lite_v3.1.0-2.2.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c255524ca8da60ce495e9d3b4cd889da2f7f952eaa9f0205185a697a505f14f9",
"md5": "d2ef4ccc0992a730ba01f07fb697e14a",
"sha256": "4fd956ccec6d664e1f65ed5ab688f59292cfa98a41b92b7ea785cf69343f811e"
},
"downloads": -1,
"filename": "bmt-lite-v3.1.0-2.2.2.tar.gz",
"has_sig": false,
"md5_digest": "d2ef4ccc0992a730ba01f07fb697e14a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 7625,
"upload_time": "2022-11-10T13:41:51",
"upload_time_iso_8601": "2022-11-10T13:41:51.977565Z",
"url": "https://files.pythonhosted.org/packages/c2/55/524ca8da60ce495e9d3b4cd889da2f7f952eaa9f0205185a697a505f14f9/bmt-lite-v3.1.0-2.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-11-10 13:41:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "patrickkwang",
"github_project": "bmt-lite",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "bmt-lite-v3.1.0"
}