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

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 is currently being 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.

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.1.0.dev25.tar.gz (224.4 kB view details)

Uploaded Source

Built Distributions

fastobo-0.1.0.dev25-cp37-cp37m-manylinux1_x86_64.whl (822.7 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev25-cp37-cp37m-macosx_10_13_x86_64.whl (771.3 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev25-cp36-cp36m-manylinux1_x86_64.whl (823.0 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev25-cp36-cp36m-macosx_10_13_x86_64.whl (770.8 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.1.0.dev25-cp35-cp35m-manylinux1_x86_64.whl (823.1 kB view details)

Uploaded CPython 3.5m

File details

Details for the file fastobo-0.1.0.dev25.tar.gz.

File metadata

  • Download URL: fastobo-0.1.0.dev25.tar.gz
  • Upload date:
  • Size: 224.4 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.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for fastobo-0.1.0.dev25.tar.gz
Algorithm Hash digest
SHA256 c08a44a3c15e0024cf46fdac5510be433155b72bfaede97bfe4f22c88a45c992
MD5 2e740c2c74addbf04a0443c708c98846
BLAKE2b-256 12d3e9e351d64e4ab5dcba2e14642bd907b11255e079c270ccdf8f2843e9fcc6

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.1.0.dev25-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.1.0.dev25-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 822.7 kB
  • 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.32.1 CPython/3.7.1

File hashes

Hashes for fastobo-0.1.0.dev25-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cf0727e550e95d2c30e2c72af22817e334b677c790f1ef607aa75e016faff1c6
MD5 efb497bd7c98f58354c65318c3565058
BLAKE2b-256 a709fadecd03b7918048126091d87d0a526d87cc43738a9250424f45250cc25f

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.1.0.dev25-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: fastobo-0.1.0.dev25-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 771.3 kB
  • 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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for fastobo-0.1.0.dev25-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b7b55688b2b6b40d110577d4a498fbdc72b86b53e2c1b88a8028bfe124843cd5
MD5 a061505f7acc42d469307270295ca0ae
BLAKE2b-256 4162e36d793ef5f4fa4ade693117eb767db25370f9b72a8d86bd83bc88b5afcb

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.1.0.dev25-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.1.0.dev25-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 823.0 kB
  • 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.32.1 CPython/3.6.7

File hashes

Hashes for fastobo-0.1.0.dev25-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3ede6e7a810afa1395880680876e96d5ca9eb49c5685dbeda1bae3f447d0f1d0
MD5 af1b782d8136466be5110ed80c57424e
BLAKE2b-256 9eb05fe1c19c2290512c5b97af41c60e323f3460016b363c1982adf4c88d732e

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.1.0.dev25-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: fastobo-0.1.0.dev25-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 770.8 kB
  • 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.32.1 CPython/3.6.5

File hashes

Hashes for fastobo-0.1.0.dev25-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b98bc419c7858d25b5729868e854369c07a180206bc19274966a78d36b357918
MD5 1304d329d3867285b29813d185784b67
BLAKE2b-256 81ae596032e02436003defdd6482c36f510b5b1a0f4d0354ffd09a9ce346e825

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.1.0.dev25-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.1.0.dev25-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 823.1 kB
  • 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.32.1 CPython/3.5.6

File hashes

Hashes for fastobo-0.1.0.dev25-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 897168bf066adeffbed6637673a4abe20132f1f1631040808029418249af7af9
MD5 fce28953a02e78ac1da011569ed090d2
BLAKE2b-256 fd44dd8454068065c480011d8cae87c020aada006ff369d39c9156938455e99c

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