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

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 is currently being 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.

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.1.0.dev29.tar.gz (226.3 kB view details)

Uploaded Source

Built Distributions

fastobo-0.1.0.dev29-cp37-cp37m-manylinux1_x86_64.whl (888.0 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev29-cp37-cp37m-macosx_10_13_x86_64.whl (771.6 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev29-cp36-cp36m-manylinux1_x86_64.whl (888.3 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev29-cp36-cp36m-macosx_10_13_x86_64.whl (771.1 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.1.0.dev29-cp35-cp35m-manylinux1_x86_64.whl (888.4 kB view details)

Uploaded CPython 3.5m

File details

Details for the file fastobo-0.1.0.dev29.tar.gz.

File metadata

  • Download URL: fastobo-0.1.0.dev29.tar.gz
  • Upload date:
  • Size: 226.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.6

File hashes

Hashes for fastobo-0.1.0.dev29.tar.gz
Algorithm Hash digest
SHA256 979fd4bdef7dc9becc7bc6280dc8b1cd279d254faa31c1116defe40db5c978c0
MD5 720475defa8feee1d08e6659ff78667f
BLAKE2b-256 1a29c196cd6abaa72d74d4b0fa1ef994793f3284139757407ac699ae746f4048

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.1.0.dev29-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.1.0.dev29-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 888.0 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for fastobo-0.1.0.dev29-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 062f30eb75755acf691429fa9fe104a9f55978f85983320fe320bc821d506415
MD5 4092128bfbee9c5bdd2d3feb09726d95
BLAKE2b-256 b8338e5ac5d14ada00082fd3e0487268c556d0d0a859e38f7643d0b7ca6a2027

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.1.0.dev29-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: fastobo-0.1.0.dev29-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 771.6 kB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for fastobo-0.1.0.dev29-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e86d18788a0288de041d3db93b0010da85eb08f28374fc1cbbfac7eca6221a49
MD5 d65649ff9d1be96414b3e428c6e87426
BLAKE2b-256 1bdaafe06f54904f51895eb371b2600098a83df7fcbaa0494340dcf9d9b44b29

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.1.0.dev29-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.1.0.dev29-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 888.3 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for fastobo-0.1.0.dev29-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 17b5e2d73d332e0ebf3ab1ffa7f43082c4254289b87f79a5b55294e40bb51e62
MD5 e57d3a93f2aaea4535265d2d00739bff
BLAKE2b-256 f2a78dce07ccdbbc9c266a5ca56d78c4b9035717699290d910288cd342669cb9

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.1.0.dev29-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: fastobo-0.1.0.dev29-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 771.1 kB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.5

File hashes

Hashes for fastobo-0.1.0.dev29-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f9b41262ae5766740630d81fb6ed15a13b73c5eb8b30cee45672d41626c89c8d
MD5 4e6c2bec39c4a2b026fbe98a79c71c41
BLAKE2b-256 99baf36b4de66dcda0faaf78c52ab7783d524409d1af343e614f2d754986b5fc

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.1.0.dev29-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.1.0.dev29-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 888.4 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.6

File hashes

Hashes for fastobo-0.1.0.dev29-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 057baa8d6d323af6ce37247f163b2dfa38ab49abe6f900cea545754665ea33ca
MD5 eab77829fdecca926ce6c4cb44248ae0
BLAKE2b-256 b84dd28385f5daa912f70050e072bc6b9e8b07f5780c327abf679d1243591fda

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