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

Uploaded Source

Built Distributions

fastobo-0.1.1-cp37-cp37m-manylinux1_x86_64.whl (981.9 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.1-cp37-cp37m-macosx_10_13_x86_64.whl (889.5 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.1-cp36-cp36m-manylinux1_x86_64.whl (982.0 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.1-cp36-cp36m-macosx_10_13_x86_64.whl (888.8 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.1.1-cp35-cp35m-manylinux1_x86_64.whl (981.6 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.1.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.6.7

File hashes

Hashes for fastobo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 107b7e131230551fe66d1625e093d9edf41dd47b867b67828894b412f990b437
MD5 ee95947fd58d5aeaea2b09cebfb08fb3
BLAKE2b-256 0f047ab453cda59c01766c2f769b51469b0647ca37a0611f75069689a96d474b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 981.9 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.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2c950ce51a07ca0e4b37e7cef447c2ff88c5a22fece0b89cdfc48db610b8c643
MD5 7ba472c5524357b89ff9ba440af90abc
BLAKE2b-256 ffbf8afb71a425dc0c98c5da98fa1228098ef5a0bbc1e0ad9585d44103320318

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.1-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 889.5 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/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for fastobo-0.1.1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 11341cadaf73a4c42affa66e50b88212842d9e77624a52dfaaec8c111674e22e
MD5 6ebd39a5a7b99deb85ad4497272f998a
BLAKE2b-256 e5998941cc67a1642cfa743aa9bf81b3a3ccaed26a3f2a766b79e86faff013e1

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 982.0 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.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cf0a3739f8c37b9b3ad132783edab5433ee227c02772b3dad224bab3f0c50ff2
MD5 cf3a17a75703b79bc3efc6e51d662edf
BLAKE2b-256 c96014032d1569cc86ea28756f38942faa7a851fc4b500690a3d674887df1d4a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.1-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 888.8 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.1-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 2b45c4942ef7b0e11b6a083ffaf4124e24ddf7c5fc8190a1cf4979363742430c
MD5 3c942c77f43775cfb4c5f580d6ce77de
BLAKE2b-256 69cd0660036cef07ead2a7e8004eb63168886c6a68b095a967dce720c6d7351c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.1-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 981.6 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.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2041f51a13fe920e258bbfc95bd02adc68345533274ecd108fd4b048e242c23e
MD5 b6bd20bc58c0e3f36d6d54339c71e11c
BLAKE2b-256 2f36e92c60273943688337b0eb81d239f43bda03a2d528a7b36ac41a75795daa

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