Skip to main content

Securely prompt for API tokens and run CLI commands — no notepad copy-paste dance

Project description

keyabra

Proprietary — Copyright © 2026 Everplay-Tech LLC. See LICENSE.

Prompt for API tokens once, run the command — no export/copy/delete/notepad loop.

Noldorian tier (pip operator tools — not snx spells). Sibling: binabra (abra).

Install

pip install keyabra

If keyabra is not found, pip may have installed it outside your PATH. Either:

# macOS — add pip's script dir (once, in ~/.zshrc)
export PATH="$HOME/Library/Python/3.9/bin:$HOME/.local/bin:$PATH"

Or run without PATH setup:

python3 -m keyabra pypi publish

Also need twine and build for PyPI uploads:

pip install build twine

Publish binabra (or any project)

cd ~/Projects/binabra
keyabra pypi publish

That will:

  1. Run python -m build if dist/ is empty
  2. Prompt: PyPI token (pypi-...): (hidden input)
  3. Run twine upload — token never hits disk or your shell history

Other commands

keyabra pypi upload dist/*
keyabra pypi publish ~/Projects/binabra --skip-build

# Generic — any secret env var + any command
keyabra run --env GITHUB_TOKEN -- gh auth status
keyabra run --env TWINE_PASSWORD --env TWINE_USERNAME -- twine upload dist/*

Publish keyabra itself

First upload needs an account-scoped PyPI token: https://pypi.org/manage/account/token/

cd ~/Projects/keyabra
python3 -m pip install --user build twine
python3 -m build
keyabra pypi publish --skip-build   # after build, uses prompted token

Security

  • Uses getpass — token is not echoed
  • Token lives only in process memory for the subprocess
  • Never written to files or shell history

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

keyabra-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keyabra-0.1.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file keyabra-0.1.1.tar.gz.

File metadata

  • Download URL: keyabra-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for keyabra-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5bc426bf41eac17fccf3e2b8c11ae6eda1cbb16934943bbc9ca187d84274dc1c
MD5 687d71d282b347686bd35c81c02ad7bd
BLAKE2b-256 6c2abbb3ed5ddb0c975daa8d344848c42210d64dfe866f52d38213ca2c6ce2bc

See more details on using hashes here.

File details

Details for the file keyabra-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: keyabra-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for keyabra-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd059fd4af90278c9ac3e31d8d171da4b26545f84e96668c9dfbbef10e1830f6
MD5 ae9e0cad9ac5d725bc501527f77817b0
BLAKE2b-256 d5f1204ca643b0dfe3bd91709aef4eb693e35cab897c692590f3d3f92d0ace81

See more details on using hashes here.

Supported by

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