scryers

Crates.ioscryers
lib.rsscryers
version0.1.4
sourcesrc
created_at2024-04-29 05:20:55.29214
updated_at2024-05-12 16:31:04.635239
descriptionA simple alternative to Scryfall with caching and mass image downloading capabilities.
homepagehttps://github.com/KyleMiles/scryrs
repositoryhttps://github.com/KyleMiles/scryrs
max_upload_size
id1223848
size19,402
Kyle Martin (KyleMiles)

documentation

https://github.com/KyleMiles/scryrs

README

scry.rs

A simple alternative to scryfall with caching and mass image downloading capabilities.

use scryers::{
  download_all_cards,
  bulk::{BulkDownload, BulkDownloadType},
};

fn main() {
  // Downloads images for all cards
  scryers::download_all_cards();

  // Allows you to easily iterate over card information, without needing to re-download Scryfall database information (>140Mb!) every time.
  // Lazy loads card info, so initialization speed should be super quick
  let cards = BulkDownload::new("./scryfall.db", BulkDownloadType::DefaultCards).unwrap();
  for card in cards.cards() {
    println!("Image at images/{}-0.jpg", card.name());
  }
}
Commit count: 11

cargo fmt