holidayfyi 0.1.1

Holiday dates, Easter calculation, and 200+ country calendars — async API client for holidayfyi.com.
Documentation

holidayfyi

crates.io License: MIT

Holiday dates, Easter calculation, and 200+ country calendars — API client for holidayfyi.com.

Try the interactive tools at holidayfyi.com

Install

cargo add holidayfyi

Quick Start

use holidayfyi::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new();
    let result = client.search("christmas").await?;
    println!("{} results", result.total);
    Ok(())
}

Also Available

Platform Package Link
Python pip install holidayfyi PyPI
npm npm install holidayfyi npm
Go go get github.com/fyipedia/holidayfyi-go pkg.go.dev
Rust cargo add holidayfyi crates.io
Ruby gem install holidayfyi rubygems

Embed Widget

Embed HolidayFYI widgets on any website with holidayfyi-embed:

<script src="https://cdn.jsdelivr.net/npm/holidayfyi-embed@1/dist/embed.min.js"></script>
<div data-holidayfyi="entity" data-slug="christmas"></div>

Zero dependencies · Shadow DOM · 4 themes (light/dark/sepia/auto) · Widget docs

Links

License

MIT