apira

Crates.ioapira
lib.rsapira
version1.0.1
created_at2025-02-16 19:39:47.745497+00
updated_at2025-02-16 19:39:47.745497+00
descriptionA Rust program that finds and copies the activate script path of a virtual environment to the system clipboard.
homepage
repositoryhttps://github.com/NerdNinja420/apiraa
max_upload_size
id1558075
size6,040
(NerdNinja420)

documentation

https://docs.rs/apiraa

README

apira

A Rust program that finds and copies the activate script path of a python virtual environment to the system clipboard for easy activation.

Features

  • Detects virtual environments by searching for activate scripts.
  • Copies the activate script path to the clipboard.
  • Outputs the source <path> command.

Installation

  1. Install Rust: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Clone the repo: git clone https://github.com/NerdNinja420/apira.git
  3. Build: cargo build --release
  4. Run: cargo run

Usage

Run the program, and if a virtual environment is found, the path to its activate script will be copied to the clipboard.

source /path/to/virtualenv/bin/activate

Requirements

  • rust: for compiling the program
  • wl-copy: for clipboard operation on Wayland.

License

MIT License

This version keeps the essential information while trimming down extra details.

Commit count: 15

cargo fmt