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


Release history Release notifications | RSS feed

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.79.tar.gz (258.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sovai-0.2.79-py3-none-any.whl (302.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sovai-0.2.79.tar.gz
  • Upload date:
  • Size: 258.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.12.13 Linux/6.17.0-1010-azure

File hashes

Hashes for sovai-0.2.79.tar.gz
Algorithm Hash digest
SHA256 d15bd2be80038af495b1bec2994a414b0c9476fee29bc96c1c92576b7054eb64
MD5 eeb1aa530cddd92756961720d7eb278e
BLAKE2b-256 efbfa684949b6954b4b95e338cc837005d1f7e098755e7c506f14b6801fd1b22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sovai-0.2.79-py3-none-any.whl
  • Upload date:
  • Size: 302.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.12.13 Linux/6.17.0-1010-azure

File hashes

Hashes for sovai-0.2.79-py3-none-any.whl
Algorithm Hash digest
SHA256 77400c6ee3512c13721b59acb579db1174dae72f0374459f74cdb3c20d3e5e2f
MD5 04742a0f8cbe0050ae9fabe0021ca039
BLAKE2b-256 deb2d125544655eb87a0de3d768316f6ccea32f1c490dc5243f01ea92ef3e198

See more details on using hashes here.

Supported by

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