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

Uploaded Source

Built Distributions

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

Uploaded PyPy macOS 10.13+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m macOS 10.13+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m macOS 10.13+ x86-64

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

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.4.2.tar.gz
Algorithm Hash digest
SHA256 8f3ab1723797adf06a791fb8fe02bab9deb1dddd5ec91e9993d8db07ed01042b
MD5 022d6ab3bbc4be52ed663f9038bddf28
BLAKE2b-256 392ca824e96aa9f5e6efc9d1e7d463a9beb31d3627c2d67ec4c579717f9f4dcc

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.4.2-pp371-pypy3_71-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 69904ea66d54ae82ea4d2c4d512a9ff8d599626c1fd9e05def49bc05f6cbf76e
MD5 527eff0c913dae064c54326295074919
BLAKE2b-256 46f0b28bd246f1bb9a93e59de47f2b68b64217575c200103f676df166596b602

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.4.2-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.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 PyPy/7.1.1beta

File hashes

Hashes for fastobo-0.4.2-pp371-pypy3_71-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f80cb47efe225ad7bc20ef2464e747fa8d079bd59829cea5c57081b729ebabfe
MD5 31f6c431aec031f7916638d9e17f0de2
BLAKE2b-256 78e5ed4ccfe29545eb61fccbcc35cdb7e4a9c1a22a81eecd24e27b6e2ec4e0ca

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.4.2-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.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for fastobo-0.4.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a0056767c9583cf332563411b00a94b8a3991c69b5fc0618618e53af2616c611
MD5 542e8964173fe4097c4519001455b9bd
BLAKE2b-256 94927bb8fa1e4b14ca409f573b1a8afb8db9ec62013cb47f0ac19ef2b56011df

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.4.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 44f779c8556c98bc29fe27cccfce14bc24d06f522c7cefcbbcb493f504331ad3
MD5 fdb719ada025d41580c02eab7ab7b294
BLAKE2b-256 f138b2160055ea3f7c6782ac575b61005f45c92d343daefbc9978e9d30836d01

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.4.2-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 94ac933a90fe686d41f1be95d5706230c356046027aeeb83b2b1f34dfefba242
MD5 8818c5493ade15ca6e8d94f39fa06a66
BLAKE2b-256 96f1591c7e9c190a2c711687872cd103b8b13e38713414a682192ecceba40130

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.4.2-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.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

File hashes

Hashes for fastobo-0.4.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 8d750bbf5700d5ea98212f7d6af29729c8215aa6e0e8770524b2ecb26713ba2c
MD5 d00dd1adc0fee34226ab14a537e4a67e
BLAKE2b-256 602e9e369dbbf3b5e22de2656ca48529980658921520bc64b64e9169800c72f0

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.4.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7cfa846056e25734737032957f0869445fceca22df74582a6ae3b22a927d75cb
MD5 275b12da54b44c85573ab7788beea0ed
BLAKE2b-256 a76d8e307a3d5cdea2fc9a6c6a53d16ec427949f52aff7e84a9dbe74f70ba39c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.4.2-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.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.5

File hashes

Hashes for fastobo-0.4.2-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 9daed64953489d120238ac849bf42bd417db801ee5dff52e1f55c667f8f449ea
MD5 d35dd3d728bad77ce4c6ca8f2294bc68
BLAKE2b-256 8792a88478c3b46b849d85a576c7a05d51857d391d60712c41eff71f6b7573e3

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.4.2-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.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.5.4

File hashes

Hashes for fastobo-0.4.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 7a3acf93817cbdb7d89b1a67224a3e761dd676d5f7b437b245b162176d6beec3
MD5 f68eb93133b5dc11eda29591f0683e13
BLAKE2b-256 7e48d58de225f36727ce1823f41ea171c31141560763a834ccede6d07569c157

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.4.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 31f15da3e7c629e41b083e3ecbc35123dcc8c644b391155135a774491e2ec0d2
MD5 a01770dc836121f6ea1524e26731078e
BLAKE2b-256 385fe871c4a73caa6de21f4cc4790d29769136999227648bf7ff0e2898066233

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