No project description provided
Project description
Valkyrie CLI
Overview
Valkyrie CLI is a command-line interface designed to interact with the Valkyrie API, providing functionality for user authentication, tool management, API key creation, wallet operations, and more. It supports executing individual commands and processing sequences of commands from a YAML configuration file.
Features
- Authentication: Login with username and password to obtain a session token.
- Tools Management: View all tools, fetch tool details, and execute specific tool endpoints.
- API Key Management: Create, list, and delete API keys associated with tools.
- Wallet Operations: Retrieve wallet details and transaction history.
- Batch Command Execution: Execute a sequence of commands defined in a YAML file.
Installation
-
Clone the repository:
git clone git@github.com:AzumoHQ/azumo-valkyrie-cli.git cd azumo-valkyrie-cli
-
Install the CLI using
setup.py:python setup.py install
-
After installation, the
vlkcommand will be available in your terminal.
Usage
Run the CLI using the vlk command:
vlk <command> [options]
Commands
Authentication
- Login:
vlk login <username>
Tools
- List all tools:
vlk tools - Get tool details:
vlk tools:info --tool <tool_id>
- Execute a tool endpoint:
vlk tools:run --tool <tool_id> --endpoint <endpoint> --api-key <api_key> --payload <json_payload>
API Keys
- List API keys:
vlk api-keys - Create an API key:
vlk api-keys:create --key-name <name> --tool <tool_id>
- Delete an API key:
vlk api-keys:delete --api-key <api_key_id>
Wallet
- View wallet details:
vlk wallet - View wallet transactions:
vlk wallet:transactions --type <CREDIT|DEBIT> --order <asc|desc> --page <page_num> --page_size <num>
Execute Configuration
- Run a sequence of commands from a YAML file:
vlk execute-config --file <config.yaml>
Example YAML Configuration
- command: login
args:
username: omaribannez@gmail.com
- command: tools
args: {}
- command: tools:info
args:
tool: the-dog-api
- command: wallet
args: {}
- command: wallet:transactions
args:
page_size: 2
page: 2
order: desc
Run the configuration:
vlk execute-config --file config.yaml
Authentication Token
After successful login, a token is saved in ~/.valkyrie_token for subsequent authenticated requests. Ensure to keep this file secure.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vlkcli-0.1.0.tar.gz.
File metadata
- Download URL: vlkcli-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.9.6 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01c61d6cd36d314662c7562e573c73189c235e59e3be41a48e3e672bae2bcdef
|
|
| MD5 |
09d2120c23d4071993c96e6eb74b4906
|
|
| BLAKE2b-256 |
0bc8469243e781d413ed4c55d4bec81cc36e776b56fea0412351146e21b49f5e
|
File details
Details for the file vlkcli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vlkcli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.9.6 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65801ed1ce8fd36d64e2d656feb47b0447b110f3712beca33bc321f1390e2ba7
|
|
| MD5 |
f25db805caec1f1b72bc92f3fcd6845b
|
|
| BLAKE2b-256 |
b86430ac84be296fdaccc8840eb49f2632721a260b4180437d96698427d839b6
|