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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fastobo-0.1.0.dev32-cp37-cp37m-manylinux1_x86_64.whl (896.8 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev32-cp37-cp37m-macosx_10_13_x86_64.whl (774.0 kB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

fastobo-0.1.0.dev32-cp36-cp36m-manylinux1_x86_64.whl (896.9 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev32-cp36-cp36m-macosx_10_13_x86_64.whl (773.4 kB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

fastobo-0.1.0.dev32-cp35-cp35m-manylinux1_x86_64.whl (897.0 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev32.tar.gz
  • Upload date:
  • Size: 227.3 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.dev32.tar.gz
Algorithm Hash digest
SHA256 339835e785ea190a7094a2befda41c531ed8786fd3e01f0e8661adbfba570c8a
MD5 286542e421c66642aaa5ef0fa935c41e
BLAKE2b-256 c158687c46bfb38706fb88dfe19e2bf3f6c9d6db311b36887dc569d5278c44fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev32-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 896.8 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.dev32-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 446d79774fe532ecd2cee47555db0384728fee826c4cd1b4c014af0264629287
MD5 d7d0cb13bc97c6be89326be1c673f44a
BLAKE2b-256 d36e9373f838ed132557cc6a75a30ad1c0b2b79623f9f787dd0b57b89e3a8801

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev32-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 774.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.dev32-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 cdf50c93d62e1d789063db6ebc3696e100beaf03bf256cf595cef8d83958264e
MD5 0baef2c976a5076b3a7185b13b8b44fb
BLAKE2b-256 48a3d3ec24663596e82f31fef0a1afa961450dff1e022c4a0be1d40286350fe5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev32-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 896.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.dev32-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9602ae3e61c539592318bbbb8bfc64b23d95ad01cd750fac96d09e924eb7cb0d
MD5 ac2c0b85c0d012c544e9e9852b89eab3
BLAKE2b-256 ca3cd0d7096e6ba2f47e6e0889128027d501f9e5698c9d5ec6f053340794b369

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev32-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 773.4 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.dev32-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 23cfc848c89755df5135224b0b37292b5f454880feeb8eed72ee5d5b13b7f78b
MD5 8bf99b512f1343ca794af5232b0e2d31
BLAKE2b-256 d1fdbc1c95a8437f9205322100783a85f7186bdd2176eef10a20a7588fca7fa9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev32-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 897.0 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.dev32-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0e86df2517d94ea808879b67092ad88e8d5771770d09665a10111aeac82c643b
MD5 9fa831ffa71db5552f4143137bc7a41c
BLAKE2b-256 df0028fcbebef72a8e370e94a1e31db146ebac927bc2ea4deb5185e5948137ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page