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.0.tar.gz (19.2 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.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for seagrin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d3b9a710974e7a4498879bcca3634b3ac7b9daf617377d3ab3c11e91e514c96f
MD5 33d27d2cfe580d414f28908fea97e880
BLAKE2b-256 e3c1fea3c529d32ab6234317285f8084192b21cf89143697f732b19c51b041f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seagrin-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b35d3b32a9444d2b6cecdb9cfe2fea7c217ac327dca046f8b2689fd8aee153e
MD5 47b3ff38bfa8837474a78b7d4ed502e0
BLAKE2b-256 7972bcb1c53e2f874e8390670eef277656997d1bbe040fa47dc0a8062392f668

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