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

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.4.0.tar.gz (240.6 kB view details)

Uploaded Source

Built Distributions

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

Uploaded PyPy macOS 10.13+ x86-64

fastobo-0.4.0-cp37-cp37m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.4.0-cp36-cp36m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.4.0-cp35-cp35m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.4.0.tar.gz
  • Upload date:
  • Size: 240.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.5.6

File hashes

Hashes for fastobo-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a50f568729f06aee0785ba9c5c690e873220f7f0096947f86f66e2c15a68721f
MD5 599622a3a0c9ee68fe35774652873402
BLAKE2b-256 05d80de341db053c30f120c8369ad140d2a96d7db6970297fda9684ab19a2bc0

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.4.0-pp371-pypy3_71-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a9e47b2c5bd72765300ad2385335f265bf59877c6328cee5a8e66718ccefd1e7
MD5 b654fd2de337b98a06bfe48a0b417ca9
BLAKE2b-256 0a6e9b71761284a0dd2ba7f321554d757a7d38c06bae3dfe4e26a0aa58361445

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.4.0-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/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 PyPy/7.1.1beta

File hashes

Hashes for fastobo-0.4.0-pp371-pypy3_71-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 66a8c0d6ed156f400f7839a286c7d5fc75054b319fe3101a09bbd7c163a7346d
MD5 c5ea87bdcc1c257901e4665be6e28e06
BLAKE2b-256 2a0be9549a514b159876886d2778a7bb827eeab4730cc9873f8ecd8643e713b4

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.4.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1a78f7ecdab6b8bb60f24b5b382e55cbfcc261572df2befafdd978f6868efd4c
MD5 8f73c7ce7381563364ea45cf16f1eb0f
BLAKE2b-256 7a5196f6ab3705c0a53f27dec70e8ed24589dcafa1d188ff33a0f3b374490459

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.4.0-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/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for fastobo-0.4.0-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e78164b0aa2b223d6c30a057b8982a56414c0640a3d3fa864a9e7201e794a43b
MD5 3222a8d343f641ce2965ab4278c19075
BLAKE2b-256 4f04719ee5b0e8c09826d41be5e3d6f7dfc06e4a76bbdef0c8d6ac7a543d81e1

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.4.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a943332779acb3a339f3663f9f67664a4b1fd343d3be84e4064b6d8a526ae7c1
MD5 38de32046c2c64ee120f966e1aa87659
BLAKE2b-256 68fa232f246b00426da717a48f0648f65ccbbfb4fcdd7f04297e408e8247a862

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.4.0-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/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.5

File hashes

Hashes for fastobo-0.4.0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 dca002f7e23519a130f1fe41c4dcb317e6eb9e12fb7f3a63fdf595fb4c78961d
MD5 55891c92868c7fe206f8bf54fabd6bb8
BLAKE2b-256 63e0f8a9e5401a2e37117cd97a992252945fa4a04b9564e0d4f28fce33808abf

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.4.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b3d30c6b493c431e7a35cfa2dc4148c243cba5688721518fdacff0f5eb374d1c
MD5 c9436f67b64c5f9d349f61827d844cd0
BLAKE2b-256 32111b9fa89d69c7ea58a572e4b962e7e7206032efd345eb2d037763d4d6239b

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