Skip to main content

A Python wrapper for the Metron API.

Project description

Seagrin

PyPI - Python PyPI - Status PyPI - Version PyPI - License

pre-commit Ruff

status-badge Read the Docs

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

Social - Fosstodon Social - Matrix

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.1.1.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seagrin-0.1.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file seagrin-0.1.1.tar.gz.

File metadata

  • Download URL: seagrin-0.1.1.tar.gz
  • Upload date:
  • Size: 19.0 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

Hashes for seagrin-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7083dd445f5c36b3cd20d5356444f15bc6a301b3bc4404f48f0435e6191e7d76
MD5 c6ccb55e0da6deeacc2481001feb5332
BLAKE2b-256 11f34c7979c10ab3adc8101b63245243a263d01011c927a4734835a9ce14d3c7

See more details on using hashes here.

File details

Details for the file seagrin-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: seagrin-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 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

Hashes for seagrin-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 119feb5e9d5b66f51313b2a02acc3ade7c8a39c7542da130d5f00853aae9199c
MD5 61eca281cc27832acfa69f51d3b0e891
BLAKE2b-256 72cc396e3df106e67fdffd50c35cc4273a8e79159589f62c06b1c63d5948a4b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page