Skip to main content

tapcolor

Official Python client for the TapColor Developer API — browse coloring categories and collections over a simple REST API.

Install

pip install tapcolor

Quickstart

from tapcolor import TapColor

tc = TapColor("YOUR_API_KEY")

# List categories
cats = tc.categories()
print(cats["total"], "categories")

# List collections (filter + search + pagination)
page = tc.coloring_pages(category="animals", limit=20)
for c in page["items"]:
    print(c["subtopic"], "->", c["url"])

# Iterate EVERY collection, auto-paginated
for c in tc.all_coloring_pages(category="animals"):
    print(c["subtopicSlug"])

API

TapColor(api_key, base_url=..., session=None, timeout=15.0)

Arg Default Notes
api_key — Required. Sent as the api-key header.
base_url https://api.tapcolor.app Override for testing/staging.
session new requests.Session Reuse your own session/retries.
timeout 15.0 Per-request timeout (seconds).

tc.categories() -> dict

Lists all 25 categories.

tc.coloring_pages(category=None, q=None, limit=None, offset=None) -> dict

Lists collections. category is a category slug (e.g. "animals"); q searches names; limit is 1–100 (default 20); offset paginates.

tc.all_coloring_pages(category=None, q=None, limit=100) -> Iterator[dict]

Auto-paginates and yields every matching collection.

Errors

Any non-2xx response raises TapColorError with .status and .body:

from tapcolor import TapColor, TapColorError

try:
    TapColor("bad-key").categories()
except TapColorError as err:
    print(err.status, err.message)  # 401 "invalid or missing api-key"

Rate limit: 120 requests / 10 minutes per key → 429.

License

MIT © TapColor

Metadata

Release files for tapcolor 1.0.0

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

Source distribution (sdist)

Source distribution for tapcolor 1.0.0
File Size Uploaded
tapcolor-1.0.0.tar.gz 3.1 kB Details

Built distribution (wheel)

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

Total release size: 6.9 kB

Release files / tapcolor-1.0.0.tar.gz

Download URL tapcolor-1.0.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
39769a2eb6ab5e3b8a0472f52d0b7b0d4747c957a67df5de0c714f697b7a9b78
BLAKE2b-256 checksum
How to use checksums
9aa1600390613a88f348b49ca0f339b7502454993cf0d51f30ad3586c8345205
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.8

Release files / tapcolor-1.0.0-py3-none-any.whl

Download URL tapcolor-1.0.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d70c5d1f2625319337caee053c6008b03f548bbae8dd7fa9c928ca016326e115
BLAKE2b-256 checksum
How to use checksums
df07bd12b3111012a027aec7c93ac567bd017493db17c64b83b04e8ac61292f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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