Skip to main content

Helper functions for converting Compute Studio parameters to a format compatible with Tax-Calculator.

Project description

cs2tc

Helper functions for converting Compute Studio parameters to a format compatible with Tax-Calculator.

pip install -U cs2tc
import cs2tc

adj = {
    "STD": [
        {"MARS": "single", "year": 2019, "value": 10},
        {"MARS": "mjoint", "year": 2019, "value": 1},
        {"MARS": "mjoint", "year": 2022, "value": 10}
    ],
    "STD_checkbox": [{"value": False}]
}

cs2tc.convert_policy_adjustment(adj)

# {'STD': [{'MARS': 'single', 'year': 2019, 'value': 10},
#   {'MARS': 'mjoint', 'year': 2019, 'value': 1},
#   {'MARS': 'mjoint', 'year': 2022, 'value': 10}],
#  'STD-indexed': [{'value': False}]}

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

cs2tc-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

cs2tc-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file cs2tc-0.1.1.tar.gz.

File metadata

  • Download URL: cs2tc-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for cs2tc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7d1a21267e74d88516a711de37defb32576f4a5e7f8c242662d53d0c856c8f72
MD5 0b254390acc6eb19c8e2e463529a4442
BLAKE2b-256 435e762643161d11fad86f6b8bd27f4f46c79b7a69bbe7bb5f0913253274ff09

See more details on using hashes here.

File details

Details for the file cs2tc-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cs2tc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for cs2tc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40f6b4b05bd5c76ba3686908b376fe332890dedc5a20b4f32eca26e62c6cdd3d
MD5 e317a9bbe7e7ac9630b8afefcc6811cb
BLAKE2b-256 82c3e219ea4c5919afdb75bda699d729e01990826a4abd00b2dd56deef8dd65e

See more details on using hashes here.

Supported by

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