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 AppVeyor License Source PyPI Wheel Python Versions PyPI - Implementation Changelog Documentation GitHub issues DOI

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 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 Distribution

fastobo-0.5.0.tar.gz (242.9 kB view details)

Uploaded Source

Built Distributions

fastobo-0.5.0-pp371-pypy3_71-macosx_10_13_x86_64.whl (1.3 MB view details)

Uploaded PyPy macOS 10.13+ x86-64

fastobo-0.5.0-cp37-cp37m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m macOS 10.13+ x86-64

fastobo-0.5.0-cp36-cp36m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m macOS 10.13+ x86-64

fastobo-0.5.0-cp35-cp35m-win_amd64.whl (1.8 MB view details)

Uploaded CPython 3.5m Windows x86-64

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

Uploaded CPython 3.5m

File details

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

File metadata

  • Download URL: fastobo-0.5.0.tar.gz
  • Upload date:
  • Size: 242.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.5.6

File hashes

Hashes for fastobo-0.5.0.tar.gz
Algorithm Hash digest
SHA256 de1da3b29aaed53b96639fc5b3cabd2e3ae611b1ece5e0eed33b9e9e9736080a
MD5 4f88e59d250c83b5b503206136084790
BLAKE2b-256 cc64db7e48d37cb6d66acfe0e13104efacfa345b707bc4852ec1ff39d911ce72

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.0-pp371-pypy3_71-manylinux1_x86_64.whl.

File metadata

  • Download URL: fastobo-0.5.0-pp371-pypy3_71-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: PyPy
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.0 PyPy/7.1.1beta

File hashes

Hashes for fastobo-0.5.0-pp371-pypy3_71-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 63394cc7943656d9e4017ffdb4df08d2b724b18cd6a632a2118bd6a744ab67c2
MD5 e81ab57ad2e88b416ecfdcb1a5e07384
BLAKE2b-256 386e89ed5ddba3474d82b7f550c3ddc792b33ca3b87e1e9959a59ee3dd95d91b

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.0-pp371-pypy3_71-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: fastobo-0.5.0-pp371-pypy3_71-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: PyPy, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.0 PyPy/7.1.1beta

File hashes

Hashes for fastobo-0.5.0-pp371-pypy3_71-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e26ce8c7efc58024a2f50b8644adf6a4037610b79570d070d4191a265c790f4a
MD5 fce3f4ba90ebe4de1887e7402231ecd8
BLAKE2b-256 2ed8e3ef0f84b78de7258d2970c6f5fb87839ca7140a1ace15e4851977073ace

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.5.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.7.4

File hashes

Hashes for fastobo-0.5.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 e3b9486c67d1e5b9c2cb7cb5ef3075dc4102e6e27904fd711664e050585e1673
MD5 294867ab8ea3f88374cd4d548c0e26b8
BLAKE2b-256 f164c7dc82544bb288e08ffe378090eefc2194b7dcf64b167b46b42e4c1e006b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.0-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.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.7.1

File hashes

Hashes for fastobo-0.5.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b0d95e46fd0e6ddd99b82c79fb41939c644e1d7cd851eefdc3750cf88a48cb42
MD5 a0f3beb709b3bd2289f30254161e6872
BLAKE2b-256 d3609e1df97a63203cb68e37007a74a6acef8f16a97b02bfc1f7682c99de5b61

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.0-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.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.7.4

File hashes

Hashes for fastobo-0.5.0-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 a93c49d05ab79fdd8c57d2a29d1601466854f89a32ba178f1e005df5661a95ea
MD5 742c94e6d18fa4db0cf68790d34b4154
BLAKE2b-256 4322c44f3d1762212c661069bc4fef8450d597be4692e3339233408fc6deb329

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.5.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.6.8

File hashes

Hashes for fastobo-0.5.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 7c52eef736b7de6603aae84544006565b3a64de3ff24e72bfa212186d0a30101
MD5 1d78df621647a8ca1f9ad4edc8cc3c54
BLAKE2b-256 ea737a8501f7db0e5b76726ce8ba739f14f7b2a3fd7082714b409af593c4a084

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.0-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.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.6.7

File hashes

Hashes for fastobo-0.5.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 02e7c34a81a19ce252231766d039403bed456ee6c39be30d2cd417a209f0039a
MD5 bd9449488a05edb1dbe5caa217c93f52
BLAKE2b-256 3ff5c364cef2e872a39b90782d59838d9b71a6fecef10e5f571c81ec0dbdfea4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.0-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.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.6.5

File hashes

Hashes for fastobo-0.5.0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 061219fbc4d3e05f37dd0cecc862caaa5d2b0d2b0220a4c0bcfe14eaa989099f
MD5 aadcdd50ba4d9984121c53c4236b872d
BLAKE2b-256 8b8162d863a54fb4d99c5607d8934ce807481ae7fb9703a4f9e73d834ca83c7c

See more details on using hashes here.

Provenance

File details

Details for the file fastobo-0.5.0-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: fastobo-0.5.0-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.5.4

File hashes

Hashes for fastobo-0.5.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b5253891265a338db45ef897a9410e1b0ab686e13a7bdd5c10611b671997d465
MD5 4d49e2b7b93138ad833f4e323825929b
BLAKE2b-256 aa80abb875f78a0f4fb9af3100246de13fe5841772316ff0abe2b6b571a1c237

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: fastobo-0.5.0-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.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.5.6

File hashes

Hashes for fastobo-0.5.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c1448eb1e3e86d7969d9729a70cf31ed34c8ca357950235f7480f9194c1d8a4a
MD5 c637b40f91dee5050ce6865570f61df0
BLAKE2b-256 efbf72829307cfcdd6c4f3a49241e553b62d16122b28767533d54c4cdc459d99

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