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 Bioconda Python Versions PyPI - Implementation Changelog Documentation GitHub issues DOI Downloads

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)

Release history Release notifications

Download files

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

Files for fastobo, version 0.7.2
Filename, size File type Python version Upload date Hashes
Filename, size fastobo-0.7.2-cp35-cp35m-macosx_10_13_x86_64.whl (1.4 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp35-cp35m-manylinux1_x86_64.whl (1.6 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp35-cp35m-manylinux2010_x86_64.whl (1.6 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp35-cp35m-win_amd64.whl (1.9 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp36-cp36m-macosx_10_13_x86_64.whl (1.4 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp36-cp36m-manylinux1_x86_64.whl (1.6 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp36-cp36m-manylinux2010_x86_64.whl (1.6 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp36-cp36m-win_amd64.whl (1.9 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp37-cp37m-macosx_10_13_x86_64.whl (1.4 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp37-cp37m-manylinux1_x86_64.whl (1.6 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp37-cp37m-manylinux2010_x86_64.whl (1.6 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp37-cp37m-win_amd64.whl (1.9 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp38-cp38-macosx_10_13_x86_64.whl (1.4 MB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp38-cp38-manylinux1_x86_64.whl (1.6 MB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp38-cp38-manylinux2010_x86_64.whl (1.6 MB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-cp38-cp38-win_amd64.whl (1.9 MB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-pp36-pypy36_pp73-macosx_10_13_x86_64.whl (1.4 MB) File type Wheel Python version pp36 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-pp371-pypy3_71-manylinux1_x86_64.whl (1.6 MB) File type Wheel Python version pp371 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-pp371-pypy3_71-manylinux2010_x86_64.whl (1.6 MB) File type Wheel Python version pp371 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-pp372-pypy3_72-manylinux1_x86_64.whl (1.6 MB) File type Wheel Python version pp372 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-pp372-pypy3_72-manylinux2010_x86_64.whl (1.6 MB) File type Wheel Python version pp372 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-pp373-pypy36_pp73-manylinux1_x86_64.whl (1.6 MB) File type Wheel Python version pp373 Upload date Hashes View hashes
Filename, size fastobo-0.7.2-pp373-pypy36_pp73-manylinux2010_x86_64.whl (1.6 MB) File type Wheel Python version pp373 Upload date Hashes View hashes
Filename, size fastobo-0.7.2.tar.gz (249.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page