Skip to main content

Lightweight security utility CLI (port scan, vault, crypto, hashing, reports, plugins).

Project description

Securezy CLI (securezy-cli)

Securezy CLI is a lightweight, pip-installable Python toolkit for common security tasks: fast port scanning, encrypted vault storage, file encryption, hashing, reporting, and plugins.

PyPI: securezy-cli (CLI command: securezy)

Install (recommended)

Install from PyPI (recommended: use a virtualenv):

py -m venv .venv
.\.venv\Scripts\python -m pip install -U pip
.\.venv\Scripts\python -m pip install "securezy-cli[crypto,vault]"
.\.venv\Scripts\securezy --help

For local development (editable):

py -m venv .venv
.\.venv\Scripts\python -m pip install -U pip
.\.venv\Scripts\python -m pip install -e ".[dev,crypto,vault]"
.\.venv\Scripts\securezy --help

CLI quickstart

Show commands:

.\.venv\Scripts\securezy --help

Fast port scanning

.\.venv\Scripts\securezy scan ports -t 127.0.0.1 -p 1-1024
.\.venv\Scripts\securezy scan ports -t 127.0.0.1 -p 22,80,443 --timeout 0.8 --concurrency 800
.\.venv\Scripts\securezy scan ports -t 127.0.0.1 -p 1-1024 --json

Scan reporting/export (JSON/CSV/Markdown)

Single report file:

.\.venv\Scripts\securezy scan ports -t 127.0.0.1 -p 1-1024 --report .\report.json --report-format json
.\.venv\Scripts\securezy scan ports -t 127.0.0.1 -p 1-1024 --report .\report.md --report-format md
.\.venv\Scripts\securezy scan ports -t 127.0.0.1 -p 1-1024 --report .\report.csv --report-format csv

Report bundle directory:

.\.venv\Scripts\securezy scan ports -t 127.0.0.1 -p 1-1024 --report-dir .\reports --report-formats json,md,csv

Profiles (saved scan configs)

Create and use a profile:

.\.venv\Scripts\securezy profiles set local -t 127.0.0.1 -p 1-1024 --timeout 0.5 --concurrency 500
.\.venv\Scripts\securezy profiles list
.\.venv\Scripts\securezy scan ports --profile local

Show where profiles are stored:

.\.venv\Scripts\securezy profiles path

To store profiles in a custom location (useful for CI/tests):

$env:SECUREZY_HOME = "C:\\temp\\securezy"

Plugins

List and run plugins:

.\.venv\Scripts\securezy plugins list
.\.venv\Scripts\securezy plugins run hello "hello from plugin"

Plugins are discovered via Python entrypoints group securezy.plugins.

Generate a new plugin skeleton:

.\.venv\Scripts\securezy plugins scaffold my-plugin -o .

Then install it:

cd .\securezy-plugin-my-plugin
py -m venv .venv
.\.venv\Scripts\python -m pip install -U pip
.\.venv\Scripts\python -m pip install -e .

And verify it shows up:

.\.venv\Scripts\securezy plugins list
.\.venv\Scripts\securezy plugins run my-plugin "it works"

Vault (encrypted credential storage)

.\.venv\Scripts\securezy vault init
.\.venv\Scripts\securezy vault add github -u akash
.\.venv\Scripts\securezy vault get github --show-password
.\.venv\Scripts\securezy vault list

Crypto (file encryption/decryption)

.\.venv\Scripts\securezy crypto encrypt -i secret.txt -o secret.txt.sz
.\.venv\Scripts\securezy crypto decrypt -i secret.txt.sz -o secret.txt

Hashing + verify

.\.venv\Scripts\securezy hash text --algo sha256 "hello"
.\.venv\Scripts\securezy hash file --algo sha256 .\somefile.iso
.\.venv\Scripts\securezy hash verify --algo sha256 --hash <expected> --file .\somefile.iso

Development

.\.venv\Scripts\python -m ruff check securezy tests
.\.venv\Scripts\python -m pytest -q

Publishing (TestPyPI / PyPI)

This repo includes a GitHub Actions workflow at .github/workflows/release.yml.

Required GitHub secrets

Create these secrets in your GitHub repo settings:

  • PYPI_API_TOKEN
  • TEST_PYPI_API_TOKEN

Publish to TestPyPI (recommended first)

Use GitHub Actions Release workflow → Run workflow → choose testpypi.

Publish to PyPI

Option A (recommended): push a tag like v0.1.0:

git tag v0.1.0
git push origin v0.1.0

Option B: run the GitHub Actions workflow manually and choose pypi.

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

securezy_cli-0.1.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

securezy_cli-0.1.1-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: securezy_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for securezy_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f7f7fbb69c244efac3fcb8ce6ee054da003eb1301520676bb47474e47a4cfdd0
MD5 1f9be74699621074f03b1908693f468c
BLAKE2b-256 90548626fa2cf9a42b4c5a724503a6d07b2aeffe01812a7c32076bc5e050fad6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: securezy_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for securezy_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4082c842535a7580ba62a70a1ffc62c4f9b56486cc3b6ad4c94c2b8bfd8c580
MD5 a773bde75204784a8d30f9f43ac6cbaa
BLAKE2b-256 e2007c416270dcaa00fc6530435ecd44aed1f27654bf75b5f0353fe6a8eee4d6

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