Client for Vantage
This SDK is a Python client built around the Vantage API, providing a streamlined interface to work with numerous API endpoints. It leverages asynchronous programming and concurrency to efficiently handle data retrieval across multiple pages, significantly reducing wait times through parallel request processing. It also provides comprehensive type support through Pydantic 2.0 BaseModels, which were generated by parsing the API's OpenAPI spec. This ensures type safety and provides excellent IDE autocompletion while maintaining strict validation of request and response data - no need to constantly refer to the API documentation.
Usage
Install the library
uv add client-for-vantage
Inititate the SDK
from vantage_sdk import VantageSDK
from vantage_sdk.models import (
CreateCostReport,
CreateCostReportChartType,
CreateCostReportDateBin,
)
vantage = VantageSDK(vantage_api_key)
cost_report = CreateCostReport(
title="Test Cost Report",
workspace_token="workspace_abcdef123456",
groupings="provider,service,region",
filter="costs.provider = 'aws'",
saved_filter_tokens=["sf_1", "sf_2"],
business_metric_tokens_with_metadata=[business_metric_1, business_metric_2],
folder_token="folder_abcdef123456",
settings=settings,
previous_period_start_date="2024-01-01",
previous_period_end_date="2024-01-31",
start_date="2024-02-01",
end_date="2024-02-28",
chart_type=CreateCostReportChartType.line,
date_bin=CreateCostReportDateBin.cumulative,
)
response = vantage.create_cost_report(cost_report)
Supported Endpoints
This SDK supports all endpoints from the Vantage API. Most endpoints are covered by live API tests, but a small set of methods are skipped in CI because they require special permissions or account configuration. Those skipped methods are expected to work based on the OpenAPI spec and we keep the request and response models aligned with it, but we cannot validate them in automated tests. The remaining methods are verified against the live API and are expected to work as implemented.
Endpoints with Testing Limitations
The following endpoints are available but should be used with caution as they have limited automated test coverage
- Anomaly Alerts: API access is limited as these can only be created via the UI
- Billing Rules: Requires special enterprise permissions
- Managed Accounts: Requires special enterprise permissions
- Resources: Performance issues with bulk operations
- Tags: Limited test coverage
- Unit Costs: Requires actual cost data for exports
- User Feedback: Limited testing to avoid creating test data in production
- Workspaces: Limited testing to avoid affecting production workspaces
- Teams: Sandbox account lacks team permissions, so related tests are skipped in VCR recordings
- Tags: Sandbox account has no tags configured, so tag update and value tests are skipped in VCR recordings
Contributing
See CONTRIBUTORS.md for development setup, testing guidelines, and instructions for regenerating models.
Testing
See CONTRIBUTORS.md for VCR-backed and live testing workflows.
Metadata
Release files for client-for-vantage 2.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| client_for_vantage-2.2.1.tar.gz | 98.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| client_for_vantage-2.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 425.8 kB
Release files / client_for_vantage-2.2.1.tar.gz
| Download URL | client_for_vantage-2.2.1.tar.gz |
|---|---|
| Size | 98.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3706b127b96312462cfc3c91e4f41b4535c860d60623dd7e348aab1287108bf
|
|
BLAKE2b-256 checksum How to use checksums |
3c05e6b50a2a66abbbe1feb25ea1e81149082ff31dfd689848a25af6095bc137
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logRelease files / client_for_vantage-2.2.1-py3-none-any.whl
| Download URL | client_for_vantage-2.2.1-py3-none-any.whl |
|---|---|
| Size | 327.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
364087456c46cf7ef82f6cf6669c4d6be1f1e1ad23ea47973458f18ad0a8dfee
|
|
BLAKE2b-256 checksum How to use checksums |
9df5328e801eacf7773637665b7fb19e783ac9666abd935441095294207e02e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency log