Skip to main content

hardpycover

Simplified API Wrapper for Hardcover, written in Python.

PyPI - Version Python Versions


Introduction

Hardcover is a Goodreads alternative where the focus is on building a better replacement while providing a publicly-accessible API for all users to explore and use in their various other projects.

In this context, hardpycover is born out of an interest to develop a Python API Wrapper in the same vein as TMDB's API. Powered by sgqlc and pydantic, this wrapper intentionally provides an extra layer of abstraction to ensure that the API use is not just effective, but also efficient and safe-to-use.

Installation

pip

pip install hardpycover

uv

uv add hardpycover

Usage

import os
from hardpycover import Hardcover

# Store your API_KEY in an .env file
API_KEY=abcdefg12345

# ...

token = os.environ["API_KEY"]

# create hardcover instance
hc = Hardcover(token=token)

Getting User Information

hc.query.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.

Contributors

License

MIT License – Free to use, modify, and share.

Metadata

Release files for hardpycover 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hardpycover 0.1.5
File Size Uploaded Provenance Actions
hardpycover-0.1.5.tar.gz 82.5 kB Without provenance Details for hardpycover-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hardpycover 0.1.5
File Interpreter ABI Platform Actions
hardpycover-0.1.5-py3-none-any.whl Python 3 none any Details for hardpycover-0.1.5-py3-none-any.whl

Total release size: 174.9 kB

Release files / hardpycover-0.1.5.tar.gz

Download URL hardpycover-0.1.5.tar.gz
Size 82.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a7acc3e102a3eee2b21fb285771a1f9926544b47246eb2fd1f9e384e9706c1a4
BLAKE2b-256 checksum
How to use checksums
1eddc0754bc409155f5f5fbbcf22cfda005b95d64368417f9724fd5ccf54f10b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Release files / hardpycover-0.1.5-py3-none-any.whl

Download URL hardpycover-0.1.5-py3-none-any.whl
Size 92.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51b0981b52668320058484ce7b241b3a929a15bf6881058042fe2ad75c0747a3
BLAKE2b-256 checksum
How to use checksums
7e04ef1515f260391bda258e17f6a578098f4e7c71aa349cf6964c72863b9ad5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.8

Security for hardpycover 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page