A simple CLI tool to randomly pick Auckland libraries.
- Pick 1 or more random libraries from Auckland.
- Display all available libraries.
- Easy-to-use command-line interface.
You can install pylib globally so the pylib command works anywhere.
-
Clone the repository and navigate into it:
git clone https://github.com/yourusername/pylib.git
cd pylib -
Install the package globally:
pip install .
If you don’t have admin privileges, you can install for your user only:
pip install --user .
On macOS/Linux, if using
--user, make sure your local bin directory is in your PATH:
export PATH="$HOME/.local/bin:$PATH"
Add that line to your~/.zshrcor~/.bashrcto make it permanent.
- Show all libraries:
pylib -a or pylib --all - Pick 3 random libraries:
pylib -n 3 or pylib --number 3 - Pick the default (1) random library:
pylib
To remove pylib completely:
pip uninstall pylib
- Confirm when prompted. This removes the CLI command and package files.
If you want to edit the code and test changes without reinstalling:
-
Clone the repository and navigate into it:
git clone https://github.com/yourusername/pylib.git
cd pylib -
Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate -
Install in editable mode:
pip install -e .
- Changes to
cli.pywill be reflected immediately. - Run the CLI with:
pylib -aorpython -m pylib.cli -a