A cli tool with an terminal editor to compile over 35 languages instantly using the piston api.
Project description
Piston CLI
A cli tool which uses the piston api, developed by Engineerman and his team to compile over 35 languages instantly. Accepts files, paste.pythondiscord.com links and input.
Installation
With pip
# Installing the package
pip install piston-cli -U
# Help Command
piston -h
With Nix/NixOS
piston-cli
is available in nixpkgs through the unstable channels.
You can install it with nix-env
, or in a declarative way with configuration.nix or similar.
Flake support
piston-cli
is a flake, that means you can easily add it to your flake based configuration:
Disclaimer: this also means you're using the development version, you could encounter bugs. If you want to use the stable version, install it from nixpkgs.
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
inputs.piston-cli.url = "github:piston-cli/piston-cli";
outputs = { nixpkgs, piston-cli }:
let
pkgs = import nixpkgs { system = "x86_64-linux"; overlays = [ piston-cli.overlay ]; };
in
{
# use pkgs.piston-cli-unstable here
};
}
For Arch/ArchBased
With yay
yay piston-cli
With paru
paru piston-cli
Or any AUR helper you use with doesn't matter. You get the point.
Example usage
Default
Shell
File
Link
Languages
piston --list
How to run it? (Contributing)
# This will install the development and project dependencies.
poetry install
# This will install the pre-commit hooks.
poetry run task precommit
# Optionally: run pre-commit hooks to initialize them.
# You can start working on the feature after this.
poetry run task pre-commit run --all-files
# Run it
poetry run task start --help
Contributing
You can comment on the issues you would like to work on.
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
Hashes for piston_cli-1.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b156c06027f321ae186582cabf3c71a2e83585a06f32790b3d8e95915cae5472 |
|
MD5 | 3a2f54b76d8bc672dffc3623cb8e2f6c |
|
BLAKE2b-256 | 616175326e3b9b28d7ce271fa699c2d8e271c86596154b59f2e0a4d379d30306 |