Skip to main content

A Python library for parsing OBO(Open Biological and Biomedical Ontologies) files.

Installation

pip install obo_parser

Usage

Use in Command Line

obo_parser headers -f path/to/obo_file.obo
obo_parser headers -f path/to/obo_file.obo -o headers.json

obo_parser terms -f path/to/obo_file.obo
obo_parser terms -f path/to/obo_file.obo -o terms.jl

Use in Python

from obo_parser.parser import OBO_Parser

obo = OBO_Parser('./hp.obo')
print(obo.headers)

for term in obo.terms:
    print(term)

    # accessing term attribute
    print(term.id, term.name)
    print(term['id'], term['name'])
    print(term.get('id'), term.get('name'))

    # accessing term dict
    print(term._data)
    print(dict(term))

Metadata

Release files for obo-parser 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for obo-parser 1.0.3
File Size Uploaded
obo_parser-1.0.3.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for obo-parser 1.0.3
File Interpreter ABI Platform
obo_parser-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / obo_parser-1.0.3.tar.gz

Download URL obo_parser-1.0.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ebb97a0bcfcc66e75133b188fec77da427b24acdb787f83787a2789618b74623
BLAKE2b-256 checksum
How to use checksums
b1412d0800546f03f3c650e5bd152f02084ca859b8aaa790800ad905cb7146c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.8

Release files / obo_parser-1.0.3-py3-none-any.whl

Download URL obo_parser-1.0.3-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97a34ff34f534ae12f788e3c29bcacb3fb1e67c7d777f49b6edbcd89b462959f
BLAKE2b-256 checksum
How to use checksums
ab996d65f8930e7dc1ff19fe319242f5ac2f347360c44bbff688b04a5baadf03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.8

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page