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

Uploaded Source

Built Distributions

fastobo-0.1.0.dev24-cp37-cp37m-macosx_10_13_x86_64.whl (746.1 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev24-cp36-cp36m-macosx_10_13_x86_64.whl (745.5 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev24.tar.gz
  • Upload date:
  • Size: 222.0 kB
  • Tags: Source
  • 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.dev24.tar.gz
Algorithm Hash digest
SHA256 c412e8615bb5a33f0b829dbe1bd38b2eaafa6bfdc5993655b3132dbaf4063fbc
MD5 bde9375c328bce4cbd55b6b4e167d7ee
BLAKE2b-256 dc8494504ddcbb33655865d1a8bf75d15c3e471f9615be6ad3cbd08161433d51

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev24-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 746.1 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.dev24-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 bc8463023944cf55c033363fd9f1a5ed5db577616b0b1c9550ac3f4d0464c9fb
MD5 260bbaac36b9a7f854c12d87d55fb195
BLAKE2b-256 b2c89356564b2e0633cccac4df5d5879c7e0337630dd40762e3c4577a54a24b1

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev24-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 745.5 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.dev24-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c5f0788c6833801688320f70f5765d6c048f9374aa63c6c3ebf8771b7c4902b6
MD5 3dee1efc8b4e43f8605293cd5f21dcf9
BLAKE2b-256 deb88287b4e8f2f0fcf5e78181fcc8344962c387e91425ff113fe320a5ad9178

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