OpenFisk is an open-source Python library that collects functions for tax-related calculations.
Project description
OpenFisk
OpenFisk is an open-source Python library that collects functions for tax-related calculations.
Features
- Comprehensive: Supports income, sales, and asset tax calculations.
- Global: Provides modules per geography to account for regional tax models.
- Current: Regularly updated to reflect the latest tax laws.
- Collaborative: Improved through community contributions.
- Efficient: Optimized for performance, integrates with
numpy.
Installation
To install OpenFisk, run the following command:
pip install openfisk
Quick Start
Here's an example of how to calculate income tax using OpenFisk, using the income tax model for the Netherlands:
import numpy as np
from openfisk.nl.income import calculate_income_tax
# Example incomes to calculate tax for
taxable_incomes = np.array([10000, 30000, 50000])
# Define tax bands (lower bounds) for the progressive tax system
tax_bands = np.array([0, 20000, 40000, np.inf])
# Define the tax rates for the respective bands
tax_rates = np.array([0.1, 0.2, 0.3])
# Calculate the income tax for each income in taxable_incomes
taxes_due = calculate_income_tax(taxable_incomes, tax_bands, tax_rates)
# Output the tax due for each income level
print(taxes_due)
Contributing
We are looking for contributors! Please read the Contribution Guide for details on our code of conduct, and the process for submitting pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openfisk-0.1.0.tar.gz.
File metadata
- Download URL: openfisk-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50405c7bd5f88aff46b9b562d87e94f5f4df443bfcda73768f61b87c94f0f4c6
|
|
| MD5 |
318f7ab74931cf289f096371f1eb0f48
|
|
| BLAKE2b-256 |
5737e08b38453f3ed2923bdb22620d61a4ceb128d1999c8140127bb1da5c090a
|
File details
Details for the file openfisk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openfisk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a4836ba32eee556fa51023ef81f77d5856a0ce6ee3ae9ede14d3520eb5f5420
|
|
| MD5 |
b9145c306704ce659a54136726fc715d
|
|
| BLAKE2b-256 |
d987b7c22a82f3ab73ada3a34f665fa4d759ac067fa3f8381ff405a7b2d07527
|