Melting Face 🫠
A Python SDK that allows you to load prompts hosted on meltingface.eu. The library handles:
- Simple prompt objects (
Prompt) - Fetching public and private prompts from the MeltingFace hub
- Caching to avoid repeated downloads
Installation
pip install meltingface
Basic Usage
Loading a Public Prompt
from meltingface import Prompt
# Load a prompt from the public hub
prompt = Prompt.from_hub("owner/repo", version="0.1.0")
print(prompt.text) # -> "Hello from my prompt!"
print(prompt.version) # -> "v1"
Loading a Private Prompt
Private prompts require authentication with an API key:
from meltingface import Prompt
# Option 1: Pass the API key directly
prompt = Prompt.from_hub("owner/private-repo", api_key="your-api-key")
# Option 2: Set the MELTINGFACE_API_KEY environment variable
# export MELTINGFACE_API_KEY="your-api-key"
prompt = Prompt.from_hub("owner/private-repo")
Coming Soon: API key support for accessing private prompts will be available on meltingface.eu as a paid feature. This will allow you to create, manage, and use private prompts programmatically in your applications.
Premium Subscription Benefits:
- Generate API keys to access your private prompts programmatically
- Use version-controlled prompts in programmatically
- Manage team access to shared prompts
Stay tuned for our official launch with multiple subscription tiers for individuals and teams.
API Reference
repo_id("owner/repo") is how you reference your prompt's repository on meltingface.euversionis optional; if not provided, the library defaults to"latest"api_keyis required for private prompts; can be passed directly or via the MELTINGFACE_API_KEY environment variablecache_dirlets you specify a custom cache location (defaults to ~/.meltingface/prompts)force_downloadwhen set to True, bypasses the cache and fetches the prompt again
Metadata
Release files for meltingface 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| meltingface-0.1.3.tar.gz | 12.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| meltingface-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / meltingface-0.1.3.tar.gz
| Download URL | meltingface-0.1.3.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46b3bbfe8b1b913c787e32718ad77f437a87f3643aa36f8bb88d8f271456a001
|
|
BLAKE2b-256 checksum How to use checksums |
ed8fe50166dc0f264528de9dc8ac15db6ae37318b45ad1eeaadb21cc37a6a907
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.4
|
Release files / meltingface-0.1.3-py3-none-any.whl
| Download URL | meltingface-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4da9f981daf6ff28cb03af8096dcb13aef1a267a5aea8889a3cf07c2cdc7e3b1
|
|
BLAKE2b-256 checksum How to use checksums |
e7d2f3586ca83fb7f16ab1a9e2196cad0fdfdbc907001e0f1f516ae274e7bbbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.4
|
Security for meltingface 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.