Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oskarsmc-network/papermc-bibliothek

bibliothek API wrapper with a CLI
https://github.com/oskarsmc-network/papermc-bibliothek

api-wrapper bibliothek cli papermc papermc-api papermc-minecraft-server python

Last synced: 2 months ago
JSON representation

bibliothek API wrapper with a CLI

Awesome Lists containing this project

README

        

# papermc-bibliothek

pythonic [bibliothek](https://github.com/PaperMC/bibliothek) API wrapper

## Installation

papermc-bibliothek requires python 3.9 or above

```shell
pip install papermc-bibliothek
```

```shell
poetry add papermc-bibliothek
```

## API

All functions and classes are properly type hinted and documented with triple quotes. Please file an issue or pull
request with any corrections if any issues are found.

You can refer to https://papermc.io/api if looking for a specific
method, they are named similarly.

### Basic Usage

```python
from bibliothek import Bibliothek, BibliothekException

bibliothek = Bibliothek() # Create an instance of the Bibliothek class
try:
projects = bibliothek.get_projects()
print(projects) # ['paper', 'travertine', 'waterfall', 'velocity']
except BibliothekException as e: # Catch BibliothekException in case something goes wrong
print(f"Error: {e}")
```