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.

Actions 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.

The following people have contributed to this project:

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.10.2.post1.tar.gz (250.9 kB view details)

Uploaded Source

Built Distributions

fastobo-0.10.2.post1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded PyPy macOS 10.9+ x86-64

fastobo-0.10.2.post1-pp36-pypy36_pp73-macosx_10_9_x86_64.whl (1.4 MB view details)

Uploaded PyPy macOS 10.9+ x86-64

fastobo-0.10.2.post1-cp39-cp39-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.9 Windows x86-64

fastobo-0.10.2.post1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

fastobo-0.10.2.post1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

fastobo-0.10.2.post1-cp39-cp39-macosx_10_14_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

fastobo-0.10.2.post1-cp38-cp38-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.8 Windows x86-64

fastobo-0.10.2.post1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

fastobo-0.10.2.post1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64 manylinux: glibc 2.5+ x86-64

fastobo-0.10.2.post1-cp38-cp38-macosx_10_14_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

fastobo-0.10.2.post1-cp37-cp37m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.7m Windows x86-64

fastobo-0.10.2.post1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

fastobo-0.10.2.post1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB view details)

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

fastobo-0.10.2.post1-cp37-cp37m-macosx_10_14_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m macOS 10.14+ x86-64

fastobo-0.10.2.post1-cp36-cp36m-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.6m Windows x86-64

fastobo-0.10.2.post1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.6 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

fastobo-0.10.2.post1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB view details)

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

fastobo-0.10.2.post1-cp36-cp36m-macosx_10_14_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.6m macOS 10.14+ x86-64

File details

Details for the file fastobo-0.10.2.post1.tar.gz.

File metadata

  • Download URL: fastobo-0.10.2.post1.tar.gz
  • Upload date:
  • Size: 250.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for fastobo-0.10.2.post1.tar.gz
Algorithm Hash digest
SHA256 1221e45862f68965e9b5b203f4fbd0b6e04a6221a1f30f95b7e35b1c8b16f2b7
MD5 85d3a741873ad56ce941c6d7bd3532e7
BLAKE2b-256 8c28438ff428b8a7a920025d95d901f0205c4dce70393d89084315c074650d9c

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: fastobo-0.10.2.post1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: PyPy, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for fastobo-0.10.2.post1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c240c44e45a0e5b99010476f5536d18d70abaf7e48eaa6493d2dde23f50f5b05
MD5 e26490b1d41732b5794e2087490b8e3e
BLAKE2b-256 e4facf228f7bd43aebb83b15a068681c034ff5190b0d5e63e999ef48c4465d02

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-pp36-pypy36_pp73-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: fastobo-0.10.2.post1-pp36-pypy36_pp73-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: PyPy, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for fastobo-0.10.2.post1-pp36-pypy36_pp73-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 751b60e21b337b084cdda12fc88053d3c48d65798460b2b3920af4a7cff1409f
MD5 b8af0557e43d70e69b624d83c5833d33
BLAKE2b-256 4e4aab0baee006d1a7474137ce4f1257168a536f179d67f43b50d8570ed449e2

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.10.2.post1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for fastobo-0.10.2.post1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eeac3e33fb9da6edc307a3bc0d1dc29a645afdc1484a9c1d1b7659e5ffe7d4a6
MD5 d45e72c4dde37aa4fd151e479e0a5b1b
BLAKE2b-256 e4197a451f643a31749d9a70a3c63a3e5aca283c40dd82707f3d9f6b818d11a7

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fastobo-0.10.2.post1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6d1e761ae7abb88057893ec8bf8e1c0d73e60a7a76b34aaaa8420441162a52a0
MD5 aec30b3fd5ff3fc2b066138e47e478ec
BLAKE2b-256 d942eb75ce2f6c99c90508801444983e945f3fae7a447a42366cf89ac01d336a

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for fastobo-0.10.2.post1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e88aa49abe147fb80289d00fdeade3472206d99139135711b6e003e1e9ed9dc1
MD5 113979516cd550a27fdd7ed3f3a78fb2
BLAKE2b-256 00e290502bb7ebd171c1d63156daee8fcc5a6a54864ebacf561c0ed592b124d4

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: fastobo-0.10.2.post1-cp39-cp39-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for fastobo-0.10.2.post1-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 9ee984da20561edc45d40c43bf768e2903b6046f2975fff93736da1495bddcaa
MD5 e744233c52f54a9d2c847fec50f82475
BLAKE2b-256 bee3589213875a708667d2f8c9d5af627f6d9aa5887605f90f287a43517d4139

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.10.2.post1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10

File hashes

Hashes for fastobo-0.10.2.post1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c6214bdbc361ef9d078a450358d16804a11d4b44ac41bd54db83d07069e12d58
MD5 432fca308f482eaa3795000ab17354a8
BLAKE2b-256 6acddd0369c74ad862c177d388946f023f242f63329dc91bbc78c8a7426b0cd7

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fastobo-0.10.2.post1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f66ed191a5ae7ad57283447dd73bda256b3f69beda0571757e0789c5b9096fc2
MD5 8c4ed1decc03e210852c2a64d6bdf040
BLAKE2b-256 f836041f5b11bc2c6d1452033a83a40dc43691b59e30fe024e3e2ca446cd2e83

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for fastobo-0.10.2.post1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 c10b44eee8c5e880ba863be51ca076949f764ad862fb0acc4d86a72feea0b1b5
MD5 1999658dfc08cf4e2db2b1df5cd7193d
BLAKE2b-256 36e080cac39f60d5c0ef2183ea8958bc6fdde2849e4063a44d4bfb6bcacc4419

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: fastobo-0.10.2.post1-cp38-cp38-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.8, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for fastobo-0.10.2.post1-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 ef374a3f5ddbe2d15c49a33eebe4fc98c0874b980580f36c2aa385edd0ec4772
MD5 c90c67e286580eb883cf6f5ddddd8122
BLAKE2b-256 53f550895388b56943510ea368aa191ed5dbe993c28d6e6dfff863b2904cd99d

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.10.2.post1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.9

File hashes

Hashes for fastobo-0.10.2.post1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a730673c2e9ba5fb0eae34e8e99f0b3b3a37b57f5427d56742a8bff4deb55a76
MD5 0e045046a50954667d9b6b7389074b41
BLAKE2b-256 b879250a8e7193bd207dff8d5a0f0bbcc067ec6e983e04be5d48f5b7101efbd2

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fastobo-0.10.2.post1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8ada3ebeb8e376f017309e8f09b4f27c9a6c03525c99fce4a594f8d22f123de8
MD5 081680e8fb8232c70a9a7286c8091eb3
BLAKE2b-256 fde396c53f3543fc27714df5110fb3e9c4a737d5db0f5346c8328b6eb39ccc2f

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for fastobo-0.10.2.post1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 7b858430afe3d72292ddc13fd1c08bb0d28b70149d9f512205a7fb501b03a324
MD5 968ceb5838755bb426c3ca9249853774
BLAKE2b-256 17916363dbd23fd50609a3b521988e28aad2cfe033d3201ff488686a2925f91d

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp37-cp37m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: fastobo-0.10.2.post1-cp37-cp37m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for fastobo-0.10.2.post1-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 8aa65465a09c5ea6ae0118ef52f44028cbef576d7f89b1fa24c9c70374a01631
MD5 b6396fa48b648ac33b67598bcd01c7a1
BLAKE2b-256 75a806740396685dd33d295451cfd4b755c9de5be1b991bf48e31a90eb41c71d

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.10.2.post1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.8

File hashes

Hashes for fastobo-0.10.2.post1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 fef816fe34917fe2bd0156f9b36110b541fa08a38532a92efa097a49dfb93a99
MD5 240455de212d2a74e04ef5b995ce8c91
BLAKE2b-256 72c9f860460d707e64c84ac3497d8a0d5c71bb144089e58b2714075db956796f

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fastobo-0.10.2.post1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5c50d59594fb75fb02d9b4e7a6d2af16824ed3a4a15c9434ec9c8ab7e915ddd6
MD5 6f3a93ed46c63bf22086fc207b1bbdda
BLAKE2b-256 f83134145c5ea07b09d6fc5e468e7ae29ac190306fb16ba530bf090e446ad38f

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for fastobo-0.10.2.post1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d23552b18d2b3bb82148ff741eacfb3bd33460ab90325c09b0327574912754b9
MD5 b224ace3491ff1a10c5b11a7fe69b206
BLAKE2b-256 cd8eb623750aeafca1195e2e59b7991418272f2793f45bf7fb838da3a20d9d27

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.10.2.post1-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: fastobo-0.10.2.post1-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for fastobo-0.10.2.post1-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 5f3a92aae6530e85d15476f049d09bfea046dc0af601f1e977a1be1a1998a9bb
MD5 b826e33fb48a73cb4633a8e32e198b66
BLAKE2b-256 e9db3371f2cbc9932922a548d7664baa48b8b9964dfb4b06e0d56f49431ecbfb

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