Metadata-Version: 2.4
Name: pysegmenters-md_splitter
Version: 0.6.19
Summary: Markdown splitter segmenter
Project-URL: Homepage, https://github.com/oterrier/pysegmenters_md_splitter/
Author-email: Olivier Terrier <olivier.terrier@kairntech.com>
License: MIT
License-File: AUTHORS.md
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.12
Requires-Dist: log-with-context
Requires-Dist: numpy
Requires-Dist: pylatexenc
Requires-Dist: pymultirole-plugins<0.7.0,>=0.6.0
Provides-Extra: dev
Requires-Dist: bump2version; extra == 'dev'
Requires-Dist: pre-commit; extra == 'dev'
Provides-Extra: docs
Requires-Dist: lxml-html-clean; extra == 'docs'
Requires-Dist: m2r2; extra == 'docs'
Requires-Dist: sphinx; extra == 'docs'
Requires-Dist: sphinx-rtd-theme; extra == 'docs'
Requires-Dist: sphinxcontrib-apidoc; extra == 'docs'
Provides-Extra: sbom
Requires-Dist: cyclonedx-bom; extra == 'sbom'
Requires-Dist: pip-audit; extra == 'sbom'
Provides-Extra: test
Requires-Dist: collections-extended; extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-cov; extra == 'test'
Requires-Dist: ruff; extra == 'test'
Description-Content-Type: text/markdown

# pysegmenters_md_splitter

[![license](https://img.shields.io/github/license/oterrier/pysegmenters_md_splitter)](https://github.com/oterrier/pysegmenters_md_splitter/blob/master/LICENSE)
[![tests](https://github.com/oterrier/pysegmenters_md_splitter/workflows/tests/badge.svg)](https://github.com/oterrier/pysegmenters_md_splitter/actions?query=workflow%3Atests)
[![codecov](https://img.shields.io/codecov/c/github/oterrier/pysegmenters_md_splitter)](https://codecov.io/gh/oterrier/pysegmenters_md_splitter)
[![docs](https://img.shields.io/readthedocs/pysegmenters_md_splitter)](https://pysegmenters_md_splitter.readthedocs.io)
[![version](https://img.shields.io/pypi/v/pysegmenters_md_splitter)](https://pypi.org/project/pysegmenters_md_splitter/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysegmenters_md_splitter)](https://pypi.org/project/pysegmenters_md_splitter/)

Rule based segmenter based on Spacy

## Installation

You can simply `pip install pysegmenters_md_splitter`.

## Developing

### Pre-requesites

You will need to install `flit` (for building the package) and `tox` (for orchestrating testing and documentation building):

```
python3 -m pip install flit tox
```

Clone the repository:

```
git clone https://github.com/oterrier/pysegmenters_md_splitter
```

### Running the test suite

You can run the full test suite against all supported versions of Python (3.8) with:

```
tox
```

### Building the documentation

You can build the HTML documentation with:

```
tox -e docs
```

The built documentation is available at `docs/_build/index.html.

## SBOM & vulnerability check

Install the SBOM dependencies:

```
uv sync --extra sbom
```

Generate a CycloneDX SBOM from the current environment:

```
uv run cyclonedx-py environment -o sbom.cdx.json --output-format json
```

Audit dependencies for known vulnerabilities:

```
uv run pip-audit --format json --output audit-report.json
```

To fail on any known vulnerability (useful in CI):

```
uv run pip-audit --strict
```
