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

Uploaded Source

Built Distributions

fastobo-0.1.0.dev57-cp37-cp37m-manylinux1_x86_64.whl (895.0 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev57-cp37-cp37m-macosx_10_13_x86_64.whl (808.9 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev57-cp36-cp36m-macosx_10_13_x86_64.whl (808.2 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev57.tar.gz
  • Upload date:
  • Size: 228.5 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.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for fastobo-0.1.0.dev57.tar.gz
Algorithm Hash digest
SHA256 6a390793a40ccd51b1be30a9450298a81953ba37466364cc406ef01d91172348
MD5 fa056acd11fe73545bc61342cce1620b
BLAKE2b-256 2d4b79a3a741273e7bdde0fbc9300f886ff39d4f1e075337ea96e17b341596b7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev57-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 895.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.dev57-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a47c704117cb8dcad5aa020a2c0fedc5685eb5d6f47272b071c0999f1c6b5f61
MD5 9eea9f2b1bb2de21c75bf8bb07e6cc87
BLAKE2b-256 a1555a4b1871c814ccc475b50bb87ca12c6d56180bea4818813f2274b64018ec

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev57-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 808.9 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.dev57-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 18d3561006a785d05da73b50f20ab207b9b32b2752d588c95fac896db48acb16
MD5 bb497a0f44d4536242be686b6a2d4f89
BLAKE2b-256 67436ad73f2ff2858b85e65e1475707c349863fe889cceaabbe1f0117cc56bde

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev57-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 808.2 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.dev57-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ada48d93fa78133681a4eb684c6a75bd0588ff3299ee5c95cbe778f31b520f04
MD5 491e76853f11e6108313933ee3fd5cc8
BLAKE2b-256 6eb291e063f6a5dc6d18d6f419bd84d1d1b40a21c8e2ab590c1aa8f831286c8f

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