A Python wrapper for the Metron API.
Project description
Seagrin
A Python wrapper for the Metron API.
Installation
pip install seagrin
Example Usage
from datetime import timedelta
from seagrin.metron import Metron
from seagrin.cache import SQLiteCache, CachePolicy
policy = Cache(percent=0.1, expiry=timedelta(days=14))
# Policy defaults to 10% and 14 days
session = Metron(username="Username", password="Password", cache=SQLiteCache(), policy=policy)
# Get all Marvel comics for the week of 2026-01-19
this_week = session.list_issues(
params={
"store_date_range_after": "2026-01-19",
"store_date_range_before": "2026-01-26",
"publisher_name": "marvel",
}
)
# Print the results
for iss in this_week:
print(f"{iss.id} {iss.issue_name}")
# Retrieve the detail for an individual issue
asm_68 = session.issue(issue_id=31660)
# Print the issue Description
print(asm_68.desc)
Documentation
Bugs/Requests
Please use the issue tracker to submit bugs or request features.
Socials
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
seagrin-0.2.0.tar.gz
(344.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
seagrin-0.2.0-py3-none-any.whl
(24.0 kB
view details)
File details
Details for the file seagrin-0.2.0.tar.gz.
File metadata
- Download URL: seagrin-0.2.0.tar.gz
- Upload date:
- Size: 344.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca805734cd39a46bd1a8f34a675423f0f49f6ea9bed8996e0091752fc3ea9be9
|
|
| MD5 |
f5e44fe164732404ca209c397aa8a812
|
|
| BLAKE2b-256 |
e5966988ede9ece506b525afb28844d50878da74ee3c816cb02978deb0f9ecd6
|
File details
Details for the file seagrin-0.2.0-py3-none-any.whl.
File metadata
- Download URL: seagrin-0.2.0-py3-none-any.whl
- Upload date:
- Size: 24.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d55ec9540f40a7f46bdcc4fabd6e2c38122857b683ae9812f1ca04f1fd9a5a62
|
|
| MD5 |
304ecc48db7f5ba65f5d10f5189a5033
|
|
| BLAKE2b-256 |
e99c8308d7b7cf7ac2f90a995d0fd9992f4c5ec649738090c81bbe177ddb59d8
|