Skip to main content

Faultless AST for Open Biomedical Ontologies in Python.

Project description

fastobo-py Star me

Faultless AST for Open Biomedical Ontologies in Python.

TravisCI AppVeyor License Source PyPI Wheel Python Versions PyPI - Implementation Changelog Documentation GitHub issues DOI

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 file-handle 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

This version

0.5.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastobo-0.5.4.tar.gz (247.2 kB view details)

Uploaded Source

Built Distributions

fastobo-0.5.4-pp371-pypy3_71-macosx_10_13_x86_64.whl (1.3 MB view details)

Uploaded PyPy macOS 10.13+ x86-64

fastobo-0.5.4-cp37-cp37m-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.7m Windows x86-64

fastobo-0.5.4-cp37-cp37m-manylinux1_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7m

fastobo-0.5.4-cp37-cp37m-macosx_10_13_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.5.4-cp36-cp36m-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.6m Windows x86-64

fastobo-0.5.4-cp36-cp36m-manylinux1_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.6m

fastobo-0.5.4-cp36-cp36m-macosx_10_13_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.5.4-cp35-cp35m-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.5m Windows x86-64

fastobo-0.5.4-cp35-cp35m-manylinux1_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.5m

File details

Details for the file fastobo-0.5.4.tar.gz.

File metadata

  • Download URL: fastobo-0.5.4.tar.gz
  • Upload date:
  • Size: 247.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for fastobo-0.5.4.tar.gz
Algorithm Hash digest
SHA256 424208fe45f179790ad5fd46fbbfad44c651f079671f8413f84fdeabd529b0a3
MD5 69a1bde3c1c6a22e9b3607e28c31761c
BLAKE2b-256 120c0fa893c4fc8b823e42f0eba9fcdd4921f8fd07d50874899daeeeaeaba6df

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.4-pp371-pypy3_71-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.5.4-pp371-pypy3_71-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: PyPy
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 PyPy/7.1.1beta

File hashes

Hashes for fastobo-0.5.4-pp371-pypy3_71-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a1ae9bc097ed7780db30a7a426ec43af84e9061fe7111f0a227c8e77c881e3c5
MD5 cc6c7009689880368908bf9b98b0dc78
BLAKE2b-256 f4698d111c6c0cdb63b5ba27e70d78d38ec92e0fbbcfc27ef595d1055a18a937

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.4-pp371-pypy3_71-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: fastobo-0.5.4-pp371-pypy3_71-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: PyPy, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 PyPy/7.1.1beta

File hashes

Hashes for fastobo-0.5.4-pp371-pypy3_71-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f67c57d265654e861b657b2e8a5ff7b5d7feae47364a82aa62765a88da397f64
MD5 14c60b7257b7f77ac5ad2a55c3d9fe5e
BLAKE2b-256 a7551d3ea2a787429353f2c84b12814e00494d503b00b5d8b2e5fbbca5fa8b5d

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.4-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.5.4-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fastobo-0.5.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 c760ad813d024a38d78ccf0d5fcff5a19c654a7f8707ff83b98f025730af8200
MD5 e0092eded806cf82df7ef95cb883cae1
BLAKE2b-256 390614b98c192395639491e634ecb26837168cbb2bb62ca5a3bd1346d1c9cd35

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.4-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.5.4-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1

File hashes

Hashes for fastobo-0.5.4-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e13eb883c5cff5f1d492c880b95c9de3b95c9871a1e59e8677fb1de043d07634
MD5 f45afb84050399c0b722a373e806467b
BLAKE2b-256 5734e16e45df8f45a2a6dc00d6e145e17ab8e32c8c0a750ca0b76b28cd9fe802

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.4-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: fastobo-0.5.4-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fastobo-0.5.4-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2ecfd64aa41d68715199f862eb9021269938fdd81c01d1017bd19024d25b4b05
MD5 d32c9d5e0c083a9a4a2a71a139fa9ee7
BLAKE2b-256 62119dcbe68435d00acef8a8a4075a72ea210f19648203ffc3aa4e72cba298d7

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.4-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.5.4-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for fastobo-0.5.4-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 717089ee3751f5826d58fba5b9e2fdc17a2e12e011046e9cb6744f381a93a44a
MD5 c6cf670d2414066a6d1c69ce7fe94fed
BLAKE2b-256 983ce9b361cfaf43aa0e8da908a24dacebcbcb4dd6442f393ec813974e2012e4

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.4-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.5.4-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for fastobo-0.5.4-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d84babc89ec1c139fd4b6c0e9530c0a082d6887c43ca976ab450233e0076480c
MD5 c1bffe22569142e06468334ba6f76074
BLAKE2b-256 d160d9918a64c2e6ac41ffdc4f48bff4b2efa3ef4a6ec1b1fe38100506355f8a

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.4-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: fastobo-0.5.4-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5

File hashes

Hashes for fastobo-0.5.4-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 4c07deb040ac0d08213b495016bc854bf0ffdf601d32f65b9f705fb7ba9fa567
MD5 9c7d76b1eaa1143421d9c546a6ca7947
BLAKE2b-256 4b96d63598853018580bb557ab232a589d2959feffa5067044a6e95d02da6bc5

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.4-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.5.4-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 1.9 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.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.4

File hashes

Hashes for fastobo-0.5.4-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 d7999f725d9982f4ba53110580d3022075e3ae3e586406b6f2e543244d3e6df1
MD5 4f976dacfc835f84085f301b128aae8b
BLAKE2b-256 d18a14bfbbe5c7149400b523f673eced0dd81bd00fee4552480465c3d36329aa

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.4-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.5.4-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.6

File hashes

Hashes for fastobo-0.5.4-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4a7b7f623cf5ab4d92789122f836b06658793146ef42eff38ace6934a9670196
MD5 31294ec6e1f9ea06a95e5fd0118940b3
BLAKE2b-256 111dcaef6f3cb50ea984d14c4525a4995215276bececd84b7d91096329c524de

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page