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

Uploaded Source

Built Distribution

sovai-0.2.2-py3-none-any.whl (202.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sovai-0.2.2.tar.gz
Algorithm Hash digest
SHA256 10a1c33aac638f7cc86656040e498e8d8173806d965a0ae0a22990669e454b9d
MD5 857e1ec5d7ae2545f89e178f7c7091e1
BLAKE2b-256 749cf5c061de9fff5e2a2a63d35bf1b5d6b18f6044a67b54cc95a28a3b9e565a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sovai-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3dadc5499517ab03c772bc76d17b0932014509f84c856ff3e99ef1659e98f36
MD5 6492fd23111f7e96c7e42176e39b0b50
BLAKE2b-256 e956f0b7ef1bc9cb7a064a8e5f4ef10da77fc596ccec2ab20cd29b72d9174b45

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