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

Uploaded Source

Built Distributions

fastobo-0.1.0.dev65-cp37-cp37m-manylinux1_x86_64.whl (950.3 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev65-cp37-cp37m-macosx_10_13_x86_64.whl (863.4 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev65-cp36-cp36m-manylinux1_x86_64.whl (950.5 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev65-cp36-cp36m-macosx_10_13_x86_64.whl (862.9 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.1.0.dev65-cp35-cp35m-manylinux1_x86_64.whl (950.4 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev65.tar.gz
  • Upload date:
  • Size: 234.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.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7

File hashes

Hashes for fastobo-0.1.0.dev65.tar.gz
Algorithm Hash digest
SHA256 e413e6549ee9d2345e4383444386157ab70895a27418c2ca33e8864bc057e657
MD5 1796f84dedcdd8c3a5ee15765c58b166
BLAKE2b-256 cf0512257aa35303a2a23fab3a95b22eeafa4dc8a7fc8df5514e9f1f6be189a2

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev65-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 950.3 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.2 CPython/3.7.1

File hashes

Hashes for fastobo-0.1.0.dev65-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bdec3848383dafdfb1f5c02f9d7687816314c8aad06d533d72f964d58ae05c01
MD5 c57d5c968287a736adca68dd2e5f4c23
BLAKE2b-256 03c0a158e91a7a1ffca147a0a00896b7be38bbcb22778a85f4a76f2cd8a3ae54

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev65-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 863.4 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/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for fastobo-0.1.0.dev65-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b540907851013770063c75acfab49a898c4b55444819b8b157a59f8bbfcf0707
MD5 f7107863b81446956cf8adab77afaee9
BLAKE2b-256 f92eb5bc135e247c605f38ff76e9f1bc14c04a6ae25487d458ed5128dd9a0288

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev65-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 950.5 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.2 CPython/3.6.7

File hashes

Hashes for fastobo-0.1.0.dev65-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a1cdd62bc97993a80c15438f281b07cf4ee9667912e680e6cbb6e26564241c4f
MD5 c9a4fb21c4014a6d8e34e594c6ac2a32
BLAKE2b-256 6389c49e87881373508bb7cdad2f51269365476a610de2ff65e933a2cae8d185

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev65-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 862.9 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.2 CPython/3.6.5

File hashes

Hashes for fastobo-0.1.0.dev65-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f0238daac3088445973e6c6c3bc3bbc2c1e51effed1e59bb30d6ac0c1d48b147
MD5 80a69f63678baf56b0a0726999a009a5
BLAKE2b-256 9c9025e624436a3fc4b4b5365098837bafad53c4fb7ef311de8fa32ed0dbc4c5

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev65-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 950.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.2 CPython/3.5.6

File hashes

Hashes for fastobo-0.1.0.dev65-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f686e87b4c90588d7e015ca0694fc451b3e746e9c03a7223247c01ce8758e931
MD5 73c7fcbc799b51b359223cc547132385
BLAKE2b-256 6705dd6e5a3e3043c3c8423898bd4666b4c0adb9d0091356a95ee83c12779529

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