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

Uploaded Source

Built Distribution

sovai-0.2.25-py3-none-any.whl (214.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sovai-0.2.25.tar.gz
  • Upload date:
  • Size: 177.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.8.0-1014-azure

File hashes

Hashes for sovai-0.2.25.tar.gz
Algorithm Hash digest
SHA256 24ac4a15526c6fc66aa69c2a766f9f23ffa245ac0f2d66dd80428766187bdb68
MD5 d12a9e5ad0541ddef938dce1493d7130
BLAKE2b-256 9675a688059a98d90c2a76b55dd8aaf7d24b88ddf1360702c95763c974bb4717

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sovai-0.2.25-py3-none-any.whl
  • Upload date:
  • Size: 214.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.8.0-1014-azure

File hashes

Hashes for sovai-0.2.25-py3-none-any.whl
Algorithm Hash digest
SHA256 64b382f3207e0060eec5411e9303d70f9c3a5a145807ef9a77f0ecf2413ff7d2
MD5 57eef7b19c0559d8feeef54cd0c5e8d0
BLAKE2b-256 1833c3549d5e0acfbf904e3c0d368c228828d53cd180d2ef3b3aec4912b009a0

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