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)

Metadata

Release files for skale.py-core 8.0.dev4

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 8.0.dev4
File Size Uploaded Provenance Actions
skale_py_core-8.0.dev4.tar.gz 4.5 kB Without provenance Details for skale_py_core-8.0.dev4.tar.gz

Built distribution (wheel)

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

Total release size: 10.7 kB

Release files / skale_py_core-8.0.dev4.tar.gz

Download URL skale_py_core-8.0.dev4.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
97cbaf9106bc0e6ef668272306cf0fa18c9ddb4af5062ec7d7b40a9fa2bf05e6
BLAKE2b-256 checksum
How to use checksums
db5ac1340c7eb0b2769d122c1d9ad15505a76de5cfecbeee3a76d091f2074a0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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-8.0.dev4-py3-none-any.whl

Download URL skale_py_core-8.0.dev4-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99aad65982e722a66de0a32ae896734b11cdd10660ea94207844b0d65fcb7b0b
BLAKE2b-256 checksum
How to use checksums
9781c61bd9077d3068d7ef0e955aa7f8c7190584ceff8023c1b377d473c988a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","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}

Security for skale.py-core 8.0.dev4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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