FOCUS Converter
The FOCUS Converter is a command-line utility to convert billing data files from popular public cloud providers, such as Amazon Web Services, Microsoft Azure, Google Cloud and Oracle Cloud, into the common schema known as FOCUS. You can read the specification at FinOps-Open-Cost-and-Usage-Spec/FOCUS_Spec.
The converter is optimized for:
- Ability to act on the large files and wire formats provided by cloud providers.
- Comprehensibility of the conversion process which encodes an understanding of the specification as-written.
- Best-effort conversion where the appropriate data for FOCUS does not exist in the provider's data file.
- Modularity so that new types of billing data can be supported.
Currently Supported Cloud Providers
Want to add your own? See CONTRIBUTING.md
Conversion Rules
The conversion rules are defined in YAML files in the conversion_configs directory. Each file contains a list of
conversion rules, which are applied in order.
Rules are also exported per provider in the following directories based on format:
- Markdown: Rules Export Markdown
- CSV: Rules Export CSV
Installation
The FOCUS converter supports Python 3.9 and above. If you meet these requirements, you can install with pip:
pip install focus_converter
After this, you will have a script called focus-converter in your path.
Example Usage
focus-converter convert --provider aws --data-path path/to/aws/parquet/cur/ --data-format parquet --parquet-data-format dataset --export-path /tmp/output/
Use focus-converter list-providers to see the other providers that are supported.
Development setup
- Clone this repository.
- Install Poetry if you don't have it.
- Install libmagic if you don't have it.
- Run the following shell snippet:
cd focus_converter_base/
poetry install --only main --no-root
Before using python -m focus_converter.main as a substitute for the pre-installed focus-converter script and testing
repository changes, ensure to run the poetry shell command to set up the environment correctly.
Provider Progress
Look at pie charts showing the progress of the conversion for each provider. For each provider there is a pie chart showing number of FOCUS dimensions added to the conversion plan vs pending.
License
This project is licensed under the terms of the MIT license.
Contributing
We're excited to work together. Please see CONTRIBUTING.md for information on how to get started.
Metadata
Release files for focus-converter 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| focus_converter-1.0.0.tar.gz | 43.1 kB | Without provenance | Details for focus_converter-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| focus_converter-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for focus_converter-1.0.0-py3-none-any.whl |
Total release size: 149.5 kB
Release files / focus_converter-1.0.0.tar.gz
| Download URL | focus_converter-1.0.0.tar.gz |
|---|---|
| Size | 43.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
810a3156d55fcb2f5d206278e7f6b35cef03bdde1abb32476642c0cb3aac2821
|
|
BLAKE2b-256 checksum How to use checksums |
74bcf89f61b733b93577130df8d4a993819ebbf409ce624a47a9bc233e58e877
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / focus_converter-1.0.0-py3-none-any.whl
| Download URL | focus_converter-1.0.0-py3-none-any.whl |
|---|---|
| Size | 106.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5f2b4f8dd65aa99e4eb125f9c5f717a16f4633e75b218fb76573668163aad28
|
|
BLAKE2b-256 checksum How to use checksums |
4b664d59cf51dc3938ba3af923651dd81ce8ae1b4e0ce293045dd220d31de59d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for focus-converter 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.