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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.7m

fastobo-0.1.0.dev60-cp37-cp37m-macosx_10_13_x86_64.whl (809.4 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev60-cp36-cp36m-manylinux1_x86_64.whl (895.1 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev60-cp36-cp36m-macosx_10_13_x86_64.whl (808.6 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.1.0.dev60-cp35-cp35m-manylinux1_x86_64.whl (895.2 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.1.0.dev60.tar.gz
Algorithm Hash digest
SHA256 bac862e0b4fdc61b1cf9eb5205a13b11b153a03aeb9aefd809d3775a96944946
MD5 fe1266828ef5dbd85cceb89e99c2bbd6
BLAKE2b-256 5e8449ce08c76ba80cd06ce9d08a376de82722f277dc238442969f5e742acec9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev60-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.dev60-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6aeb41a71b4fad261336e57c2ae0663102abf6afaf5d24d7e58114cbde6246cb
MD5 f644ae42f4b2561054e2d485ca246651
BLAKE2b-256 760951e214a9db35f5b554a9f061452f478a50ca706d222ef87c72deda1daa5a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev60-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 809.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/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for fastobo-0.1.0.dev60-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f18f97164e615522b18767945c8d8889a58a24f44abdfe465e5be25e76815c7a
MD5 e0a58e26bb48a14885a26944829286cb
BLAKE2b-256 a89e87844bb16f64c1c612a427778ef3d106a04f6bf3b783158afaced7d276a9

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev60-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 895.1 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.dev60-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 52fd35c2829a55a25ef44b6dc3255c2430ee334705650e07512ec559998bb968
MD5 69fc96b936f6952a2e6f407443c4fb15
BLAKE2b-256 ab1675fbe3ec4f08515e4f6e60b42eda951e0d5b27a766497717e72b0c597043

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev60-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 808.6 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.dev60-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e92655853d3de3828b658127d0f8c2c6a33db1b0895bdc11fc8cb9cbba9e799b
MD5 f0ba0dd550deb3753b8a7ae3bb1d265d
BLAKE2b-256 f268050a74c0f937ca563a1a45cc7954fd71bc8abcfbcae12ebac63b4c2b0217

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev60-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 895.2 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.dev60-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b800ee414d62faedf7e18a4cf63e778c7e74a1124979e5001e4525d75797d5c6
MD5 96e3e585e983f7b869e7642f785e49b2
BLAKE2b-256 3e747f23dc3bb75c7e6c42f60066a54412a263df54efd1bbe1fa9d7841946bcd

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