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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m macOS 10.13+ x86-64

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

Uploaded CPython 3.6m

fastobo-0.3.2-cp36-cp36m-macosx_10_13_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

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

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.3.2.tar.gz
  • Upload date:
  • Size: 239.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.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.3.2.tar.gz
Algorithm Hash digest
SHA256 16d938359a9778e0de28e54959b65a13900fe5b83d2ee5dc3504d8d96ce0a06c
MD5 0c7a55df6dd47ea6d9f2b0ff117ceab3
BLAKE2b-256 c059e418895a95a89f4948e67692689962133ac74d308c32cd896b8df530a364

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.3.2-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.13.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.3.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5b250e8adf0f0cb90443f3282075138122df4a0dada35d1e43ddfd73e076443a
MD5 905e76e711d91409fb68e068d9ae47f0
BLAKE2b-256 51d9f8776086db6380522ec981bca5d3a2cc0bc2222453038bfa0e4f2652e20a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.3.2-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.13.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.3.2-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 0ab662ed390a7984b504cf3f90add753b7e378feae96cb112a2856b3e36ef0cc
MD5 e4b66c1b6c79e3273d8774f205705647
BLAKE2b-256 1417caaa356f2599e7c3e68d0ee93d2e8b3ccfa0da74ef11ca01938ac6825051

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.3.2-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.13.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.3.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0e2db93a27b4b773af4725a46a02092c0b843d98894bccebc42d2efe9fa71be4
MD5 cca371cff97883519181ac459a2993c9
BLAKE2b-256 8169ed14977dc76a42b7e757d851737bfa1aa18edb85a559619fbbc0c477e88b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.3.2-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.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.3.2-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 07f123380af649f6e2d6f529429894cfb6b6ae953e9b4b5c33ffda71621100ab
MD5 a20f33defa7cc4e790514373651361a6
BLAKE2b-256 6f09116ea730ed3cac45f0b671544f128a6679fcef18f8c84c7f824e2811f14e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.3.2-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.13.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.3.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 559bbf521487c5b7504cc8475276609441c628542d8ba099553fc4b72f9dcd73
MD5 8b86c1842ddc2ffb8a539f896f2cc571
BLAKE2b-256 91b6961f88f8453ff03685205aef4b333efdb38844dfcf84c4d4ca8ff5c0b442

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