An educational CLI tool to prevent accidental sensitive data exposure.
Project description
safe-push 🛡️
An educational, beginner-friendly Python CLI tool that teaches you about accidental sensitive data exposure while helping you keep your repositories clean.
🌟 Why safe-push?
Accidentally pushing a .env file or a hardcoded API key to GitHub is a rite of passage for many developers—but it's also a major security risk! safe-push helps you identify these risks before you push, explaining why certain files shouldn't be shared.
Perfect for "vibe coders" and beginners who want to stay safe while learning.
🚀 Features
🆓 Free Tier (Always)
- Scan Current Directory: Detects common mistakes like
.envfiles,__pycache__, andvenvfolders. - Basic Secret Detection: Finds generic API keys and tokens.
- Educational Insights: Explains the danger of each finding so you learn as you go.
- No Data Leaves Your Machine: Your code stays local. Always.
💎 Premium Features
- Advanced Secret Scanning: Deep detection for AWS, Stripe, OpenAI, Firebase, and more.
- Auto .gitignore Generator: Quickly create a recommended
.gitignorefor your Python projects. - Pre-commit Hook Template: Automatically scan your code every time you try to
git commit. - Verbose Mode: See exactly what's happening under the hood.
🛠️ Installation
pip install safe-push
📖 How to Use
Simply run the tool in your project's root directory:
safe-push
Options
safe-push --verbose: Show a detailed breakdown of the scan.safe-push --unlock: Learn how to unlock premium features.safe-push --generate-gitignore: (Premium) Create a recommended.gitignore.safe-push --install-hook: (Premium) Install a Git pre-commit hook.
🔓 Unlocking Premium (The Solana Way)
We use a simple, decentralized verification system. No accounts, no credit cards.
- Donate at least 0.005 SOL (~$2) to the recipient wallet shown when you run
safe-push --unlock. - Enter your wallet address and the Transaction ID (TXID).
- The CLI verifies the transaction directly on the Solana blockchain and unlocks your features locally!
🔒 Security & Privacy
- Local Only: This tool scans only your local directory.
- Privacy First: No data, code, or telemetry is ever sent to any server.
- Transparency: The only network call made is to a public Solana RPC endpoint for donation verification.
📜 License
MIT License. Feel free to use, learn, and share!
Stay safe and keep coding! 🚀
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file safe_push-0.1.2.tar.gz.
File metadata
- Download URL: safe_push-0.1.2.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb4ad1699340bb7a60dd325b209c5909674526e465c0f441bfc197390088eba9
|
|
| MD5 |
a3ccf00216bfa6b3880c50bfb185da4e
|
|
| BLAKE2b-256 |
d88439f7f8f03b20315d2cea5e65c2360ef36e29b64a10d23e163b91f0d67e25
|
File details
Details for the file safe_push-0.1.2-py3-none-any.whl.
File metadata
- Download URL: safe_push-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67624c7d51f560b1eda4b73a35f9261741f17795b71e2d83594690bfc77c18a5
|
|
| MD5 |
bdf7ff2dd27b3fa02bb7f92137a68fc5
|
|
| BLAKE2b-256 |
7dc810ef9444c7c0a330dff4c11776346c1a5c5078e499e96133351656e9cb7d
|