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.dev8.tar.gz (214.2 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.1.0.dev8-cp37-cp37m-manylinux1_x86_64.whl (807.5 kB view details)

Uploaded CPython 3.7m

fastobo-0.1.0.dev8-cp37-cp37m-macosx_10_13_x86_64.whl (758.3 kB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

fastobo-0.1.0.dev8-cp36-cp36m-manylinux1_x86_64.whl (807.8 kB view details)

Uploaded CPython 3.6m

fastobo-0.1.0.dev8-cp36-cp36m-macosx_10_13_x86_64.whl (757.9 kB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

fastobo-0.1.0.dev8-cp35-cp35m-manylinux1_x86_64.whl (807.8 kB view details)

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev8.tar.gz
  • Upload date:
  • Size: 214.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for fastobo-0.1.0.dev8.tar.gz
Algorithm Hash digest
SHA256 b6b2f65e1e4d6863bfc0ed7bace797becb821ac6418164cfbb60f93352b1f051
MD5 0a4091a16a37c263ffc3eec90e7e7be6
BLAKE2b-256 2b9af7ee56e80d1b3344a1850409fb1a7a9977c7a01dc8b1ced98f4b43c3ae43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev8-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 807.5 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for fastobo-0.1.0.dev8-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 45de405e147b0fb979ea057ced82f1e1a71e7773be1a41a87fa5be6d59e08af1
MD5 f754cc2599b615db3be66fc2597239e4
BLAKE2b-256 a67d6c58142e8e5f323aa21f65e668c68a1774837c7a76bd68f52354059c6dd5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev8-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 758.3 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.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for fastobo-0.1.0.dev8-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 3617563a22e0ecaa89bc904e64d7dfb3edbd87f0031d24c7bd68fb8cdbdd5473
MD5 fd22decd73d081ef219bec7942c599f0
BLAKE2b-256 422ea426795dede2db827504f837c75e291108002c2ffce25b0daa9335c8bb82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev8-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 807.8 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for fastobo-0.1.0.dev8-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 dacc128a2344097297fa4c867c32b223d9a135c1ce9f556b78e03ea929140698
MD5 43edf54617c23733fbadc552e208fdb3
BLAKE2b-256 bf7151587d81a1bcac683b8abcf3a151d0a2dcf388ba1168a1284d20e0697d9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev8-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 757.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.21.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for fastobo-0.1.0.dev8-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 ea619be23bd80df2a4f9ad6562793f2600fd94de3c054aa6909090bdafcfb500
MD5 7065e5ddca21a3d294f84ab0f1e33c59
BLAKE2b-256 5c98b940b530ca0d781673fea98646d8087e1b122263ca21ab7e5ba2549ec22f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastobo-0.1.0.dev8-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 807.8 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for fastobo-0.1.0.dev8-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 172f7152bc6746da9527a621e7b32242ccb5d4a120c323d7e6a4ce0cf769235e
MD5 0fbe39bf9d74ffc5c2df8ce56aace5cb
BLAKE2b-256 fe525c0acbbbc0d615ce33090eb34d5d49e6bfdf644db0d0a2a1badc579a86bf

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