CLI tool for managing API secrets
Project description
APIPort
A command-line tool for securely managing API secrets.
Features
- Secure Storage: All secrets are encrypted using Fernet symmetric encryption
- Multiple Input Formats: Add secrets individually or in bulk from files
- AI-Powered Parsing: Intelligently extract secrets from various text formats (with optional AI integration)
- Environment File Integration: Easily import secrets to your .env files
- Simple Command-Line Interface: Intuitive commands for managing your secrets
Installation
# Basic installation
pip install apiport
# With AI-powered parsing capabilities
pip install apiport[ai]
Usage
Adding Secrets
# Add a single secret
apiport add API_KEY=your_secret_key
# Add multiple secrets at once
apiport add API_KEY=your_secret_key DB_PASSWORD=your_db_password
# Add secrets from a file
apiport add --file secrets.txt
Listing Secrets
# List all secret names
apiport list
# List secrets with their values (debug mode)
apiport list --debug
Deleting Secrets
# Delete a specific secret
apiport delete API_KEY
# Delete all secrets (reset the vault)
apiport delete
Updating Secrets
# Update an existing secret
apiport update API_KEY new_secret_value
Importing to .env File
# Import a specific secret to .env
apiport import API_KEY
# Import multiple secrets
apiport import API_KEY DB_PASSWORD
# Import all secrets
apiport import
AI-Powered Parsing
When installed with the [ai] extra, APIPort can use Google's Generative AI to intelligently extract secrets from various text formats. This is especially useful for parsing complex or non-standard formats.
To use this feature:
- Install with AI support:
pip install apiport[ai] - Set your Gemini API key in your environment:
export GEMINI_API_KEY=your_key - Use the file import feature:
apiport add --file your_complex_file.txt
Security
- All secrets are encrypted using Fernet symmetric encryption
- Encryption keys are stored locally in
~/.apiport_key - The encrypted vault is stored in
~/.apiport/vault.port
License
MIT
Project details
Release history Release notifications | RSS feed
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 apiport-0.1.0.tar.gz.
File metadata
- Download URL: apiport-0.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49a50b24ab6f7efefb702b51a3c27a871e73f108ac8343424e5e656493f98883
|
|
| MD5 |
412e61644e7e36c51c8731febbb74c8a
|
|
| BLAKE2b-256 |
b756c2a26cae8244d05e10a320fb67c9a20375c5ce1d4a431fb80fe406dec117
|
File details
Details for the file apiport-0.1.0-py3-none-any.whl.
File metadata
- Download URL: apiport-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fc687fa55476ae0f555e43bbf6df84b1dec906cfcd784a6c4d29b7d39e9daba
|
|
| MD5 |
40125fe02d726b7a62adda210e564a82
|
|
| BLAKE2b-256 |
3e9a320eab4698d29da1ec8ce5ea0566577e12f685609218d5e5703db6216fdf
|