--- id: bioc version: "2.1" license: unclear license_treatment: permissive maintenance: abandoned --- # bioc — bioc - Processing BioC, Brat, and PubTator with Python. License: permissive · Maintenance: abandoned · Downloads: 165.7K/mo ## What it is and what it does bioc is a Python library for serializing and deserializing three biomedical text annotation formats: BioC (XML and JSON), Brat standoff, and PubTator. It exposes a familiar API modeled on Python's standard library marshal and pickle modules, making it straightforward to load annotation files into Python objects and dump them back to disk. The package is designed for biomedical NLP workflows where text documents and their annotations need to be exchanged or processed. It depends on lxml for XML parsing, jsonlines for JSON line handling, intervaltree for interval operations, tqdm for progress bars, and docopt for command-line argument parsing. The library has been stable since its 2016 release but is no longer actively maintained. Use it for: - Load BioC XML annotation files from biomedical corpora for downstream NLP processing or analysis - Convert between Brat standoff format and BioC format for annotation tool interoperability - Parse PubTator Central output to extract biomedical entity and relation annotations from literature - Serialize processed annotation objects back to BioC or Brat format for sharing with collaborators - Build reproducible biomedical text mining pipelines that depend on standardized annotation formats ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Reads and writes biomedical text annotation formats—BioC XML/JSON, Brat standoff, and PubTator—with a marshal/pickle-like API. Yes, if you work with BioC, Brat, or PubTator formats in a stable biomedical NLP pipeline. The package is mature and has no known vulnerabilities, but it is abandoned and will not receive updates. Install only if you are confident the format specifications and your dependencies will remain compatible, or if you plan to maintain a fork yourself. ## Install pip install bioc uv add bioc poetry add bioc ## Installing bioc Before you install: Low install friction with five lightweight runtime dependencies. Package is abandoned as of 2023-08-21 with no commits since; last release was 2023-08-15, over 1095 days ago. Suitable for stable use cases but expect no maintenance or bug fixes. License in practice: MIT license (permissive); you may use, modify, and distribute bioc freely in commercial and private projects with minimal restrictions. Quickstart: pip install bioc from bioc import biocxml with open('file.xml', 'r') as fp: collection = biocxml.load(fp) Verify before relying: - Whether the package works correctly with current versions of lxml, jsonlines, intervaltree, tqdm, and docopt - Whether PubTator and Brat format specifications have changed since the last release in 2023 ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 165.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags biomedical text annotation parsing, bioc xml json format, brat standoff format, pubtator format processing, nlp annotation serialization, biomedical document markup, biomedical-nlp, annotation-formats, abandoned [View on SkillFed](https://skillfed.io/packages/bioc) · [View on PyPI](https://pypi.org/project/bioc/)