| Crates.io | promptpro |
| lib.rs | promptpro |
| version | 0.1.1 |
| created_at | 2025-10-27 13:45:32.198552+00 |
| updated_at | 2025-10-28 15:40:23.296662+00 |
| description | PromptPro is an advanced prompt management system with versioning, tagging, encryption, and TUI interface. The ultimate tool for prompt engineers and AI developers. |
| homepage | https://github.com/lucasjinreal/promptpro |
| repository | https://github.com/lucasjinreal/promptpro |
| max_upload_size | |
| id | 1902953 |
| size | 671,505 |

Promptpro is a powerful, flexible, and developer-friendly prompt management system that transforms how you create, manage, and version AI prompts. Designed for prompt engineers, AI developers, and serious AI enthusiasts, it combines speed, security, and usability in one elegant tool.
With built-in versioning, tagging, encryption, and a sleek TUI interface, Promptpro eliminates the chaos of multi-file JSON/YAML management across projects. Reference prompts with a unique key, and every change is automatically trackedโno manual versioning required.
Under the hood, Promptpro is powered by Rust ๐ฆ, giving you lightning-fast performance while maintaining seamless Python integration. It supports both Python and Rust out of the box, so you can use your prompts in any language, any project, anywhere.
pip install promptpro
then,
Your chaos prompt can be easily use like this (note, any project, any language):
from promptpro import PromptManager
pm = PromptManager("promptpro.vault", "")
a = pm.get_prompt("pc_operator_v2", "dev")
print(a)
That's all! You got speed and security, also fastest prompt development.
Python:
pip install promptpro
Rust:
cargo install promptpro
Install from source:
# Clone the repository
git clone https://github.com/lucasjinreal/promptpro
cd promptpro
./install.sh
ppro is the short form of promptpro. after install.sh it will available in your path.
# Add a new prompt
echo "Write a poem about technology" | ppro add
# Add with a key
ppro add "You are a helpful AI assistant"
# Update an existing prompt
ppro update my-prompt "You are a super helpful AI assistant"
# Get the latest version
ppro get my-prompt
# Get a specific version or tag
ppro get my-prompt 2
ppro get my-prompt stable
# Tag a version
ppro tag my-prompt stable 1
# Show history
ppro history my-prompt
# Open the TUI interface
ppro tui
# Export without encryption (unencrypted binary)
ppro dump prompts.vault
# Export with password encryption
ppro dump prompts.vault --password "your-secret-password"
# Import unencrypted vault
ppro resume prompts.vault
# Import encrypted vault
ppro resume prompts.vault --password "your-secret-password"
Navigate your prompts with the intuitive terminal interface:
# Tag a specific version
ppro tag my-prompt stable 1
# Promote a tag to the latest version
ppro promote my-prompt stable
# The 'dev' tag is automatically promoted to latest version on updates
# Show full history for a prompt
ppro history my-prompt
# Get prompt to a file
ppro get my-prompt --output my-file.txt
# Get specific version
ppro get my-prompt 3
# Get by tag
ppro get my-prompt stable
ppro can be easily integrated into both Rust and Python applications.
[dependencies]
promptpro = { path = "path/to/promptpro" } # or git source
High level, write a PromptManager singleton:
use anyhow::Result;
use once_cell::sync::Lazy;
use promptpro::{PromptVault, VersionSelector};
use std::sync::Arc;
use tokio::sync::RwLock;
// Our global PromptManager singleton
pub struct PromptManager {
vault: Arc<RwLock<PromptVault>>,
}
// Static global instance
static MANAGER: Lazy<PromptManager> = Lazy::new(|| {
let vault = PromptVault::restore_or_default("./promptpro.vault", None)
.expect("Failed to open PromptPro default vault");
PromptManager {
vault: Arc::new(RwLock::new(vault)),
}
});
impl PromptManager {
pub fn get() -> &'static Self {
&MANAGER
}
pub async fn get_prompt(&self, key: &str, selector: VersionSelector<'_>) -> Result<String> {
let vault = self.vault.read().await;
Ok(vault.get(key, selector)?)
}
pub async fn latest(&self, key: &str) -> Result<String> {
self.get_prompt(key, VersionSelector::Latest).await
}
}
// Use
let pm = PromptManager::get();
let prompt = pm
.get_prompt("pc_operator_v2", VersionSelector::Tag("dev"))
.await
.map_err(|e| AgentBuildError::PromptError(e.to_string()))?;
Low level API:
use ppro::{PromptVault, VersionSelector};
// Open the default vault
let vault = PromptVault::open_default()?;
// Add a new prompt
vault.add("greeting", "Hello, World!")?;
// Update an existing prompt
vault.update("greeting", "Hi there!", Some("Updated greeting".to_string()))?;
// Get latest version
let content = vault.get("greeting", VersionSelector::Latest)?;
// Tag a version
vault.tag("greeting", "stable", 1)?;
// Get by tag
let stable_content = vault.get("greeting", VersionSelector::Tag("stable"))?;
// Get history
let history = vault.history("greeting")?;
use ppro::PromptVault;
// Dump vault to binary file (with optional encryption)
let vault = PromptVault::open_default()?;
vault.dump("backup.vault", Some("my_password"))?;
// Or without encryption
vault.dump("backup.vault", None)?;
// Restore from binary file
let restored_vault = PromptVault::restore("backup.vault", Some("my_password"))?;
use ppro::{PromptVault, VersionSelector};
use anyhow::Result;
#[tokio::main]
async fn main() -> Result<()> {
let vault = PromptVault::open_default()?;
// Add a prompt
vault.add("summarization", "Summarize the following text concisely...")?;
// Update with improvements
vault.update("summarization",
"Provide a concise summary of the following text. Focus on key points and maintain context.",
Some("Improved summarization prompt".to_string()))?;
// Tag as stable
vault.tag("summarization", "stable", 1)?;
// Get the latest version
let latest = vault.get("summarization", VersionSelector::Latest)?;
println!("Latest prompt: {}", latest);
// Get the stable version
let stable = vault.get("summarization", VersionSelector::Tag("stable"))?;
println!("Stable prompt: {}", stable);
// Show history
let history = vault.history("summarization")?;
for version in history {
println!("Version {}: ({}) {:?}",
version.version,
version.timestamp.format("%Y-%m-%d %H:%M"),
version.tags
);
}
// Backup the vault
vault.dump("backup.vault", Some("secure_password"))?;
println!("Vault backed up successfully!");
Ok(())
}
ppro also provides Python bindings built with PyO3, making it easy to integrate prompt management into Python applications.
The Python package can be built and installed using Maturin:
pip install promptpro
Or if building from source:
cd promptpro
maturin build --features python
pip install target/wheels/promptpro-*.whl
from promptpro import PromptManager
pm = PromptManager.get_singleton("promptpro.vault", "")
a = pm.get_prompt("pc_operator_v2", "dev")
print(a)
dev: Automatically points to the latest version on updatesstable: Manually set for production-ready versionsrelease: For major releases or milestonesYou can create any custom tag names to organize your prompts:
# Create custom tags
ppro tag my-prompt experimental 2
ppro tag my-prompt production-ready 3
ppro tag my-prompt "v2.0" 4
We welcome contributions! Feel free to:
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).
GPL-3.0 License:
For more details, see the LICENSE file.
ppro - Taking prompt management to the next level! ๐
Made with โค๏ธ for the AI development community.