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

Uploaded Source

Built Distributions

fastobo-0.1.0.dev52-cp37-cp37m-manylinux1_x86_64.whl (894.4 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev52-cp37-cp37m-macosx_10_13_x86_64.whl (810.6 kB view details)

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.1.0.dev52-cp36-cp36m-manylinux1_x86_64.whl (894.7 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev52-cp36-cp36m-macosx_10_13_x86_64.whl (809.8 kB view details)

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.1.0.dev52-cp35-cp35m-manylinux1_x86_64.whl (895.0 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev52.tar.gz
  • Upload date:
  • Size: 230.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.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for fastobo-0.1.0.dev52.tar.gz
Algorithm Hash digest
SHA256 edcc842cb483f885572e284be48fbc2119a204e54f07070e5625004fb327c393
MD5 18b35a1967e0d21d1fe34215797ca197
BLAKE2b-256 cda670442557482aa899690e545e0f2d058afc7f9323750f17271accb104f68d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev52-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 894.4 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.dev52-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 459222c3e8771bf54963fbc4e7f89bf4cdd6a321dc4ed8aa20400542c4feb2c9
MD5 0a082e93422f0f95093b177d9b5ef437
BLAKE2b-256 366e548db1d9f035938ef9501ba8dd3214a1caec0c87d5c0fb8d17c53e821b71

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev52-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 810.6 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.dev52-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 b9a327c4e83188952a07f1cf9a875404ec38535ae2fcd7ce0c53b7cc60d0ba89
MD5 d1fa462bdb410f5c2941e2bbf98bde3d
BLAKE2b-256 13c84897689616c0bf3c0e00cd394ea4a714e54725819e92bb166ad14d5572bc

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev52-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 894.7 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.dev52-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6e55427d93e7632e80fa0b50486a73f8f3627b61a2749441e022784b97559afb
MD5 b224e425d13871f1675a76cc83d061cb
BLAKE2b-256 c42230a25c9938eed27ed8cb885d0dc2d88b37af8c11bb1b1274bc62cf256226

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev52-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 809.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.1 CPython/3.6.5

File hashes

Hashes for fastobo-0.1.0.dev52-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 811f6ebf57a320ce03c6fdfc2912d5fa655a40bd05275e0356e2e44f65da1c2c
MD5 8320136ffefcfcf43d6527e2f1f83a8c
BLAKE2b-256 a57719662c7857ff990411f702342342f9ef25de6c5b7b4980a812a962045989

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev52-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 895.0 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.dev52-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e5e5c184e867d699eb43f7a25cb79aff7f999d6888898cfc62c7a566e4dd1c0a
MD5 16a5fca5acdcf0339cb889dcf5fa7efa
BLAKE2b-256 4398e807f4fe6221fc68baaece1010b7c74e1d4199fe16ed54ebec5183961f4b

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