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 Codecov License Source PyPI Wheel Bioconda Python Versions PyPI - Implementation Changelog Documentation GitHub issues DOI Downloads

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 path 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.8.2.tar.gz (250.2 kB view details)

Uploaded Source

Built Distributions

fastobo-0.8.2-pp36-pypy36_pp73-manylinux1_x86_64.manylinux2010_x86_64.whl (1.8 MB view details)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

fastobo-0.8.2-pp36-pypy3_72-manylinux2010_x86_64.manylinux1_x86_64.whl (1.8 MB view details)

Uploaded PyPy manylinux: glibc 2.12+ x86-64

fastobo-0.8.2-cp38-cp38-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

fastobo-0.8.2-cp38-cp38-manylinux1_x86_64.manylinux2010_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

fastobo-0.8.2-cp38-cp38-macosx_10_13_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8 macOS 10.13+ x86-64

fastobo-0.8.2-cp37-cp37m-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.7m Windows x86-64

fastobo-0.8.2-cp37-cp37m-manylinux2010_x86_64.manylinux1_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

fastobo-0.8.2-cp37-cp37m-macosx_10_13_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.8.2-cp36-cp36m-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.6m Windows x86-64

fastobo-0.8.2-cp36-cp36m-manylinux1_x86_64.manylinux2010_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

fastobo-0.8.2-cp36-cp36m-macosx_10_13_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.8.2-cp35-cp35m-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.5m Windows x86-64

fastobo-0.8.2-cp35-cp35m-manylinux1_x86_64.manylinux2010_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

fastobo-0.8.2-cp35-cp35m-macosx_10_13_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.5m macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: fastobo-0.8.2.tar.gz
  • Upload date:
  • Size: 250.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

File hashes

Hashes for fastobo-0.8.2.tar.gz
Algorithm Hash digest
SHA256 b36dd0182423d7fff406f96aaabb464d179cb1d8ec22a658a2161a88e14d0dac
MD5 27d2e3722b42ed00ddf5cd5dd2446c69
BLAKE2b-256 b9e2f1660d854f930bcd22915b3eb4eef574b00e1f8ec695e10486cafe0ec3fa

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.8.2-pp36-pypy36_pp73-manylinux1_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for fastobo-0.8.2-pp36-pypy36_pp73-manylinux1_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c372ea6b0c9a2f6e10f4431e85cb2cc017281214a4e61363f9e406300525dedc
MD5 1addfcb6d7179a5392413ec2f824934c
BLAKE2b-256 b79b0a2dafde12e04619fdb9dba31b25f3f0e9e3a51828bcbe7857fee3b5aec0

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.8.2-pp36-pypy3_72-manylinux2010_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for fastobo-0.8.2-pp36-pypy3_72-manylinux2010_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3daee28356d870ebb9f6e8fc7bc13044ab3474ce1d3fd55f0e35d057a5352018
MD5 16e070923d2341a6049d1b0094b1eedb
BLAKE2b-256 48c39f18213ead1c859eaffd361c1c9ebf072ece969459a2abc56e9cb109926e

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.8.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.8.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for fastobo-0.8.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 1093dba0ffc7dabb90b921ff40405dca269939e5620864106b1af13c34003582
MD5 1ce6258e71c63155127d42929af91f24
BLAKE2b-256 649da33aacf2fc31d9322f557f97e38f9b17e1ea1034c677881902387236b7af

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.8.2-cp38-cp38-manylinux1_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for fastobo-0.8.2-cp38-cp38-manylinux1_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 69d6b4ade028528844f2729b7caadd2bbf1b07116ec07b947f46ff76ba2f3ea7
MD5 bb9f5d785d7fe17d3bcbc6b012269606
BLAKE2b-256 9e92b01fffcd5b993dc951430ba6e01257080574fae6110bc933b72ad8a45057

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.8.2-cp38-cp38-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: fastobo-0.8.2-cp38-cp38-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.8, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.5

File hashes

Hashes for fastobo-0.8.2-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 0ed22d0aff706a222b37e5e6cc9b7024d5bfca55edf40307a628a502e8c8e158
MD5 8c21c22ef2a09a21a869b0f35206ca4e
BLAKE2b-256 dd6beead3f15fd371cc20ae8ea3177f7b113fe483d5c893a56f867088835e52d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.8.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.5

File hashes

Hashes for fastobo-0.8.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3fae2cee1effe2c9f8c41ce4044a3977bd67ccfcc9318127018e9608d714038b
MD5 be22cb00028f701fd53ccb3b7b71d2a5
BLAKE2b-256 b240aac37df20f43100c8bc0139feb22c78a8246cb19da3ad83553d1a5c182bb

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.8.2-cp37-cp37m-manylinux2010_x86_64.manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for fastobo-0.8.2-cp37-cp37m-manylinux2010_x86_64.manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f17766e12c1926d9193ec73a11ff68dc8af1030c44e23c31b88b6ad8a3d18654
MD5 da1e770b2a8b8443571ec8fa770d6f6d
BLAKE2b-256 b32d27c9aab4c974e82b6c80851d075afb6ec3f1073e5f0f0955702a7fa97264

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.8.2-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.5

File hashes

Hashes for fastobo-0.8.2-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a6a157abcf8c7359410d0523bb90287d316b26f6fde990459bce675bde367201
MD5 c22606b07b5e06715c5cff3ae45cc267
BLAKE2b-256 98017ea26142d5d5514cc9a2d235f9c51e1b1eb42b8db827634032ca718ba38a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.8.2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.8

File hashes

Hashes for fastobo-0.8.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 db0b61a6ebdc7926fbfedeb80df7688622ddb0367f30c46126d3413dccc3aebd
MD5 9b9dc0cab21fc258fa46e0dd503243d3
BLAKE2b-256 97b9370a34d6c57cdeb990f33602ef6701a12d25d3475babf02f4a9d60f1149d

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.8.2-cp36-cp36m-manylinux1_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for fastobo-0.8.2-cp36-cp36m-manylinux1_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7b95924bb05fe018fe0c4d25cb13cf5ce5904220ec0012c65b0e0ff84163eaec
MD5 92148063592640d3e5701db3e848c660
BLAKE2b-256 2499c13e574444522c64c09d6cf966dac01ea777bcfbc219598e139604f08fa2

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.8.2-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.5

File hashes

Hashes for fastobo-0.8.2-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b01a161b3a10339640477cbe39d9521af9604deeb6f044d3e840fd7b896eb549
MD5 d8f012b2f641ecda3c7bd65e1eb4d2f2
BLAKE2b-256 2d5d240e319ce6f69ce2ba1f6c292987a98ab51ddc3dea75dcee0b97c0ce8a11

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.8.2-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 1.5 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.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.5.4

File hashes

Hashes for fastobo-0.8.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 9cab323c620dabc969c6df3ff7597bcbad28b433e727f99c3d2199b749bf7df1
MD5 fcc9bd0baf14f436ad440acb452036ee
BLAKE2b-256 ee7eb1248584d1b5f9ebf31f51b714b754d5f574357aca7ce49ad51da20b5b59

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.8.2-cp35-cp35m-manylinux1_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for fastobo-0.8.2-cp35-cp35m-manylinux1_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6b7cddea0db6f604d74d6674d99884b60960b8141bf3354e288cd87ccb2cb5e8
MD5 2c467c485fb616d85a0f6db6b77295b0
BLAKE2b-256 d32a444e23f361fdbc61e17d5299a19997952f6f637af33a75001a8458151e0b

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.8.2-cp35-cp35m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: fastobo-0.8.2-cp35-cp35m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.5m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.5

File hashes

Hashes for fastobo-0.8.2-cp35-cp35m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e10633e66be1a902fe6947cc8d3836410e48d0abf0ef55af7ef871e670c16a24
MD5 c6be11810554c4ecacdbac0576b9af5d
BLAKE2b-256 77c31d7f07384255c5d480196afd328d3de25a24bf3c89922fedb19aa9ed78ee

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