Skip to main content

Python library for advanced tax policy analysis

Project description

Org PSL cataloged OS License: CCO-1.0 Jupyter Book Badge
Package Python 3.11 Python 3.12 Python 3.13 PyPI Latest Release PyPI Downloads Anaconda
Testing example event parameter example event parameter Codecov

Tax-Brain

Tax-Brain is a Python package that wraps two models, Tax-Calculator and Behavioral Responses, in one easy to use interface for producing revenue estimates and distributional analysis of tax policy changes.

We are seeking contributors and maintainers. If you are interested in joining the project as a contributor or maintainer, open a new issue and ping @jdebacker -- or just jump right in.

Complete documentation is available at taxbrain.pslmodels.org.

Overview

Tax-Brain makes it easy for users to simulate the US tax system by providing a single interface for multiple tax models. Currently, Tax-Brain interfaces with Tax-Calculator and Behavioral-Responses. Additional models will be added in the near future to expand Tax-Brain's capabilities to include modeling business taxation and running dynamic general equilibrium simulations.

To learn more about how Tax-Brain works, see the Tax-Brain documentation.

Disclaimer

Tax-brain and its underlying models are constantly being improved upon. For that reason, the results output by Tax-Brain may differ over time. It is strongly suggested that the user make note of which version of Tax-Brain, they are using when reporting their results.

Installing Tax-Brain

You can install the latest official release from PyPI using this command: pip taxbrain.

Similarly, you can update to the latest release of Tax-Brain using pip install -U taxbrain.

Tax-Brain is no longer maintained on Conda.

Using Tax-Brain

View the sample code in example.py to see how to run Tax-Brain. Or, see the user guide for a more detailed walk through.

Citing Tax-Brain

Please cite the source of your analysis as "Tax-Brain release #.#.#, author's calculations." If you would like to link to Tax-Brain, please use https://github.com/PSLmodels/Tax-Brain. It is also strongly suggested that you describe your input data and note the versions of the underlying models.

Tax-Brain Interface

In addition to its Python API, Tax-Brain has also been used to power web applications on Compute Studio and other platforms. An application used to be available at here. The code behind the GUI web application can be found in this repository in the cs-config directory.

Additional Information

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taxbrain-2.8.1.tar.gz (158.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taxbrain-2.8.1-py3-none-any.whl (54.4 kB view details)

Uploaded Python 3

File details

Details for the file taxbrain-2.8.1.tar.gz.

File metadata

  • Download URL: taxbrain-2.8.1.tar.gz
  • Upload date:
  • Size: 158.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for taxbrain-2.8.1.tar.gz
Algorithm Hash digest
SHA256 4c4c574624d8af41839dc1a649cda81841598241f648abfd2d8b12eb0bfc7059
MD5 b32189cb31546300d4f3030ec3ecb6dc
BLAKE2b-256 b24a5b772adff69c90e503746e1d26c82a75528e668fe3954174ba711503bdf5

See more details on using hashes here.

File details

Details for the file taxbrain-2.8.1-py3-none-any.whl.

File metadata

  • Download URL: taxbrain-2.8.1-py3-none-any.whl
  • Upload date:
  • Size: 54.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for taxbrain-2.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fc98ce0a49c04c5e29e6292bd298f633b72b1faf6165c230d69f5997cf6c285
MD5 783066775ea03cc6875c0617519aeacb
BLAKE2b-256 ad3450f9e9397faaef83105c5123d6e0725cade227b3ea96db2e2b90cc3fa4dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page