Metadata-Version: 2.4
Name: oxbow
Version: 0.4.0rc2
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: arro3-core>=0.4.6
Requires-Dist: polars>=1.26.0
Requires-Dist: pandas>=2.2.3
Requires-Dist: pyarrow>=19.0.1
Summary: Read specialized bioinformatic file formats into dataframes.
Author-email: Oxbow Developers <nabdennur@gmail.com>
License: MIT OR Apache-2.0
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: homepage, https://github.com/abdenlab/oxbow

# py-oxbow

A Python interface for [oxbow](https://github.com/abdenlab/oxbow).
Read specialized bioinformatic file formats into dataframes.

## Installation

> **Warning**: **oxbow** is new and under active development. It is not yet
> ready for production as APIs are subject to change.

```sh
pip install oxbow
```

To build and install the bleeding edge from GitHub (requires Rust and maturin to build the package locally):

```sh
pip install 'git+https://github.com/abdenlab/oxbow.git@main#egg=oxbow&subdirectory=py-oxbow'
```

## Development

This is a hybrid Python/Rust project and requires
[`uv`](https://github.com/astral-sh/uv) for development, relying on
[`maturin`](https://github.com/PyO3/maturin) as a build system. Dependencies
are organized into [PEP 735](https://peps.python.org/pep-0735/)-style
_dependency groups_ in the `pyproject.toml`.

By default, the development environment enables **all** dependency groups,
ensuring that all tools and libraries required by project commands are
available locally. In CI, we selectively enable groups to avoid unnecessary
compilation or installation of unused dependencies for specific commands.

```sh
uv sync # Create `.venv` with all dependency groups
```

### Building the project

To (re)build and install a local development version of `oxbow` into your
virtual environment:

```sh
uvx maturin develop --uv # --release (for non-debug build)
```

You can then test the build interactively:

```sh
uv run python
# >>> import oxbow as ox
```

or running one of the example notebooks:

```sh
uv run jupyter lab ./notebooks/bench.ipynb
```

### Running Tests

Tests use `pytest` and require only the dev dependency group (default, no
`--group` necessary):

```sh
uv run pytest
```

### Documentation

Documentation is managed with `sphinx` and uses the isolated `docs` dependency group:

```sh
uv run --group=docs sphinx-build docs docs/_build/html       # Build docs
uv run --group=docs sphinx-autobuild docs docs/_build/html   # Live-reload server
```

