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 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.1.tar.gz (240.7 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.4.1-pp371-pypy3_71-macosx_10_13_x86_64.whl (1.3 MB view details)

Uploaded PyPymacOS 10.13+ x86-64

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7mmacOS 10.13+ x86-64

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6mmacOS 10.13+ x86-64

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

Uploaded CPython 3.5mWindows x86-64

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

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.4.1.tar.gz
  • Upload date:
  • Size: 240.7 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.1.tar.gz
Algorithm Hash digest
SHA256 bef23eaf857d42075fcaa23cad41202102a583d156a16fe9c839ed58e43fb2ca
MD5 0e09576e16c0ecb221ce33a017e1e1f4
BLAKE2b-256 dc81c17d741db2c1c9c4af87188fd5df0c752cb737d51b561ce3be1e2c78928f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.4.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.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.1-pp371-pypy3_71-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e7e8ae4437497aa12b30521bd688dbb6bd118760d29f5d3fd7c485f23d14a666
MD5 9a551489d4fb15fc1905a043ee31a7a0
BLAKE2b-256 7ca4b363f16756fe901fbe5639d5e7524b327d8e1cc1f1b6b6a45b301f40998b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.4.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.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.1-pp371-pypy3_71-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 87bf5f0da6e461dfe5f7b11c269a78a60e9e712162ce0e2a95c5d1d41b1ffd5c
MD5 3eb2344b73c0bbffe0d30378e29be883
BLAKE2b-256 a1f2ccccc13e170ffa60ba6909bdcdd54996c9901f90aebb64b4e17a65ccd6af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.4.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.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.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 fa3b36ae51a660f01190b85c2f7102884924b6e4a0d6b3f23ecd5d4a591a1d68
MD5 8743276ecd866e542f305006ec0fe2cb
BLAKE2b-256 add6a6800d98ec801c39100fc530203f81637903e2df7605ee7ca2e70cc45417

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.4.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.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.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 545903be71fd92b43af737b06f4d12081fd65cc9f06f61810e7003f8b6c60e2d
MD5 b730206d623a2837431fd1c86e431179
BLAKE2b-256 d51239273ec720b72fccc2ea41257c9d9bd88ae875078070d0fa7eef72fb2adb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.4.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.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.1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 cdc3e0d7bbadf117c279ca0836ba629f87e6a5be8882293b562931d98a3f4d9c
MD5 84249a7186f995a024fae3d41747be7d
BLAKE2b-256 524663bb210239b6c2065117b65c5320e23c303af4983215c8f49e61117f32a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.4.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.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.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 b707ed7302151652fa9f5695c5665aa49cd594ebbf6f6a619d5b1c73aba2cf85
MD5 dfc68570b422ff2fd55131b432985891
BLAKE2b-256 43632020044307dd7fbeb4c7e68322182fdd3c821fd5fd8ba79d9650e377f85b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.4.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.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.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f49757f3c51987f70f466d61af21d53c153ada74e6e6e6f95002a3764a3dcbdb
MD5 467111f286808b1726d79746bd5228a6
BLAKE2b-256 f80fc3409073f9402c0afd1f7deb063393f53cf3cf2da62dad517ae555663943

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.4.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.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.1-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5f180b22845da40007be6cec91db80d5e2264cd930bb7ae8c77bad6357b29587
MD5 b16edadb4d8e35484aa2a1165f03515c
BLAKE2b-256 2046e558179d90c6850ff94559547f23457b041dbb8901ffb26bf1202c6eaa71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.4.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.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.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 ba9cd9d6a6a0d8cb01d99e15ebbc93f02de44a9355e0cc957314635988b08009
MD5 2f5152da021bb8be0e0fe86e51446b0e
BLAKE2b-256 21b887a206a2d4c5be8c1889d6463e717e71bcc5c30c0daf8b9576c1957d08f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.4.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.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.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ce59f66c15a214f0ef970b8c7bcd68f48f28ab0aace64ce4cb190b74e2881324
MD5 ff121dd117d9650ac2853daf372918c2
BLAKE2b-256 44a89e4e32eeb8438f3341c945180baeffa034e180e3895752807c81b148ae3a

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