https://github.com/jmcruz14/hardpycover
Python wrapper for Hardcover's GraphQL API
https://github.com/jmcruz14/hardpycover
graphql-api hardcover python
Last synced: about 1 month ago
JSON representation
Python wrapper for Hardcover's GraphQL API
- Host: GitHub
- URL: https://github.com/jmcruz14/hardpycover
- Owner: jmcruz14
- License: mit
- Created: 2025-05-05T22:21:24.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2026-06-10T08:42:22.000Z (about 2 months ago)
- Last Synced: 2026-06-10T10:17:31.793Z (about 2 months ago)
- Topics: graphql-api, hardcover, python
- Language: Python
- Homepage:
- Size: 287 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
> [!WARNING]
> This package is currently in Alpha development, so download at your own risk.
hardpycover
Simplified API Wrapper for Hardcover, written in Python.

### Installation
**pip**
```
pip install hardpycover
```
**uv**
```
uv add hardpycover
```
### Usage
> [!NOTE]
> Using `hardpycover` requires having an API Key from Hardcover. To avail of an API Key, go to https://hardcover.app/account/api.
```python3
import os
from hardpycover import Hardcover
# Store your API_KEY in an .env file
api_key = os.environ["API_KEY"]
# create hardcover instance
hc = Hardcover(api_key=api_key)
```
**Getting User Information**
```python3
hc.user_profile(['id', 'bio', 'created_at', 'username'])
# > {
# 'id': 2,
# 'bio' 'Lorem ipsum dolores amit',
# 'created_at': '2025-06-23T10:10:10.32341Z',
# 'username': 'kennyrogers'
# }
```
For more use cases, read the available methods found at [main.py](/hardpycover/main.py).
### License
[MIT License](/LICENSE) – Free to use, modify, and share.