Crates.io | mystic |
lib.rs | mystic |
version | 0.1.10 |
source | src |
created_at | 2023-04-16 09:08:34.291013 |
updated_at | 2023-04-16 09:08:34.291013 |
description | A set of tools for interpertation of tarot, astrology etc. |
homepage | |
repository | https://github.com/mrchantey/forky |
max_upload_size | |
id | 840443 |
size | 64,188 |
This crate can be used either as a CLI, see examples/cli
, or as a library. It uses ChatGPT for interpretation, but this is not required. If you are using that then you'll need a .env
containing your CHATGPT_KEY
, ie:
#.env at root
CHATGPT_KEY=foo
let mut deck = TarotDeck::new();
deck.shuffle();
let spread = spread::PastPresentFuture::new(&mut deck);
let gpt = ChatGptInstance::new()?;
println!("interpreting your spread...\n{}", spread.print());
let result = spread.interpret(&gpt).await?;