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.0.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

cs2tc-0.1.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cs2tc-0.1.0.tar.gz
  • Upload date:
  • Size: 1.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.0.tar.gz
Algorithm Hash digest
SHA256 13ae1ac450f5a71a1a9621ee9a537fd621bc867b7a3904d27a22229484ca4c09
MD5 c58856424ab37e16b81530d0a022b53b
BLAKE2b-256 7b75c2a6e3bf53b17c43f9a68c0868c1c5de1e0223257d4a163c8f5c804b420b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cs2tc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3db646ebb42a42c9d2191487f072e5fa9e583d3e4d34a56e568e5a5a6ea6a014
MD5 c82648407d433b20e05b8398cf2c58b3
BLAKE2b-256 33789100f07af7888296eea4c67d02fac9f8f4ce3942fe983b127ba1a269fb6b

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