Faultless AST for Open Biomedical Ontologies in Python.
Project description
fastobo-py
Faultless AST for Open Biomedical Ontologies in Python.
Overview
fastobo
is a Rust library implementing a
reliable parser for the OBO file format 1.4. This extension module exports
idiomatic Python bindings that can be used to load, edit and serialize ontologies
in the OBO format.
Installation
If your platform has no pre-built binaries available, you will need to have the Rust
compiler installed. See the documentation on rust-lang.org
to learn how to install Rust on your machine.
Installation is then supported through pip
:
$ pip install fastobo --user
Usage
An OboDoc
instance can be instantiated from a path or from a binary file handle
using the fastobo.load
function, or from a string using the fastobo.loads
function.
import fastobo
obodoc = fastobo.load("../data/ms.obo")
Loading from a gzip
file is supported:
import fastobo
import gzip
gzdoc = fastobo.load(gzip.open("../data/cl.obo.gz"))
Comments can be parsed but neither edited nor serialized, because of a limitation
with pyo3
(the library used to generate the Python bindings). They are supported
in the Rust version of fastobo
.
Feedback
Found a bug ? Have an enhancement request ? Head over to the GitHub issue tracker of the project if you need to report or ask something. If you are filling in on a bug, please include as much information as you can about the issue, and try to recreate the same bug in a simple, easily reproducible situation.
About
This project was developed by Martin Larralde as part of a Master's Degree internship in the BBOP team of the Lawrence Berkeley National Laboratory, under the supervision of Chris Mungall. Cite this project as:
Larralde M. Developing Python and Rust libraries to improve the ontology ecosystem [version 1; not peer reviewed]. F1000Research 2019, 8(ISCB Comm J):1500 (poster) (https://doi.org/10.7490/f1000research.1117405.1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file fastobo-0.9.0.tar.gz
.
File metadata
- Download URL: fastobo-0.9.0.tar.gz
- Upload date:
- Size: 250.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94187288d97ca78cf68fb1dfe167cc7984ec02d12b5d009b81a488700d10687e |
|
MD5 | 99d73548759d4d0387b19a368fcac08f |
|
BLAKE2b-256 | 0a86e0ef3e6d944320586e8a0c2ac0db622dc14d909a5cfa8d93815c9db9966e |
Provenance
File details
Details for the file fastobo-0.9.0-pp36-pypy36_pp73-manylinux2010_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-pp36-pypy36_pp73-manylinux2010_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: PyPy, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.0 PyPy/7.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a539729513a209d280ad9046638635d3a17f1bd5a78e2cc654845eb04c85e600 |
|
MD5 | bfcda830a206483cef0c4343cd52cef9 |
|
BLAKE2b-256 | 43007c3f2e70ea2941da5938d4f91ec8142d2817edab94f82cd15fdab5d69381 |
Provenance
File details
Details for the file fastobo-0.9.0-pp36-pypy36_pp73-manylinux1_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-pp36-pypy36_pp73-manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: PyPy
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.0 PyPy/7.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e30b7861a32b3d6959a3612d9b5d5314ea22250e6662cf6500d75b6a33d777bd |
|
MD5 | 71119cd4845cb9f9d051db79b8d841f4 |
|
BLAKE2b-256 | 0a7aabe48a6ad37ce9b77b7d05633289a30096198f1fdf8d2678cab1fc0c04d3 |
Provenance
File details
Details for the file fastobo-0.9.0-pp36-pypy3_72-manylinux2010_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-pp36-pypy3_72-manylinux2010_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: PyPy, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.0 PyPy/7.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5496d93e113eaac87617fc63a7c7b90a48bfff681d56dfc665bcf3841cc457d |
|
MD5 | 6cae698d2de2a140c66d21b035f029b8 |
|
BLAKE2b-256 | 3a666e46bdaa621cfefd42b46ca3f0c800db02e0d0520230e0af3ddc585bfbe4 |
Provenance
File details
Details for the file fastobo-0.9.0-pp36-pypy3_72-manylinux1_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-pp36-pypy3_72-manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: PyPy
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.0 PyPy/7.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8302e943fc4d20c39f609f1dfdd959d31b0b2c88295368468e92512e80aaa12c |
|
MD5 | 80117bb2089ff72ba5b67db83ac09311 |
|
BLAKE2b-256 | 19144b0a61eaa47309ce13cf5ea7f64902582d3cce334ddd76e2234c641488f4 |
Provenance
File details
Details for the file fastobo-0.9.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee61450683c6683d9066f4e7ecc7537b751bd3d27179260df3efd1b0cfd81c5e |
|
MD5 | f0265b54610fa4e50654e8c325a4bcdb |
|
BLAKE2b-256 | 92222658f3212a218b696a87b6f8831e37008936c6ef5a06b4d08312d74a8313 |
Provenance
File details
Details for the file fastobo-0.9.0-cp38-cp38-manylinux2010_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp38-cp38-manylinux2010_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20667691b7b090b5485c2f85b138076b790b46659707a7253346e205d656a083 |
|
MD5 | 8347bb819ff5231278d28e3327d2ea14 |
|
BLAKE2b-256 | 601f734efb6f2eb7ed23aed5939dd14cf285c92a1d2ddd5c19038d13cac94dfe |
Provenance
File details
Details for the file fastobo-0.9.0-cp38-cp38-manylinux1_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b57256bea37c5b18cac4b224d22cabcd954d24148d8b0cb638755fb0b4d4edea |
|
MD5 | 355f8bc9d92973d380d1ab2c4997cb25 |
|
BLAKE2b-256 | 839646189927ca556f3823da6e59eb615c9e9d560e47b13b357c6057e55ffdbf |
Provenance
File details
Details for the file fastobo-0.9.0-cp38-cp38-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp38-cp38-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.8, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46cedd869be8bc5572872144b71c5d3ad4c10b64ead15b3c3b6d8b72385f9ebf |
|
MD5 | 6ec72713aae2cf258dff397580f7b222 |
|
BLAKE2b-256 | 630d5cf96dc24a8a13607c5cc1236c927fd7d903ba3c95ae1795915c0e89bc13 |
Provenance
File details
Details for the file fastobo-0.9.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9c322636e095ddada3815fb99636cdbc89891dd1281640a09c7b325f27ee7e9 |
|
MD5 | 1bc2baac8f83a8f81310ac8e08a94cea |
|
BLAKE2b-256 | cfd55b58269023512a42aa490f257a83513cdd018846a8e2cab718e162a01dcc |
Provenance
File details
Details for the file fastobo-0.9.0-cp37-cp37m-manylinux2010_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp37-cp37m-manylinux2010_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81480fcff2024d8e1899e441457d421214b243429fb62bacfaf924066a502f22 |
|
MD5 | eea73dda7c5d0b69f0f66f3da43eb674 |
|
BLAKE2b-256 | 69559eb0b904bb6799354f71f7a9f13d3682a9848adb3b4100388dc6d1bbc47d |
Provenance
File details
Details for the file fastobo-0.9.0-cp37-cp37m-manylinux1_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b22cefdcaf4a577cc0f961536add211d50997ee6f781ef46a5b2998685a30a74 |
|
MD5 | 7566c08534f790ac87fd75ac4dde0e0d |
|
BLAKE2b-256 | e99f00ebe8bd62a9c20a0228229b38584e76f3e46a277cf23877af7ac2ca4d85 |
Provenance
File details
Details for the file fastobo-0.9.0-cp37-cp37m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp37-cp37m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.7m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d1e476c3fc5cc4c7427bc21c9e9046fe902b4115a30c1d87c67db94e0c62591 |
|
MD5 | ae7784828311184f63c12e61aec4aedf |
|
BLAKE2b-256 | 4bdbeff3c88900f1b01fe9d947feff4ad369157e2c5cf164c52b0077f73e9799 |
Provenance
File details
Details for the file fastobo-0.9.0-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c70a2282c4f1258bee65c6b80ce6084b2a048e228be69da3521568123261aa2f |
|
MD5 | c81a099e12976dcb8eefed83a761663e |
|
BLAKE2b-256 | ccbca0110eb0a9aa43761ed8a3639fe0b0dd4d0bdf64415525dda623c0485c50 |
Provenance
File details
Details for the file fastobo-0.9.0-cp36-cp36m-manylinux2010_x86_64.manylinux1_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp36-cp36m-manylinux2010_x86_64.manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb4e9df7f9d165fe534c7a1fd78141aa5c7799eb5a46717d009b14c6639986d5 |
|
MD5 | 3cca0c89584ed918b7fee4e654bf9632 |
|
BLAKE2b-256 | e7c4aca6a6e7c969555905244177a39573c086aa1a5dbe25e987788bee584544 |
Provenance
File details
Details for the file fastobo-0.9.0-cp36-cp36m-manylinux1_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc2796c39e0915f76b4f58d37077a36accd9ddc71516b83d16b147555a71894 |
|
MD5 | d4b15bc29ee9ac429472d9b52ed7052b |
|
BLAKE2b-256 | babc027c9df5dfd068cfc1133c3c83ed601d132df3680d9db9b85619f7fbc384 |
Provenance
File details
Details for the file fastobo-0.9.0-cp36-cp36m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp36-cp36m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.6m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 915f0433ac31d280a49f6c5b33698e46d7b21dd5332754d95fdf064ab23b9aac |
|
MD5 | b630b95948a9810b710dc3d8847340fd |
|
BLAKE2b-256 | c1d92bafd483f3d8007f04621259eedc20691e05e3a4d9d5062169e057766815 |
Provenance
File details
Details for the file fastobo-0.9.0-cp35-cp35m-win_amd64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp35-cp35m-win_amd64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.5m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.5.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92ceff6db67c72fcce871333ac771793d84d357b8183d95f65d129b92c2fd124 |
|
MD5 | 4d90347a8c1290f14e3d2963658b33ba |
|
BLAKE2b-256 | 0d02b30f05cc87778c7c94f243a2692af69478b39fb55a33dbf0f0a79f2e8c6d |
Provenance
File details
Details for the file fastobo-0.9.0-cp35-cp35m-manylinux1_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.5.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b73ed8c8df2201d6e6a2de81ba8a80e6659b357dc3a0a8602a969cc7613c470c |
|
MD5 | cc54f30395092a6226f94b4c59fc91cb |
|
BLAKE2b-256 | 8cf5f96e3f18eb206f9f780a4a3909d708f03b50b10778bc6405a3f96423dde1 |
Provenance
File details
Details for the file fastobo-0.9.0-cp35-cp35m-manylinux1_x86_64.manylinux2010_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp35-cp35m-manylinux1_x86_64.manylinux2010_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.5.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bc56e2b0cb0732602bf3dbd875b1b5de918246ecf0fd717a786ce292ecfb306 |
|
MD5 | df0564663db7d70ed3aad7dc7b7ec3b4 |
|
BLAKE2b-256 | c3fb9009909e671ea208b905314dc226816d128a097ae8b725cfa10533e5a94e |
Provenance
File details
Details for the file fastobo-0.9.0-cp35-cp35m-macosx_10_13_x86_64.whl
.
File metadata
- Download URL: fastobo-0.9.0-cp35-cp35m-macosx_10_13_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.5m, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d3181a23824e39f3559231e95dceef291bf94241761cf5983442838753063c7 |
|
MD5 | ef6e49187d91f9cfc614363465865c97 |
|
BLAKE2b-256 | 3e5f7624f82570e18d37ef0506508999d3feaa7d4a57656e5a21a77d9a739c31 |