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

This version

0.3.1

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

Uploaded Source

Built Distributions

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

fastobo-0.3.1-cp37-cp37m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m

fastobo-0.3.1-cp37-cp37m-macosx_10_13_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

fastobo-0.3.1-cp36-cp36m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.6m

fastobo-0.3.1-cp36-cp36m-macosx_10_13_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

fastobo-0.3.1-cp35-cp35m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.3.1.tar.gz
  • Upload date:
  • Size: 238.1 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.3.1.tar.gz
Algorithm Hash digest
SHA256 8195669dc401d4d1f19f6e43fe88dc36926d86a982ce0981ed6ea2b2eb2c023a
MD5 f25d8166b17ab94e349ad0eaf5a44f09
BLAKE2b-256 e118d3cd8e9ad76d5f369192186f9e73f19228b7db45660126569ab66d335cea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.3.1-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 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.3.1-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d32a92dab3a6b747d8fba9067d293fd2fd54b39bdbd8e38bb1ea9b89e9a1e864
MD5 6e34460d934400df5a45625320b96217
BLAKE2b-256 c247b7bc957e30564989b2515b62321fcda65a172368bb334dfc7b4faf41e015

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.3.1-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.3 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.3.1-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e0e714151df4754e2bda3d58eb01cb0f5930b97daa7ced71c7d425b40d42330b
MD5 8a3948416179820d6b45debb71f4e74d
BLAKE2b-256 6b554481129bdd7d5fa72d86adbb6783c1a52cb25e4983d340eaac73e2ae700d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.3.1-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 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.3.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2f3bee558ae92b6012120e7ef5e23916b668105d4fd08f064e08099cf94c613c
MD5 4415fdb91e8bd6ba8cb2b0202e4f281e
BLAKE2b-256 817fb91f8b59537722899ca718dc138d021b89422166ecfcf8f1c2db575c845d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.3.1-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.3 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.3.1-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7c4eb717d26ac9bace88fce9d5de7406ec7969f777e4f52eb72951e51aec6915
MD5 2ab7fbddeca63402e86c664480ee3623
BLAKE2b-256 db7c58e92ffc0fa9e466378edb027d4aa3615bdba6ca1de276a566f4635a7c52

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.3.1-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 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.3.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fc740a711b78e3a077f0900673e2781fc4a6e0b8d7a55bd3d6487551deca6341
MD5 2f01adf8674a7a23a8e94ee1177e72d2
BLAKE2b-256 7ae4377235f25bdfbf488619268d561b0d906e3b8486f28e4ec5a08a7e1243ab

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