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.

Files for cs2tc, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size cs2tc-0.1.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View
Filename, size cs2tc-0.1.1-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page