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

Uploaded Source

Built Distributions

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

Uploaded PyPy macOS 10.13+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m

fastobo-0.5.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.5.2-cp36-cp36m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m

fastobo-0.5.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.5.2-cp35-cp35m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.5.2.tar.gz
  • Upload date:
  • Size: 243.4 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.2.tar.gz
Algorithm Hash digest
SHA256 c33a835467aeffaa6c7517f15cb502b55ff511deb40ef729b4e439d1457841cc
MD5 7ff1083abdf2d7f23f2dfa11a6cc9d07
BLAKE2b-256 34d2c702ee52fc62030cf245c4ded4b78c5ccb09345d8105a78ce482a2c58950

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.2-pp371-pypy3_71-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: PyPy
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.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.2-pp371-pypy3_71-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 80232216c82d9eaac139e6c2532b45a9dc7efca0c81c48e451694499bdded0d7
MD5 1620d682a711838064b51e142f54690b
BLAKE2b-256 517d316dad77cce6ebb746b9b2a30efe8d22b79c197712a71b2ccb3be8ae765a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.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/2.0.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.2-pp371-pypy3_71-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f524518b1de06bfc4454eba23f58343da534782218e94a34f989087589ca1997
MD5 3bce063681c44d6fff0df36610df46c1
BLAKE2b-256 23f18c17a9404ec06e4afccd2d82e1cde5e840761d5f44e34447ecae03f5fab7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.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/2.0.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.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d3aae3ca48a5f603acd87b600e30efd9301df9f663391a15546d53862992d652
MD5 3cf81a89037c8e5cb14e96269be6eb1f
BLAKE2b-256 63350ec302ec5bdc91c594aedc3d0176e0fdd52a0fae570f85ee7d1f5af06351

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.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/2.0.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.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1c4ee6345bda3936f3c7b139a01feebf9a78eb2810e17ee80ce339e8fdfa94be
MD5 3b41d3ae2af3aa8e9bb429ddaa3e6cd0
BLAKE2b-256 71ed5aaf104390f115149331caa705563f5ed2b18df72dbfd5b4265e6899eb56

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.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/2.0.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.2-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ba83b69fae533cbc677da9abf7da907d66ab41684436b1484a58edab34f1618f
MD5 871b224dc788221fe61a8259c23e4b1f
BLAKE2b-256 9e6f37266e01f948606e71eff4ac8369683e4cbe1a77d7fdbbb1716a757d9267

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.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/2.0.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.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 7c1ab1414179b5e07fc94ee920c8617e1ed12d840a7752ab082389eca421bad1
MD5 4176f111e92f9d5905e2d9642463b55e
BLAKE2b-256 ee762b9f9af8fc72aa39138e0875c971fd26c8301fdfb682b341371b27c4e279

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.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/2.0.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.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7dabc191e54191630dbdf52be9f3be39f3cf09bb92eb55737bbcb2886b4149c5
MD5 3461bcae2e89c390082dba1053dacfcd
BLAKE2b-256 33302d276e37303c023d727b9e04ca25e905be5a1e096bf9569677750b0270a8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.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/2.0.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.2-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 539631839f5e5467eca317764b422d592db8e2ef67a87b7e3e58c62297b23b2a
MD5 604893d2a0fb6dfec623fff4110e523c
BLAKE2b-256 bb9ff599a310ffcf252a6a538955037d4ef72a905a17323b85b93bdf223c03cc

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.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.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.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 a799965a6703bc387f900274e587bad9c4b3206b6bc14c535d24f6a182a6fb45
MD5 bb1eb3843ad7dde41f3b0afb6e3cbddd
BLAKE2b-256 36dde0f1b58bba06f09dd74c74c8ece500fe4d9cbb3e0d37dd7f58195bd185a2

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.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.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.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e7e402d02875924c47f472d8970db538ba4cf3904fb0c6e5ca3b14009e5c3a07
MD5 1cbc3a8a5e9bdea4e86ad3734d70c2f8
BLAKE2b-256 237aaf121a24f0c2e7e82e540dda4502a790c007a585c3a67db1673d0d4abbf0

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