Metadata-Version: 2.4
Name: dhclients
Version: 0.2.0
Summary: DARIAH Python client library for repository.dariah.de access.
Author: Stefan Hynek, Ubbo Veentjer
Author-email: Stefan Hynek <hynek@sub.uni-goettingen.de>, Ubbo Veentjer <veentjer@sub.uni-goettingen.de>
License-Expression: LGPL-3.0-or-later
Requires-Dist: requests>=2.34.2
Requires-Python: >=3.10
Project-URL: homepage, https://doc.repository.de.dariah.eu
Project-URL: repository, https://gitlab.gwdg.de/dariah-de/dariah-de-repository/dhrep-python-clients
Project-URL: issues, https://gitlab.gwdg.de/dariah-de/dariah-de-repository/dhrep-python-clients/-/work_items
Project-URL: docs, https://dariah-de.pages.gwdg.de/dariah-de-repository/dhrep-python-clients/docs/
Description-Content-Type: text/markdown

<!--
SPDX-FileCopyrightText: 2026 Georg-August-Universität Göttingen

SPDX-License-Identifier: CC0-1.0
-->

# DHRep Python clients

The DHRep Python clients provide access to the [DARIAH Repository](https://repository.de.dariah.eu/)
services [API](https://doc.repository.de.dariah.eu/).

## Installation and Usage

```sh
pip install dhclients
```

## Development

### Pre-Commit

install pre-commmit

```sh
uv tool install pre-commit --with pre-commit-uv
uv run pre-commit install
```


### Running integration tests

We run integration tests against the dev repo (trep)

Get your auth token by log in on publikator: https://trep.de.dariah.eu/publikator/mainView
click on "Show storage token", copy your token and add to env

```sh
DHREP_ENDPOINT=development DARIAH_STORAGE_TOKEN=my-secret-token-here uv run pytest --integration
```
