A powerful cli tool to interact with the Pieces OS
Project description
Pieces Python CLI Tool
This is a comprehensive command-line interface (CLI) tool designed to interact seamlessly with Pieces OS. It provides a range of functionalities such as asset management, application interaction, and integration with various Pieces OS features.
Website • Pieces OS Documentation • Pieces Python CLI Documentation
Important
Make sure you have Pieces OS installed in order to run the Pieces CLI tool.
Operating System Support
The Pieces Python CLI Tool is compatible with various operating systems, ensuring a wide range of usage and adaptability. While it offers full support across most systems, specific features might have varied performance based on the OS environment.
The CLI Supports
- Windows 10 or greater
- Mac
- Windows
Installing
To get started with the Pieces Python CLI Tool, you need to:
-
Ensure Pieces OS is installed and running on your system.
-
Install the Python package:
pip install pieces-cli
brew install pieces-cli
conda install pieces-cli
Getting Started
After installing the CLI tool, you can access its functionalities through the terminal. The tool is initialized with the command pieces
followed by various subcommands and options.
Some important terminologies
x
-> The indexcurrent asset
-> The asset that you are currently using can be changed by the open commandcurrent conversation
-> The conversation that you currently using in the ask command
Usage
To refer to the list of all the commands currently supported in the Pieces CLI Agent, visit the documentation.
Contributing
Installation
To run this project locally, follow these steps:
-
Fork this project via GitHub.
-
Clone this project:
git clone https://github.com/pieces-app/cli-agent
- Create a Virtual Environment
python3 -m venv venv
- Activate Your Virtualenv
source venv/bin/activate for Mac & Linux OS
cd venv\Scripts for Windows OS
activate
- This project uses poetry for managing dependencies and builds. Install poetry with:
pip install poetry
- Then use poetry to install the required dependencies
poetry install
- You build with
poetry build
- Finally any project dependencies should be added to the pyproject.toml file with
poetry add
- Open the Dist folder
cd dist
- Install the WHL file
pip install pieces-cli-{VERSION}-py3-none-any.whl
replace the VERSION with the version you downloaded Note: Ensure you get latest from the releases of the cli-agent
- To view all the CLI Commands
pieces help
these can be local/github/pypi etc.
Updating
To update the project, run the following command:
pip install pieces-cli --upgrade
Testing
To discover and run all the test cases in the repository, run the following command:
pytest
To check the test coverage, you can use the coverage package. Install coverage with:
pip install coverage
Run the tests with coverage using the following command:
coverage run -m pytest
coverage report
Uninstallation
To uninstall the project, run the following command:
pip uninstall pieces-cli
Don't forget to remove the virtual environment and dist folder
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
File details
Details for the file pieces_cli-1.6.2.tar.gz
.
File metadata
- Download URL: pieces_cli-1.6.2.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c9933bd5c84d83808b5bf4d39ad2187e0f44cb6b267bba531650ddda0735383 |
|
MD5 | 040e23b8b5d40e24aed810d66eb261ef |
|
BLAKE2b-256 | 918b918267ff2dac0369ac71575a23504da6d14d68c8cf8285d7570eb2b48548 |
File details
Details for the file pieces_cli-1.6.2-py3-none-any.whl
.
File metadata
- Download URL: pieces_cli-1.6.2-py3-none-any.whl
- Upload date:
- Size: 38.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e60abfb4f3893a71138c441d9d68e10a15c96f56e4cc539080773d78d948723e |
|
MD5 | 70783b24c4b7d8b590299ca90a278b4f |
|
BLAKE2b-256 | 069d560be10df2a9337426ccc6dfdb00078a086cc6083f5598d3fb5463b37790 |