Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/oskarsmc-network/papermc-bibliothek
- Owner: OskarsMC-Network
- License: mit
- Created: 2022-04-10T20:55:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-26T11:41:53.000Z (over 1 year ago)
- Last Synced: 2024-10-11T03:42:08.452Z (3 months ago)
- Topics: api-wrapper, bibliothek, cli, papermc, papermc-api, papermc-minecraft-server, python
- Language: Python
- Homepage: https://pypi.org/project/papermc-bibliothek/
- Size: 37.1 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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, BibliothekExceptionbibliothek = 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}")
```