Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
[![PyPI - License](https://img.shields.io/pypi/l/Grayven.svg?logo=Python&label=License&style=flat-square)](https://opensource.org/licenses/MIT)

[![prek](https://img.shields.io/badge/prek-enabled-informational?logo=prek&style=flat-square)](https://github.com/j178/prek)
[![Ruff](https://img.shields.io/badge/ruff-enabled-informational?logo=ruff&style=flat-square)](https://github.com/astral-sh/ruff)
[![Ty](https://img.shields.io/badge/ty-enabled-informational?logo=ruff&style=flat-square)](https://github.com/astral-sh/ty)
[![Ruff](https://img.shields.io/badge/Ruff-enabled-informational?logo=ruff&style=flat-square)](https://github.com/astral-sh/ruff)
[![ty](https://img.shields.io/badge/ty-enabled-informational?logo=ruff&style=flat-square)](https://github.com/astral-sh/ty)

[![Linting](https://github.com/Metron-Project/Grayven/actions/workflows/linting.yaml/badge.svg)](https://github.com/Metron-Project/Grayven/actions/workflows/linting.yaml)
[![Testing](https://github.com/Metron-Project/Grayven/actions/workflows/testing.yaml/badge.svg)](https://github.com/Metron-Project/Grayven/actions/workflows/testing.yaml)
Expand All @@ -25,10 +25,17 @@ pip install Grayven
### Example Usage

```python
from grayven.cache import SQLiteCache
from datetime import timedelta
from pathlib import Path

from grayven.grand_comics_database import GrandComicsDatabase

session = GrandComicsDatabase(email="email@example.com", password="password", cache=SQLiteCache())
session = GrandComicsDatabase(
email="email@example.com",
password="Password",
cache=Path("cache.sqlite"), # Optional, defaults to ~/.cache/grayven/cache.sqlite
cache_expiry=timedelta(days=1), # Optional, defaults to 14 days
)

# Search for Series
results = session.list_series(name="Green Lantern")
Expand Down
1 change: 0 additions & 1 deletion docs/grayven/cache/index.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/grayven/cache/schemas.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/grayven/cache/sqlite_cache.md

This file was deleted.

20 changes: 11 additions & 9 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
[![PyPI - License](https://img.shields.io/pypi/l/Grayven.svg?logo=Python&label=License&style=flat-square)](https://opensource.org/licenses/MIT)

[![prek](https://img.shields.io/badge/prek-enabled-informational?logo=prek&style=flat-square)](https://github.com/j178/prek)
[![Ruff](https://img.shields.io/badge/ruff-enabled-informational?logo=ruff&style=flat-square)](https://github.com/astral-sh/ruff)
[![Ty](https://img.shields.io/badge/ty-enabled-informational?logo=ruff&style=flat-square)](https://github.com/astral-sh/ty)
[![Ruff](https://img.shields.io/badge/Ruff-enabled-informational?logo=ruff&style=flat-square)](https://github.com/astral-sh/ruff)
[![ty](https://img.shields.io/badge/ty-enabled-informational?logo=ruff&style=flat-square)](https://github.com/astral-sh/ty)

[![Linting](https://github.com/Metron-Project/Grayven/actions/workflows/linting.yaml/badge.svg)](https://github.com/Metron-Project/Grayven/actions/workflows/linting.yaml)
[![Testing](https://github.com/Metron-Project/Grayven/actions/workflows/testing.yaml/badge.svg)](https://github.com/Metron-Project/Grayven/actions/workflows/testing.yaml)
Expand All @@ -25,10 +25,17 @@ pip install Grayven
### Example Usage

```python
from grayven.cache import SQLiteCache
from datetime import timedelta
from pathlib import Path

from grayven.grand_comics_database import GrandComicsDatabase

session = GrandComicsDatabase(email="email@example.com", password="password", cache=SQLiteCache())
session = GrandComicsDatabase(
email="email@example.com",
password="Password",
cache=Path("cache.sqlite"), # Optional, defaults to ~/.cache/grayven/cache.sqlite
cache_expiry=timedelta(days=1), # Optional, defaults to 14 days
)

# Search for Series
results = session.list_series(name="Green Lantern")
Expand All @@ -48,8 +55,3 @@ print(result.on_sale_date)
## Bugs/Requests

Please use the [GitHub issue tracker](https://github.com/Metron-Project/Grayven/issues) to submit bugs or request features.

## Contributing

- When running a new test for the first time, set the environment variables `GCD_EMAIL` to your GCD email address and `GCD_PASSWORD` to your GCD password.
The responses will be cached in the `tests/cache.sqlite` database without your credentials.
3 changes: 0 additions & 3 deletions grayven/cache/__init__.py

This file was deleted.

20 changes: 0 additions & 20 deletions grayven/cache/schemas.py

This file was deleted.

139 changes: 0 additions & 139 deletions grayven/cache/sqlite_cache.py

This file was deleted.

Loading
Loading