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.

Actions AppVeyor Codecov License Source PyPI Wheel Bioconda Python Versions PyPI - Implementation Changelog Documentation GitHub issues DOI Downloads

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 path 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.

The following people have contributed to this project:

About

This project was 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. Cite this project as:

Larralde M. Developing Python and Rust libraries to improve the ontology ecosystem [version 1; not peer reviewed]. F1000Research 2019, 8(ISCB Comm J):1500 (poster) (https://doi.org/10.7490/f1000research.1117405.1)

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fastobo-0.12.2rc1-cp310-cp310-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.10Windows x86-64

fastobo-0.12.2rc1-cp39-cp39-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.9Windows x86-64

fastobo-0.12.2rc1-cp38-cp38-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.8Windows x86-64

fastobo-0.12.2rc1-cp37-cp37m-win_amd64.whl (1.7 MB view details)

Uploaded CPython 3.7mWindows x86-64

File details

Details for the file fastobo-0.12.2rc1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for fastobo-0.12.2rc1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1b07d07d8b70296c9e78405429f0b69916c07b59aa124b3f85602c5bae13d662
MD5 35470ab7d17af3dcd7c9cd95cb73fdf1
BLAKE2b-256 f294a60d584cc5596c3b92e794ede69c35905190cc51a8d27b9471d6365f5b62

See more details on using hashes here.

File details

Details for the file fastobo-0.12.2rc1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.12.2rc1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for fastobo-0.12.2rc1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 54f2c905550d465fd3c712569d0bed9abb05a15787f0e9fc0ebb6acc88d105f3
MD5 69e8fa89ba88ad5e9d38a1c1e4e3fc20
BLAKE2b-256 315a40057b9537b34fe8c4633c21bf6cbf77921fbb5aa4d9048f02e34594a823

See more details on using hashes here.

File details

Details for the file fastobo-0.12.2rc1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.12.2rc1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for fastobo-0.12.2rc1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 34c891c930156339afd0c0f19c856dd852a83f246475f17be6a75f237b9d21f8
MD5 4763bb8e44f7c7953409ac55cd6169b4
BLAKE2b-256 665a5a177dddbafdf8ea665b0e16cf7727c43ceb8004bcf580b9438ac7e2e119

See more details on using hashes here.

File details

Details for the file fastobo-0.12.2rc1-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for fastobo-0.12.2rc1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 d7e7acbea7af04166d16651fd3b9691ac1046ee3510dbbf1d45ac2d56d2bdbf6
MD5 dc5a5d10b20a5c8700f9d66038b47fb6
BLAKE2b-256 86e43862e56dba4a645d2c52b0700c04c1230196235a1adeb4ae5627ae577ecd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page