Skip to main content

A powerful cli tool to interact with the Pieces OS

Project description

Pieces CLI for Developers

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.

WebsitePieces OS DocumentationPieces Python CLI Documentation

Introducing CLI

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:

  1. Ensure Pieces OS is installed and running on your system.

  2. 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 index
  • current asset -> The asset that you are currently using can be changed by the open command
  • current 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:

  1. Fork this project via GitHub.

  2. Clone this project:

git clone https://github.com/pieces-app/cli-agent
  1. Create a Virtual Environment
python3 -m venv venv
  1. Activate Your Virtualenv
source venv/bin/activate for Mac & Linux OS

cd venv\Scripts for Windows OS
activate 
  1. This project uses poetry for managing dependencies and builds. Install poetry with:
pip install poetry
  1. Then use poetry to install the required dependencies
poetry install
  1. You build with
poetry build
  1. Finally any project dependencies should be added to the pyproject.toml file with
poetry add 
  1. Open the Dist folder
cd dist
  1. 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

  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pieces_cli-1.8.1.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

pieces_cli-1.8.1-py3-none-any.whl (65.3 kB view details)

Uploaded Python 3

File details

Details for the file pieces_cli-1.8.1.tar.gz.

File metadata

  • Download URL: pieces_cli-1.8.1.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pieces_cli-1.8.1.tar.gz
Algorithm Hash digest
SHA256 55e57d473d25ebb1654b4bff3e4016c08d0ee41171e9b1dd3ac7f3a3a510a52d
MD5 fe48d2ee8e7ec74cd06416e05c604312
BLAKE2b-256 d17f8abf3ad63dfa39e700db6acbd5928e179dcaf545b7dd82e471462a746451

See more details on using hashes here.

File details

Details for the file pieces_cli-1.8.1-py3-none-any.whl.

File metadata

  • Download URL: pieces_cli-1.8.1-py3-none-any.whl
  • Upload date:
  • Size: 65.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pieces_cli-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c6d0cfd2bc2ee8cbf427863f20a0ccc4d2fdd853710a523e6ea84b245c892fc
MD5 39e5b5b7695b78066ed21bfda427eaff
BLAKE2b-256 af4139799a5b231a15b73f1b9abb8b683ded15298b5db5dd659a47537ed83862

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page