Skip to main content

Carbon Arc - Python Package

Client for Carbon Arc, an Insights Exchange Platform.

Usage

Installation

pip install carbonarc

Quick Start

Initialize the API client with authentication.

from carbonarc import CarbonArcClient

client = CarbonArcClient(token="<token>") # retrieve token from account

Prisms

Daily reference data: the same prisms and Arrays as the public Prisms page, read with your API token. Values are relative only (YoY index levels and shares).

from carbonarc.prisms import array_to_dataframe, prism_to_dataframe

catalog = client.prisms.list_prisms()          # every live prism and Array, plus `tou`
prism = client.prisms.get_prism(catalog["prisms"][0]["prism_id"])  # one prism, with its `framework`
matches = client.prisms.list_prisms(insight_id=775)  # filter by insight_id and/or entity_id

arrays = client.prisms.list_arrays()["arrays"]
array = client.prisms.get_array(arrays[0]["array_id"])

prism_to_dataframe(prism)   # one row per entity, series and period
array_to_dataframe(array)   # one row per month

An unknown id raises a 404 error and an invalid token a 401.

Resources

Metadata

Release files for carbonarc 1.1.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for carbonarc 1.1.21
File Size Uploaded Provenance Actions
carbonarc-1.1.21.tar.gz 36.3 kB Without provenance Details for carbonarc-1.1.21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for carbonarc 1.1.21
File Interpreter ABI Platform Actions
carbonarc-1.1.21-py2.py3-none-any.whl Python 2, Python 3 none any Details for carbonarc-1.1.21-py2.py3-none-any.whl

Total release size: 81.8 kB

Release files / carbonarc-1.1.21.tar.gz

Download URL carbonarc-1.1.21.tar.gz
Size 36.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ea7240158d76ba7aab16dc668804e7a410d586e147a4d2eeff95fe60e18d21f3
BLAKE2b-256 checksum
How to use checksums
2dcde3ca178d8bd95d5927e729e79337d545071414783986cd846c684272883d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / carbonarc-1.1.21-py2.py3-none-any.whl

Download URL carbonarc-1.1.21-py2.py3-none-any.whl
Size 45.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
028198cd08564ef5ba6bfd47534fe790e6bd80189bd55d428f9c58f2a3aa70f7
BLAKE2b-256 checksum
How to use checksums
028d7b1280c344239389a0ec23f2ff7c96eb42e0f85b65ea4da2dad5ec586320
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for carbonarc 1.1.21

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.

Release history Release notifications | RSS feed

This release

1.1.21 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page