Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

skale.py-core

Core settings and types for SKALE node. Lightweight — no web3 or sgx dependencies.

Installation

pip install skale.py-core

Usage

Types

from skale_core.types import EnvType, NodeType, NodeMode, SchainName

node_type: NodeType = 'skale'
node_mode: NodeMode = 'active'
env: EnvType = 'mainnet'
name: SchainName = SchainName('my-chain')

Writing settings files

from pathlib import Path
from skale_core.settings import write_internal_settings_file, write_node_settings_file, SkaleSettings

write_internal_settings_file(
    path=Path('/etc/skale/node.toml'),
    data={'node_type': 'skale', 'node_mode': 'active', 'skale_dir_host': '/etc/skale'},
)

write_node_settings_file(
    path=Path('/etc/skale/settings.toml'),
    settings_type=SkaleSettings,
    data={
        'env_type': 'mainnet',
        'endpoint': 'http://localhost:8545',
        'node_version': '1.0.0',
        'block_device': '/dev/sda',
        'manager_contracts': '0x1',
        'ima_contracts': '0x2',
        'sgx_url': 'https://sgx.example.com',
        'docker_lvmpy_version': '1.0.0',
    },
)

Reading settings at runtime

from skale_core.settings import get_settings, SkaleSettings

settings = get_settings(SkaleSettings)
print(settings.endpoint, settings.env_type)

Release files for skale.py-core 7.14.dev3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skale.py-core 7.14.dev3
File Size Uploaded
skale_py_core-7.14.dev3.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for skale.py-core 7.14.dev3
File Interpreter ABI Platform
skale_py_core-7.14.dev3-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / skale_py_core-7.14.dev3.tar.gz

Download URL skale_py_core-7.14.dev3.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e898de450a3a8533f686b9d43ae563d20bbaab6d8b622d7d9064c70a5f188b5e
BLAKE2b-256 checksum
How to use checksums
47e9826c7f4584987d2796211b181ee42bbcf4cb3c5fa2c79ab56dac298b8ba0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / skale_py_core-7.14.dev3-py3-none-any.whl

Download URL skale_py_core-7.14.dev3-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30e38731a9093577e5df8f07eeec4cb71fd88738c8ae72c6e4d2e9f76a5c9be9
BLAKE2b-256 checksum
How to use checksums
354924db6ac5a90a27df61abd83a4008ddbc7bbe556dbe718fa2eaa6ab093ab5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page