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

Uploaded Source

Built Distributions

fastobo-0.2.1-cp37-cp37m-manylinux1_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7m

fastobo-0.2.1-cp37-cp37m-macosx_10_13_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.2.1-cp36-cp36m-manylinux1_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6m

fastobo-0.2.1-cp36-cp36m-macosx_10_13_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.2.1-cp35-cp35m-manylinux1_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.2.1.tar.gz
  • Upload date:
  • Size: 234.9 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.7.1

File hashes

Hashes for fastobo-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a8aac4c7723aca1f54fcdebcaf5afad1a0278d4799dcee3e9a997f59b790ee62
MD5 e65a874dd7122e36d8fe993f304297bc
BLAKE2b-256 bb5b29f0fb589031582b0af51b697d614e6760fed368b0a541dd56680ac1f0f7

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.2.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • 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.2.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f5cab298903899faf1b491e57fa2d424a0e6106c8d743492aaf6948dd1be879e
MD5 28f738d38af64eef317af988ee8826e6
BLAKE2b-256 21375b7a7c5238ad9d62e1805eb78a6e744f67164b7adf832a5114e2dd065be6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.2.1-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • 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.4

File hashes

Hashes for fastobo-0.2.1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 dbab264ed4c919f2abdc21dac45468d9e6d5c7797413da6fce326b98110319c7
MD5 655b409428c29ef7a350e9c4307c6be5
BLAKE2b-256 14e346fcb29fbcdb6d91d9893a92e2f210ce4a6f0064a6f009cdaad59357e61e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.2.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • 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.2.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c7a06e4aa1f0b755d1baa9ad123cef0e3d28bf7313392142b7b66126ea2b5d76
MD5 a56637095aee0eec6e2240b0bc716406
BLAKE2b-256 94e824063d220e09d54fcbb72f195db8870eab5acb5389fa52e16d7054744899

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.2.1-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • 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.2.1-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e9b5eaa2b34f98f776e406ab9508452d1e3e8d8cc554bd095715e764bfba2785
MD5 bdb894d4147a97de2d73e9dd1fbfdd98
BLAKE2b-256 ffa083db3a3445d0cc307b072b5deeb566e307375d8c0bf5bd79e8819d1ef669

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.2.1-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • 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.2.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 313346726cf47d2d541df9318156d3e27f6970ea13c1aa2e15dfafc60d377304
MD5 27dbf70feda2cef7c45280d624433392
BLAKE2b-256 18690d0ae1a443664540a37253ec983c060503141ea95ed76e4fee0fd51d8686

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