tmp-nepher-cli 0.2.5__py3-none-any.whl
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.
- nepher_cli/__init__.py +10 -0
- nepher_cli/__main__.py +4 -0
- nepher_cli/cli.py +64 -0
- nepher_cli/commands/__init__.py +1 -0
- nepher_cli/commands/account.py +646 -0
- nepher_cli/commands/envhub.py +481 -0
- nepher_cli/commands/hackathon.py +760 -0
- nepher_cli/commands/highlight.py +307 -0
- nepher_cli/commands/simstore.py +49 -0
- nepher_cli/commands/tournament.py +656 -0
- nepher_cli/config.py +47 -0
- nepher_cli/core/__init__.py +1 -0
- nepher_cli/core/credentials.py +243 -0
- nepher_cli/core/http.py +90 -0
- nepher_cli/envhub/__init__.py +1 -0
- nepher_cli/envhub/cache.py +56 -0
- nepher_cli/envhub/config.py +180 -0
- nepher_cli/py.typed +0 -0
- nepher_cli/tournament/__init__.py +1 -0
- nepher_cli/tournament/agent_check.py +60 -0
- nepher_cli/tournament/api.py +100 -0
- nepher_cli/tournament/packer.py +50 -0
- nepher_cli/tournament/wallet.py +89 -0
- tmp_nepher_cli-0.2.5.dist-info/METADATA +200 -0
- tmp_nepher_cli-0.2.5.dist-info/RECORD +27 -0
- tmp_nepher_cli-0.2.5.dist-info/WHEEL +4 -0
- tmp_nepher_cli-0.2.5.dist-info/entry_points.txt +3 -0
nepher_cli/__init__.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""npcli — unified Nepher command-line interface."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
6
|
+
|
|
7
|
+
try:
|
|
8
|
+
__version__ = version("nepher-cli")
|
|
9
|
+
except PackageNotFoundError: # pragma: no cover
|
|
10
|
+
__version__ = "0.0.0"
|
nepher_cli/__main__.py
ADDED
nepher_cli/cli.py
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""npcli — unified Nepher command-line interface."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import click
|
|
6
|
+
|
|
7
|
+
from nepher_cli import __version__
|
|
8
|
+
from nepher_cli.commands.account import account, cmd_login, cmd_logout, cmd_whoami
|
|
9
|
+
from nepher_cli.commands.envhub import envhub
|
|
10
|
+
from nepher_cli.commands.hackathon import hackathon
|
|
11
|
+
from nepher_cli.commands.simstore import simstore
|
|
12
|
+
from nepher_cli.commands.tournament import tournament
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@click.group(
|
|
16
|
+
context_settings={"help_option_names": ["-h", "--help"], "max_content_width": 100},
|
|
17
|
+
)
|
|
18
|
+
@click.version_option(version=__version__, package_name="nepher-cli", prog_name="npcli")
|
|
19
|
+
def main() -> None:
|
|
20
|
+
"""npcli — the unified Nepher command-line interface.
|
|
21
|
+
|
|
22
|
+
Provides centralized access to all Nepher sub-platforms:
|
|
23
|
+
|
|
24
|
+
\b
|
|
25
|
+
login Log in with a Nepher API key
|
|
26
|
+
whoami Show the currently authenticated user
|
|
27
|
+
logout Clear locally stored credentials
|
|
28
|
+
account API keys and coldkey registration
|
|
29
|
+
tournament Browse tournaments, submit agents, leaderboards
|
|
30
|
+
envhub Manage Isaac Lab environment bundles
|
|
31
|
+
hackathon Browse and submit to hackathons
|
|
32
|
+
simstore SimStore marketplace (coming soon)
|
|
33
|
+
|
|
34
|
+
\b
|
|
35
|
+
Quick start:
|
|
36
|
+
npcli login --api-key nepher_xxxxxxxx
|
|
37
|
+
npcli whoami
|
|
38
|
+
npcli hackathon list
|
|
39
|
+
npcli envhub list
|
|
40
|
+
npcli tournament list
|
|
41
|
+
|
|
42
|
+
\b
|
|
43
|
+
Tournament submit requires bittensor-wallet for wallet signing:
|
|
44
|
+
pip install bittensor-wallet
|
|
45
|
+
# or: pip install "nepher-cli[bittensor]"
|
|
46
|
+
|
|
47
|
+
Run any sub-command with --help for details and examples.
|
|
48
|
+
|
|
49
|
+
API keys are created at https://nepher.ai/account (Account > API Keys).
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
main.add_command(cmd_login, name="login")
|
|
54
|
+
main.add_command(cmd_logout, name="logout")
|
|
55
|
+
main.add_command(cmd_whoami, name="whoami")
|
|
56
|
+
main.add_command(account)
|
|
57
|
+
main.add_command(tournament)
|
|
58
|
+
main.add_command(envhub)
|
|
59
|
+
main.add_command(hackathon)
|
|
60
|
+
main.add_command(simstore)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
if __name__ == "__main__":
|
|
64
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""npcli command groups."""
|