#tax #wa #taxes #washington

wataxrate

Tool for getting tax information for addresses in WA State

5 stable releases

1.0.4 Apr 17, 2020
1.0.0 Apr 16, 2020

#16 in #tax

NCSA license

13KB
173 lines

Get some tax info for WA state

Simple lib for getting tax data for addrs in WA State.

First goal is to be simple, with reasonable defaults.

Example

See the example program

cargo run --example get

This is what it looks like in code

// .. in an async environment..

match wataxrate::get("400 Broad St", "Seattle", "98109").await {
    Ok(taxinfo) => println!("Tax rate is {}", taxinfo.rate).
    Err(e) => eprintln!("Error getting tax info: {:?}", e),
}

Gotchas

  • Requires tokio!!

lib.rs:

This library can be used to get tax rates for addresses in WA state! Meant to be super simple.

It gets data from DOR using its XML URL interface defined here.

Note that this needs tokio, as reqwest needs tokio!

Dependencies

~7–12MB
~263K SLoC