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

Uploaded Source

Built Distributions

fastobo-0.1.0.dev45-cp37-cp37m-manylinux1_x86_64.whl (889.3 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev45-cp37-cp37m-macosx_10_13_x86_64.whl (807.7 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev45-cp36-cp36m-manylinux1_x86_64.whl (889.5 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev45-cp36-cp36m-macosx_10_13_x86_64.whl (806.9 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.1.0.dev45-cp35-cp35m-manylinux1_x86_64.whl (889.8 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev45.tar.gz
  • Upload date:
  • Size: 228.8 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.dev45.tar.gz
Algorithm Hash digest
SHA256 cc79560f4d43fc35ed8e0beb850c810fe9abce3604eff46d4706d5f0915e648f
MD5 28bca981f866a62463b61270e513d926
BLAKE2b-256 729c46235697c1f5f9e0c3d93e514067f1cdb65ad5d868814a26d603bef7762a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev45-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 889.3 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.dev45-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 64a9e1f075d839cfdd5c6c96ca3e201a61158352543a77f42073de91237b1a78
MD5 ae9b44c0509be327c18a01543d0e5a10
BLAKE2b-256 26b69b4ce93412959b778f5200753e57d16e18e28aa411000d12ce17f84e312b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev45-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 807.7 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.dev45-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 314691e3256caa4a119e9447516a8622a5a89e827a36d855af00bf6cd01489bc
MD5 3d0b3a77be2ccd0ace07255acd8ae2f4
BLAKE2b-256 7e43f9b62f2ebd5224e1e93892d1c5095197b0a85a5d5a2bcc70af0236534539

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev45-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 889.5 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.dev45-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 db5c38ac310531da550da7df04a9459c0d0832b7d685783a476705c997ccacd8
MD5 22d106ab84d9ebd30d3352a5f7d39f3e
BLAKE2b-256 e77d92e83fd0664eb2186f0565db0dcd3aded7e886171bd123059035ded20c01

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev45-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 806.9 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.dev45-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5c3f0c2a17f643ce07ea6260ed1ceb91a183757c9abcdf1ba046f69b3e56a668
MD5 b4a0b020503a183cba62d6c283942a1b
BLAKE2b-256 3e2ebd6306112e10fe043815882fbe44e88e928876e32b9f30aa432bbf171ed8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev45-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 889.8 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.dev45-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 16c2f61006a4d027441925230afd3e712cdd09623b130cf596640928c5ef32c9
MD5 9c64d418e4d869010768518c9066fb2c
BLAKE2b-256 6c03885e245a95f740e9bb6c9f938e1260d175ed97c8bb27dda244405f4ae707

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