Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
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
Metadata
Release files for Seagrin 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seagrin-0.5.0.tar.gz | 1.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seagrin-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / seagrin-0.5.0.tar.gz
| Download URL | seagrin-0.5.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9c88dc0ed05142acc5ec83d929684cb2e6a6d6423aca224b0b190e0cbfa5b1a
|
|
BLAKE2b-256 checksum How to use checksums |
3c3ab2edf10a562beda0f1b42eeaedec017fd2292935e00ea02ffaa6aaeb80e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / seagrin-0.5.0-py3-none-any.whl
| Download URL | seagrin-0.5.0-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
135920edcb9491cc0e435dbebd1fa3e10f52b47d1f0b1c51bc4649be92c83782
|
|
BLAKE2b-256 checksum How to use checksums |
c46d66faaf493f0b73271f52b454e17fd8e8774feea9aeaf2dc44af51f34b566
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|