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

Uploaded Source

Built Distributions

fastobo-0.1.0.dev53-cp37-cp37m-manylinux1_x86_64.whl (893.7 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev53-cp37-cp37m-macosx_10_13_x86_64.whl (810.0 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev53-cp36-cp36m-manylinux1_x86_64.whl (893.9 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev53-cp36-cp36m-macosx_10_13_x86_64.whl (809.2 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.1.0.dev53-cp35-cp35m-manylinux1_x86_64.whl (894.2 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev53.tar.gz
  • Upload date:
  • Size: 230.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.32.1 CPython/3.5.6

File hashes

Hashes for fastobo-0.1.0.dev53.tar.gz
Algorithm Hash digest
SHA256 9ad114ddad0e79b50b9f9677a08d4f29dc9780d8d403b8aa8273d82627228394
MD5 7cf24d47f8a4cd916cafb7d5df97003b
BLAKE2b-256 d1495ea5eae57bdbbeefa9d9002cb1f407226e665fadaeba5365e548b0d5ffe2

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev53-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 893.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.dev53-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 64a566db821b9c2277c5e40c70c0c2be8799161243a88cf793250832ea329ffa
MD5 1adf438b5cc9cc1dede7330ee4b5bd2e
BLAKE2b-256 97fbcbd45807eb24a92da30478366afb7c3d45ae57b20e09bbb27885d1d17bef

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev53-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 810.0 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.dev53-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ba08150739f242c3f41f059b26e5864292cb256625efd3bbbdae819af8e1e6d2
MD5 dafdc4b335c33d58e27eda1b2a815c38
BLAKE2b-256 43d808eb5233c409788c0eaff06c52746f8a149d31074efba59c722ea872e029

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev53-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 893.9 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.dev53-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 154a47bf0141c70607569cb47497fac9be5f5a939668f2e01b24a4fb2c507a4b
MD5 29c3cb0c7c4bce3a1f2dc1cc363a1f7a
BLAKE2b-256 9ce0b6b89ce8301e1d0dd6c846a77a22a11772e38fdcb558747233fae38078c7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev53-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 809.2 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.dev53-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b5960283c9b5707daff07529df5a8e8e47ad24a16d9d6502d50dd40a09f94959
MD5 a9a038744d3239e0cbc8cf5b4426acf4
BLAKE2b-256 b0bc97d2aaffdbc2f9e4de355732aeb4cc2e560255fef82bc4fa8b425ddf344f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev53-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 894.2 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.dev53-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 63a27d8cc9ffce231a7164e6fee14e26840971c34aa8b35e94720239aebfb645
MD5 533ca686801f4ed480976957517e043f
BLAKE2b-256 96a6111aead813e2d0df830ff48869802d81cca4c604c4e9e84583acb6168124

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