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 AppVeyor 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.5.1.tar.gz (243.2 kB view details)

Uploaded Source

Built Distributions

fastobo-0.5.1-pp371-pypy3_71-macosx_10_13_x86_64.whl (1.3 MB view details)

Uploaded PyPy macOS 10.13+ x86-64

fastobo-0.5.1-cp37-cp37m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.5.1-cp36-cp36m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m

fastobo-0.5.1-cp36-cp36m-macosx_10_13_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.5.1-cp35-cp35m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.5.1.tar.gz
  • Upload date:
  • Size: 243.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.6

File hashes

Hashes for fastobo-0.5.1.tar.gz
Algorithm Hash digest
SHA256 d5abfd049e45f837bed3e99cd70bf604762d73a79fdc7950c4e6b81cf15dfb18
MD5 b16051540bc93169545a296740326201
BLAKE2b-256 48e1dec3da2dc7d835c2e04cc0dd0bc0be63509b5e419eae532c9f712ceba76f

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.1-pp371-pypy3_71-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.5.1-pp371-pypy3_71-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: PyPy
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 PyPy/7.1.1beta

File hashes

Hashes for fastobo-0.5.1-pp371-pypy3_71-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 227297b82c36be1d66babb31a4c6db9c3c40ca591d539721b16d04ddea507af2
MD5 4b8a9f2fecf3df8cc174c7079898ab12
BLAKE2b-256 b6c6c5cfa7895ae53481adc24201e8f7af5d297db0f17159781b18e14fca105b

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.1-pp371-pypy3_71-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: fastobo-0.5.1-pp371-pypy3_71-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: PyPy, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 PyPy/7.1.1beta

File hashes

Hashes for fastobo-0.5.1-pp371-pypy3_71-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 cde52afbab0d7e690385db3511b68eef847376b42b1520d815e973e870211eb2
MD5 c7888f614672472eacccc7f0eebcb3df
BLAKE2b-256 f74718491a5076052a0ccb35446e8bfb0ca01a2cad746baea307e53477703a0f

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.5.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fastobo-0.5.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 36ed4a74b0c6c0fcbf42f591c5c141c388301a432625c7d613435573ed13d253
MD5 7f97e00117a7fd0bb6479adcda437e77
BLAKE2b-256 5a742191aba37a8bcaa25fb56622bdef3343cc228bbb3fb6ded047c0d935c943

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.1-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.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1

File hashes

Hashes for fastobo-0.5.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9f13fa28d78a6877107cc1b8d560d2367e71e3d838cb8aa3e513fdbc26aed2b5
MD5 61d44cb98aa96ee45690949c9cd1ace5
BLAKE2b-256 74a75f376dda1bec476f889aee302ee7303340d3b44bc185f842881cef4f0001

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.1-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.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fastobo-0.5.1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c770cb45409021fab9459f9f01c5c1fbd3ccf884492db90d4ebc413075784479
MD5 07ba2a574a40a6e21dd77c148da2ec7d
BLAKE2b-256 2b7b062761588e54ce3166819edf6001d6f0ad1da342f7ef16fabac9e6e6476e

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.5.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8

File hashes

Hashes for fastobo-0.5.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 e657dc049ec1d4fe34b30b9dc270ac96e4dc53f78682dfd1023b650189372837
MD5 c530bf5f6bb93bdda9d85d9773410d10
BLAKE2b-256 b1dfa01b687f6bfb657aa1fe6002da64599e4696096dc8ab1cf1d51478f6c16e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.1-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.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for fastobo-0.5.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b31c3177bcb7f400ced50e986bcec33f37a69b8015d8de248a30fdd49f3fa8b2
MD5 12430cd940f826c422423e37b6de94d6
BLAKE2b-256 94dc20d70424dd54a5065e9d56416509f9d3694e341a6746b7fb6a1eaaf3db8d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.1-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.5

File hashes

Hashes for fastobo-0.5.1-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c9c79de4278f2f8806651a1c7476ce4b2b5f4d4007362ecc7485fc90d43b228c
MD5 58bec879381b83cc0eda6ad09bd50c07
BLAKE2b-256 58003434f2f55ac6bca996ce0562bbb28b9155aefa1db92c7d527434f0eba059

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.1-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.5.1-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.4

File hashes

Hashes for fastobo-0.5.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 7f4e4ff7a292b424bb3a4df2fd253ff5e81331eea50797a08c2904abe1f5db51
MD5 66f74dcaaa2bb6aaa75e27feff7557df
BLAKE2b-256 3001d900394d6753948a7c28fffaa2a5f160f4d1708e5464b3776096c7179fbf

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.1-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.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.6

File hashes

Hashes for fastobo-0.5.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 29a7157f8af2676d53a217fe0342d612e4f1477a60fc03cd7315327b470f89ba
MD5 08ec0c820fd2a3b463d8c0421ee63f28
BLAKE2b-256 69e7f8de2073abec80d68b168c36e3795579db8d54c83ad37fdb1358b8843d1b

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