Skip to main content

RichView Python SDK

This Python SDK allows you to interact with the RichView API to manage your reports. You can authenticate, retrieve, duplicate, update, and delete reports. You can also manage the charts within the reports.

Installation

To install the SDK, you can use pip:

pip install richviewsdk

Usage

Here is a typical use case:

# Import necessary libraries
import pandas as pd
import numpy as np
from richviewsdk import RichViewSession, ParagraphBlock

# Step 1: We authenticate using our PW and Password
with open('pws.txt') as f:
    email, password = f.read().split(',')
session = RichViewSession.authenticate_with_password(email, password)

# Step 2: Lets retrieve all the RichView reports in our account
reports = session.get_reports()

# Step 3: Lets choose the report named GummiesJune23 of the reports and retrieves it
old_report = next(report for report in reports if report.title == 'GummiesJune23')

# Step 4: Lets duplicate the report and renames it GummiesJuly23
report = old_report.duplicate()
report = report.set_title('GummiesJuly23')

# Step 5: Lets query the report for all the charts
charts = report.get_charts()

# Step 6: Lets  now get the chart we want to update by it's ID
chart_id = [chart.block_id for chart in charts if chart.title == 'Gummy Bear Price Index'][0]
chart = report.get_chart(chart_id)

# Step 7: Lets retrieve the data of the chart to see how it's structured
old_data = chart.get_data()

# Step 8: Lets generate a fresh of data for the chart
# This is a placeholder, replace with actual data generation code
new_data = old_data.copy()  # replace with actual data generation code

# Step 9: Lets update the data of the chart and changes the chart type
all_data = pd.concat([old_data, new_data])
all_data = all_data.rename(
    columns={'Gummy Bear Price Index | Line': 'Gummy Bear Price Index | Area'})
chart = chart.set_data(all_data)

# Step 10: Lets update the title of the chart
chart = chart.set_title('Gummy Bear Price Index July Update')

# Step 11: Lets add a paragraph of the text
paragraph = ParagraphBlock(report.report_id, 'I can add some autogenerated text', session)
report.add_block(paragraph)

Documentation

For more detailed documentation, please refer to the official RichView API documentation.

Support

If you encounter any issues or have any questions, please contact our support team at support@therichview.com

Metadata

Release files for richviewsdk 1.0.7

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

Source distribution (sdist)

Source distribution for richviewsdk 1.0.7
File Size Uploaded Provenance Actions
richviewsdk-1.0.7.tar.gz 9.1 kB Without provenance Details for richviewsdk-1.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for richviewsdk 1.0.7
File Interpreter ABI Platform Actions
richviewsdk-1.0.7-py3-none-any.whl Python 3 none any Details for richviewsdk-1.0.7-py3-none-any.whl

Total release size: 17.2 kB

Release files / richviewsdk-1.0.7.tar.gz

Download URL richviewsdk-1.0.7.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9b65ff4215e7d781dce4f395f2651ca26e5e09a0bb1a6604381d3707e7f72d6a
BLAKE2b-256 checksum
How to use checksums
797a47494b62c51870d9ef500e970588c173d4d1afa9d6393e2d6a1a3973fcfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / richviewsdk-1.0.7-py3-none-any.whl

Download URL richviewsdk-1.0.7-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
712c08feef3f444dcc387c69497caabb03d53d6c170398f2053d80dae2b9adfa
BLAKE2b-256 checksum
How to use checksums
8da9b13daa129fb7659ba864bd0dcaa6a6645ef9f8677579dafa4b1048c21d65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for richviewsdk 1.0.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.

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.

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