🦀 Fake Data Generator written in Rust - fully inspired by https://mimesis.name 🐍
All localizations are enabled by default feature, you can specify localizations in features! ```toml [dependencies.warlocks-cauldron] version = "0.26.3"
```
There are currently 26 languages available: cs, da, de, el, en, es, et, fa, fi, fr, hu, is, it, ja, kk, ko, nl, no, pl, pt, ru, sk, sv, tr, uk, zh
Visit /examples
for detailed examples. In the process of development it was decided to make the workflow as close to mimesis as possible, most of the methods and namespace were taken from there.
``` rust
use warlocks_cauldron::*;
fn main() { // A common option for most providers let complex = ComplexProvider::new(Locale::EN); println!("Person: {}", complex.person.fullname(None, false)); println!("Telephone: {}", complex.person.telephone(None)); println!("Address: {}", complex.address.fulladdress()); println!("Birthday: {}", Datetime::date(1940, 2000)); println!("Weight: {} kg", Person::weight(30, 90)); println!("Height: {} m", Person::height(1.5, 2.0));
// But you can also use single providers
let russian_person = Person(Locale::RU);
println!("Their Russian friend: {}", russian_person.full_name(None, false));
} ```
This project is licensed under the GPL-3.0 license