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 pathlib import Path
from seagrin.metron import Metron
session = Metron(
username="Username",
password="Password",
cache=Path("cache.sqlite"), # Optional, defaults to ~/.cache/seagrin/cache.sqlite
cache_expiry=timedelta(days=1), # Optional, defaults to 14 days
)
# 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
seagrin-2026.1.0.tar.gz
(1.1 MB
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
File details
Details for the file seagrin-2026.1.0.tar.gz.
File metadata
- Download URL: seagrin-2026.1.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","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 |
6de5b751a31ecd9fc3e3cd0118cca171d5d238ab5b1b884e3cac1ed3fc4e9f0b
|
|
| MD5 |
8a53f5e05d9eed141b29da60fcb511ba
|
|
| BLAKE2b-256 |
0a80cc21ec6431b8fe7a759c98c4ccdc50befbf86629eb472d1d22992ec161b9
|
File details
Details for the file seagrin-2026.1.0-py3-none-any.whl.
File metadata
- Download URL: seagrin-2026.1.0-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","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 |
56cc7fc0ba9c58f54cfbb43dbdefa4b8f28102601a90948467585c01508f35ae
|
|
| MD5 |
09dba9b302796036b76d089e7de45b80
|
|
| BLAKE2b-256 |
3f4ae5b97779ed67ac2f3419bc11f97c9b53e57b1aceaae605cb5c284ee37821
|