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
File details
Details for the file sparecores_data-0.3.1.tar.gz
.
File metadata
- Download URL: sparecores_data-0.3.1.tar.gz
- Upload date:
- Size: 202.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d12d22ceee411fa781ab40525afa83c9d74327b6b8b92c25666be824e4e3fcb0 |
|
MD5 | 41b0c1e84f8f7eda0349238f71cfda02 |
|
BLAKE2b-256 | 84b73b0dbf40d92a27f9641749d45e95e4eb21fad8ad22a60d1ee6b2bfdff220 |
File details
Details for the file sparecores_data-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: sparecores_data-0.3.1-py3-none-any.whl
- Upload date:
- Size: 200.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cc7291b8d525666567a907b3df3bb608f345aad6d92b872e59da2b908ffdf21 |
|
MD5 | 2be09a4f9fbf61d66769aa03af6a3b43 |
|
BLAKE2b-256 | c957730747d735ef9d2bf85bb83b203a19ecce4eb6c24256ad759fde742c26c3 |