Skip to main content

python for asset management

Project description

Sovai Python SDK package Publish Sovai SDK to TestPyPI

SovAI SDK Tool Kit Package

Python SDK Tool Kit, which provides some functions that help you fast receive information from Cloud API.

Quick start

Prerequisites:

  • Python 3.8+

Create the main app with authorization

import sovai as sv

# There are three ways how to login to the API

# 1. Configuration API connection
sv.ApiConfig.token = "super_secret_token"
sv.ApiConfig.base_url = "https://google.com"

# 2. Read token from .env file e.g API_TOKEN=super_secret_token
sv.read_key('.env')

# 3. The Basic authentication method
sv.basic_auth("test@test.com", "super_strong_password")

# And then continue working with get some data from API and manipulating them

Retrieve data from different endpoints from the API server

# Retrieve data
gs_df = sv.get("bankruptcy/monthly", params={"version": 20221013})

Retrieve charts data with plotting graphs

# Retrieve data with plotting special flag `plot=True`
data_pca = sv.get(
    endpoint="bankruptcy/charts", params={"tickers": "A", "chart": "pca"}, plot=True
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sovai-0.2.15.tar.gz (167.6 kB view details)

Uploaded Source

Built Distribution

sovai-0.2.15-py3-none-any.whl (203.7 kB view details)

Uploaded Python 3

File details

Details for the file sovai-0.2.15.tar.gz.

File metadata

  • Download URL: sovai-0.2.15.tar.gz
  • Upload date:
  • Size: 167.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure

File hashes

Hashes for sovai-0.2.15.tar.gz
Algorithm Hash digest
SHA256 794cdccfbd4d4cf167eb84f0bb71e2833e6dfdc89b9c79ae63bb0b2ba02af9dc
MD5 bc5461605360ff1aaee9f65d6b181e24
BLAKE2b-256 04151f0acd17c699bd4cb5a3a71b1defed10f4ff577b6f4042ba29a3bf9d7d41

See more details on using hashes here.

File details

Details for the file sovai-0.2.15-py3-none-any.whl.

File metadata

  • Download URL: sovai-0.2.15-py3-none-any.whl
  • Upload date:
  • Size: 203.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.5 Linux/6.5.0-1025-azure

File hashes

Hashes for sovai-0.2.15-py3-none-any.whl
Algorithm Hash digest
SHA256 1b056acc2050f0b1ffef1e40300111e06e5fec91faf6d52d5f9408a42429ed80
MD5 5dece4add7f3e61f039510dd54b3f8b2
BLAKE2b-256 c848c23bb8654690cab77b0ecec2b0f3a653cf828a3f34f16da954c8659bb340

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page