Structured data collected by sparecores-crawler.
Project description
Spare Cores Data
SC Data is a Python package and related tools making use of
sparecores-crawler
to pull and
standardize data on cloud compute resources. This repository actually
runs the crawler every 5 minutes to update spot prices, and every hour
to update all cloud resources in an internal SCD table and public
SQLite snapshot as well.
Installation
Stable version from PyPI:
pip install sparecores-data
Most recent version from GitHub:
pip install "sparecores-data @ git+https://git@github.com/SpareCores/sc-data.git"
Usage
For easy access to the most recent version of the SQLite database
file, import the db
object of the sc_data
Python package, which
runs an updater thread in the background to keep the SQLite file
up-to-date:
from sc_data import db
print(db.path)
By default, the SQLite file will be updated every 600 seconds, which
can be overwritten by the sc_data_db_refresh_seconds
builtins
attribute or the SC_DATA_DB_REFRESH_SECONDS
environment variable.
Similarly, you van set the following environment variables:
SC_DATA_NO_UPDATE
SC_DATA_DB_PATH
SC_DATA_DB_URL
SC_DATA_DB_REFRESH_SECONDS
SC_DATA_HTTP_TIMEOUT
References
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
Built Distribution
Hashes for sparecores_data-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cc7291b8d525666567a907b3df3bb608f345aad6d92b872e59da2b908ffdf21 |
|
MD5 | 2be09a4f9fbf61d66769aa03af6a3b43 |
|
BLAKE2b-256 | c957730747d735ef9d2bf85bb83b203a19ecce4eb6c24256ad759fde742c26c3 |