nepher-cli-test 0.2.4__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 ADDED
@@ -0,0 +1,3 @@
1
+ """npcli — unified Nepher command-line interface."""
2
+
3
+ __version__ = "0.2.4"
nepher_cli/__main__.py ADDED
@@ -0,0 +1,4 @@
1
+ from nepher_cli.cli import main
2
+
3
+ if __name__ == "__main__":
4
+ raise SystemExit(main())
nepher_cli/cli.py ADDED
@@ -0,0 +1,59 @@
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__)
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
+ Run any sub-command with --help for details and examples.
43
+
44
+ API keys are created at https://nepher.ai/account (Account > API Keys).
45
+ """
46
+
47
+
48
+ main.add_command(cmd_login, name="login")
49
+ main.add_command(cmd_logout, name="logout")
50
+ main.add_command(cmd_whoami, name="whoami")
51
+ main.add_command(account)
52
+ main.add_command(tournament)
53
+ main.add_command(envhub)
54
+ main.add_command(hackathon)
55
+ main.add_command(simstore)
56
+
57
+
58
+ if __name__ == "__main__":
59
+ raise SystemExit(main())
nepher_cli/cli_test.py ADDED
@@ -0,0 +1,19 @@
1
+ """npcli-test — staging entry point (defaults to api.staging.nepher.ai)."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+
7
+ # Set staging defaults before any nepher_cli submodule imports config.
8
+ os.environ.setdefault("NEPHER_API_URL", "https://api.staging.nepher.ai")
9
+ os.environ.setdefault("NEPHER_SIMSTORE_API_URL", "https://simstore-staging.nepher.ai")
10
+
11
+
12
+ def main() -> None:
13
+ from nepher_cli.cli import main as cli_main
14
+
15
+ cli_main()
16
+
17
+
18
+ if __name__ == "__main__":
19
+ raise SystemExit(main())
@@ -0,0 +1 @@
1
+ """npcli command groups."""