GithubHelp home page GithubHelp logo

dirk / sales_tax Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 14 KB

Look up sales tax rates by zip code

Home Page: https://github.com/dirk/sales_tax

License: MIT License

Ruby 100.00%
tax-rate sales-tax tax

sales_tax's Introduction

sales_tax

Interface to the public Avalara TaxRates database for sales taxes in the United States of America. Easily look up combined, state, and county rates by zip code.

Notice: This is a development tool only; it is not intended for use as tax compliance software and should not be relied upon for financial decisions. As detailed in the LICENSE, use of this software is at your own risk. The author(s) disclaim all warranties and by your use of this software you agree to waive the author(s) of any and all liabilities. You should consult with a tax professional before collecting or paying taxes.

Build Status

Installation

Install via Rubygems or add the dependency via Bundler:

# Rubygems directly
gem install sales_tax

# In your Gemfile
gem 'sales_tax'

After installation you will need to download the publicly available CSV data from Avalara's taxrates.com:

# Ensure the gem is loaded when `rake` is called (this is done automatically
# if you're using Rails and the gem is in your Gemfile)
bundle exec rake sales_tax:download

Basic usage

You can look up the tax rates via zip code:

SalesTax['94107']
# => <struct SalesTax::Rate region_name="SAN FRANCISCO COUNTY",
#                           region_code="AIUQ",
#                           combined_rate=0.0875,
#                           state_rate=0.065,
#                           county_rate=0.01,
#                           city_rate=0.0,
#                           special_rate=0.0125>

License

Licensed under the MIT license. See LICENSE for details.

sales_tax's People

Contributors

dirk avatar

Watchers

 avatar  avatar

sales_tax's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.