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

Uploaded Source

Built Distributions

fastobo-0.1.0.dev61-cp37-cp37m-manylinux1_x86_64.whl (899.1 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev61-cp37-cp37m-macosx_10_13_x86_64.whl (813.2 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev61-cp36-cp36m-manylinux1_x86_64.whl (899.1 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev61-cp36-cp36m-macosx_10_13_x86_64.whl (812.5 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.1.0.dev61-cp35-cp35m-manylinux1_x86_64.whl (899.3 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev61.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.6.3 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.6

File hashes

Hashes for fastobo-0.1.0.dev61.tar.gz
Algorithm Hash digest
SHA256 3e465e1e9566caaecd583900c76918623d381126747ad406d46073ce5cdd00b6
MD5 8fbced8ba8d504176c247b4d8ae6ec1d
BLAKE2b-256 2f2ea0e5a9e0e1263838a60b620bde0d7dff0b71ad5d673d25a2fd9c83ba2ebe

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev61-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 899.1 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.dev61-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d4b355736daadfd697c6ead4189303191f532d45b7a885227ebb7d415f184ae6
MD5 5ab875ca2b7fbe8292e8125aaf35c632
BLAKE2b-256 4d6caa96e0cbe26b5f2662405c78fa37c09401e30b3c3d557201d50a9577e3eb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev61-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 813.2 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.2 CPython/3.7.3

File hashes

Hashes for fastobo-0.1.0.dev61-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b9b7558932015bf0b4e60899345b05ae3e1d9947511676c28d32f63d871cd500
MD5 73f3f371c37c4273e4e6bb9cd6f535b8
BLAKE2b-256 33009ca77906d72bcf55feb4c8df5735c27d35b39a9dcc0e4d8ed28600ed9a8a

See more details on using hashes here.

Provenance

File details

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

File metadata

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

File hashes

Hashes for fastobo-0.1.0.dev61-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 79c29417fcd9774c1098f04067b8daf2e6c174b1f49c02aba4e4549eb015e78d
MD5 e47baf897251f1583158e71b98c908b1
BLAKE2b-256 adbeb89817e1625557307c26d7a14d2b526f86f57f146f22f09eebde074ffab5

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev61-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 812.5 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.dev61-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 9ca1110d3158b24e94818856ebe0f273c27e25f57fd800f5624943b7596db7b5
MD5 6e8498609cb539ca21f04b297fd8b012
BLAKE2b-256 c9500d67348f8272f0af146e3dcbee2a5a7ddb8f2213edce6070f8449ba5bf5d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev61-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 899.3 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.dev61-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3b8472a1ac9182ecb3b33f9c684df978adce2ffe8f7264763586674b23c2aed5
MD5 74063e88d981c172bc66b7298df0cf94
BLAKE2b-256 b5032d5fe254b306993247a33ae9acdcea4c8e71ff6c82b211ba279325617456

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