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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| obo_parser-1.0.3.tar.gz | 4.2 kB | Without provenance | Details for obo_parser-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| obo_parser-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for obo_parser-1.0.3-py3-none-any.whl |
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
|
Security for obo-parser 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.