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

Uploaded Source

Built Distributions

fastobo-0.1.0.dev10-cp37-cp37m-manylinux1_x86_64.whl (807.6 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev10-cp37-cp37m-macosx_10_13_x86_64.whl (734.6 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev10-cp36-cp36m-manylinux1_x86_64.whl (807.6 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev10-cp36-cp36m-macosx_10_13_x86_64.whl (733.9 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.1.0.dev10-cp35-cp35m-manylinux1_x86_64.whl (807.6 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev10.tar.gz
  • Upload date:
  • Size: 214.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.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.dev10.tar.gz
Algorithm Hash digest
SHA256 b1283ea4d1ad3b456e0631bf0b5eb32458ce1079a672e47a93b5a076794e8ecd
MD5 a4f933d658278576df0cb91393718966
BLAKE2b-256 47259f22a89d25ce8a356409c5d22a20fb7e97b97d97137cb7ada9c42bffb027

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev10-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 807.6 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.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.dev10-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ccad041bcabe961a474e28e8c2a758234d1eeca0e3287bb149e835b1cafda426
MD5 bdf65264fcca969d464842e48b8a31c6
BLAKE2b-256 eae97d7c38808125967d4f05954a3008bc8d7b5550b08a78f1615b6940b3492d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev10-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 734.6 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.21.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.dev10-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 8728f4375f277495d31c8a1c0becea65487f61785ef26ea08f5812af97109465
MD5 21750af372bc3d56c775488324c8daa4
BLAKE2b-256 680f313c48f2898a1809e274f29fd45b618edb5e12bdb878bb3a7df18c032603

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev10-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 807.6 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.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.dev10-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 905bacb652bd3bf6bdf1d78829409f02b5b135df7da14ea760756acadc80ca2e
MD5 420960c9698e03ffea5221e9a2a1b997
BLAKE2b-256 f8518bcd0a5ecaa2288cb89d285a1e1bd490236db19b4b60af94c492503e235e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev10-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 733.9 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.21.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.dev10-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 75f5a016ef3946c23b5c4cf52088ff3be8f07da2c0ed94fdcb34f4b4bf7c8e42
MD5 d95a5940e4badf2d4440421aa5dc54da
BLAKE2b-256 f8a474b886283ed07f8208c50d9c329acc308ee73c53444ad4ee11108db6c446

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev10-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 807.6 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.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.dev10-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 baf730d205e8aa1cdc7162118d5c5d4b4c6992355d53d58897790b4bb3dcb41e
MD5 ee9ae8af57e9d77754415a7fe4cffa8f
BLAKE2b-256 5f790f541c1731a58cd37caf53f712c2802c2a6e9521c3f69b3eb4917e5a7a71

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