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

Uploaded Source

Built Distributions

fastobo-0.1.0.dev51-cp37-cp37m-manylinux1_x86_64.whl (894.4 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev51-cp37-cp37m-macosx_10_13_x86_64.whl (810.6 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev51-cp36-cp36m-manylinux1_x86_64.whl (894.7 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev51-cp36-cp36m-macosx_10_13_x86_64.whl (809.8 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.1.0.dev51-cp35-cp35m-manylinux1_x86_64.whl (895.0 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev51.tar.gz
  • Upload date:
  • Size: 230.2 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.dev51.tar.gz
Algorithm Hash digest
SHA256 3437c789582a4bc7ccc4e03135f25627e9e397af50ddae421f203c0e00bcc350
MD5 e8166f93e6f08b8ef31fd4db3d354469
BLAKE2b-256 dbb930b1f4fa7167b2327bee4b2078d8d2644946d2240c84d4b0679d49bfa264

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev51-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 894.4 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.dev51-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c12fd837069348aac594a35321c40d1f1b8048a63e30b0a0b5f603c057757350
MD5 df49331805993dfe1eb72a94d3f772ba
BLAKE2b-256 83976cdf4ad3412b95ebc288ba758cde0b3c9c6c4474b6c2fa4ab32148f1b3fd

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev51-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 810.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.dev51-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a82046dd45bf22bde9234a77905cf7cd2a652f555787dd63c2c81b38c6676b86
MD5 e3005b5961c84db93a6bcc5169c8f6b3
BLAKE2b-256 e1de8f9d66d7c69e7ad81d9f0141f2358bce5187aee0d0b52e362930811380c7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev51-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 894.7 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.dev51-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c2a9d050ae5dad3136aa1f557e66bc107a99a6d0daafb5ca0c918d33cdd51bbe
MD5 91b077f3e7a9507a6891a0438d1ce4c1
BLAKE2b-256 7523564106024f36c2b175a80fa7bf901d17f8f2232678a638e3a6008cbfbaa5

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev51-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 809.8 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.dev51-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 97934aac7be2b562dcf196ba9ac72284cf5f5941d7fa52aeced3b5504fc75eba
MD5 8dc571187ff32a6a992ed87a1953f204
BLAKE2b-256 a1ba549cea30449dcfbc0e4a75a99ccf801ecfefe49d9bd66eec851c5e301e11

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev51-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 895.0 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.dev51-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f1bd9ab9f50f6f4cd19fb7dd44d87b15561d4ec1d125972f4a1c4d837ade5aa0
MD5 947623054027cf25ed67c56d667d05bd
BLAKE2b-256 6eaea82d67748cfa1c178cd7744cbe6be54e2d1811c30f88d305bf22620f4a30

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