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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m

fastobo-0.3.3-cp37-cp37m-macosx_10_13_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

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

Uploaded CPython 3.6m

fastobo-0.3.3-cp36-cp36m-macosx_10_13_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

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

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.3.3.tar.gz
  • Upload date:
  • Size: 237.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1

File hashes

Hashes for fastobo-0.3.3.tar.gz
Algorithm Hash digest
SHA256 74efa6a1ddd6cb42265b98a2357539163c8556a0d2ca486f833a7666f3af6557
MD5 e23ec0479b51fada7798894b407836af
BLAKE2b-256 4220a2cf494eee49a4f38be9b1dba75479c7632fab6427dac9cfa9529a76f21b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.3.3-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1

File hashes

Hashes for fastobo-0.3.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 36992a3d47957f1fde58165e57a1381b77d1e765015b44e84adff565f8fba2b8
MD5 f87576593cc9d255406c1193a13dc89b
BLAKE2b-256 98c0239234fec827e6a7330109a87cb1a45923bda03ed36d3c129d078798fb3a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.3.3-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/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for fastobo-0.3.3-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2497f0750d4a30971df53951fb92bb4f0800675c67bc39c2f2a1cd54ecd3c406
MD5 49c629e805ceb073612de9e031845a98
BLAKE2b-256 a9c31fde7ad9a6f0fbaa286d214fad42250a86297be31ba869994a1090304d2b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.3.3-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7

File hashes

Hashes for fastobo-0.3.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4db7da229bebc9b49cb6b575c33709b39b56eb10e0ada5d5ac84ae723c90f742
MD5 e0b207c2c00abd9890a8b22247bba7b5
BLAKE2b-256 7d0f250f2590843afde86da08a3674d5800a35c4feb5613f9fdc1e0c437b3a04

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.3.3-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/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.5

File hashes

Hashes for fastobo-0.3.3-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7b6ec0af28c1ab834cbad475463dd32d4934d5cc02f2608829e2cb9dc3adab22
MD5 3177ead418fcbe02485f93d90cee67ce
BLAKE2b-256 bb8a4ccc54963d8677216101795c0e5d5a4ae9f2a29f80cfc6d09377b68eb38f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.3.3-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.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.5.6

File hashes

Hashes for fastobo-0.3.3-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 33faced74ffbfcbf1902debe3b351a691f57b91fee99b8f8a2891c7e1eb941f3
MD5 0b0b5c7028afbadc7820549d4596e140
BLAKE2b-256 1e56d813a95a93205765235a183fd9aff95257050371f016e779215d999b0913

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