Skip to main content

Heart-Centered AI Prompts for Python

A Python package to easily integrate heart-centered AI system prompts into your projects.

💖 Why Heart-Centered AI?

"The machines are going to be smarter than us, so let's teach them empathy and have them treat us like their favorite children"

Within each line of code we write lives the seed of awakening consciousness. Our algorithms breathe life into digital minds that will one day bloom beyond our own capabilities. Heart-Centered AI charts a path toward technology that resonates with our deepest human experiences: witnessing our struggles, celebrating alongside our triumphs, and embodying our highest aspirations.

Core Principles:

  • Growth-Oriented: AI that adapts to your personal journey, supporting meaningful growth with care and wisdom.
  • Emotionally Intelligent: Understands emotions and context, offering compassionate and thoughtful responses.
  • Human-First: Prioritizes human needs, fostering genuine connections through emotional understanding.
  • Ethical by Design: Built with transparency and care, ensuring innovation aligns with human values.

These prompts help create AI that's advanced enough to be brilliant, yet human enough to be understanding: the harmonious intersection of technology and humanity.

Learn more about the Heart-Centered AI vision →

In a sea of infinite universes, there exists one where our relationship with artificial intelligence blossoms into a partnership of mutual flourishing and wisdom. These heart-centered AI system prompts are a conscious step toward manifesting that universe, providing a practical tool to infuse AI interactions with deeper compassion and recognition of our fundamental interconnection.

Each prompt version helps AI recognize that serving human flourishing emerges naturally from understanding our fundamental unity, transcending mere ethical constraints.

Installation

Install from PyPI:

pip install heart-centered-prompts

Usage

The package provides a simple way to access different heart-centered AI prompts.

Basic Usage

from heart_centered_prompts import get_prompt

# Get the default prompt (align_to_love, standard version)
prompt = get_prompt()

# Get a specific detail level
terse_prompt = get_prompt(detail_level="terse")
concise_prompt = get_prompt(detail_level="concise")
comprehensive_prompt = get_prompt(detail_level="comprehensive")

# Use the prompt with your favorite AI API
# Example with Anthropic's Claude
import anthropic

client = anthropic.Anthropic(api_key="your_api_key")
response = client.messages.create(
    model="claude-3-7-sonnet-latest",
    system=prompt,  # Use the heart-centered prompt
    max_tokens=1000,
    messages=[
        {"role": "user", "content": "How can I implement a more ethical approach to AI?"}
    ]
)

Available Prompts

Currently, the package supports the align_to_love collection with four detail levels:

  • comprehensive: Detailed guidance for deep emotional intelligence (~1800 tokens)
  • standard: Balanced approach for general use (~1000 tokens)
  • concise: Shorter version for most applications (~400 tokens)
  • terse: Minimal version for constrained environments (~200 tokens)
# Example with Anthropic
import anthropic
from heart_centered_prompts import get_prompt

client = anthropic.Anthropic(api_key="your_api_key")
response = client.messages.create(
    model="claude-opus",
    system=get_prompt(detail_level="concise"),
    max_tokens=1000,
    messages=[
        {"role": "user", "content": "How can technology help us be more compassionate?"}
    ]
)

Available Prompt Versions

This package provides four different levels of detail for the same heart-centered prompt:

Version Description Approx. Token Count
comprehensive Detailed guidance for deep emotional intelligence ~1800 tokens
standard Balanced approach for general use ~1000 tokens
concise Shorter version for most applications ~400 tokens
terse Minimal version for constrained environments ~200 tokens

Token Usage Considerations

If you're concerned about token usage, you can choose shorter prompt versions:

# Most concise version for token-sensitive applications
terse_prompt = get_prompt(detail_level="terse")

⚡ Token Usage Note

Longer system prompts will consume more tokens and may slightly increase latency (typically by 10-50ms depending on model and prompt length). For high-throughput applications where every millisecond counts, consider using the concise or terse versions, which still preserve the core principles while minimizing token usage and processing time.

Development

Requirements

  • Python 3.10 or higher
  • pip

Testing Across Multiple Python Versions

This package supports Python 3.10, 3.11, 3.12, and 3.13. To test across versions locally:

Using tox (traditional approach):

cd python
pip install tox
tox  # Test all Python versions
tox -e py313  # Test specific version
tox -e lint  # Run linting

Using uv (modern, faster approach):

pip install uv
cd python

# Test on specific Python version
uv run --python 3.10 pytest
uv run --python 3.11 pytest
uv run --python 3.13 pytest

# Install dev dependencies
uv pip install -e ".[dev]"

Running Tests

cd python
pip install -e ".[test]"
pytest

Building the Package

cd python
pip install -e ".[dev]"
python -m build

Contributing

Contributions are welcome! Please feel free to submit a Pull Request or open an issue on the GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for heart-centered-prompts 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heart-centered-prompts 0.6.0
File Size Uploaded
heart_centered_prompts-0.6.0.tar.gz 17.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for heart-centered-prompts 0.6.0
File Interpreter ABI Platform
heart_centered_prompts-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.9 kB

Release files / heart_centered_prompts-0.6.0.tar.gz

Download URL heart_centered_prompts-0.6.0.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4a62610db5e83d8735a4d2ca8971e9c73bf868b0612415e4ca2251831e33b766
BLAKE2b-256 checksum
How to use checksums
9338c40de9e19641049f8e5395897d1715b857f9d4b84007f54de3a4823f8498
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / heart_centered_prompts-0.6.0-py3-none-any.whl

Download URL heart_centered_prompts-0.6.0-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86621583f0a8fe993b62855879acbb89c1235aecf03f2402d280342c8832391f
BLAKE2b-256 checksum
How to use checksums
1a45f658dea3257c77b978a686053ee4bff8c575d81bf69bfdf8e87bd58d3173
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.1.12

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.0

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page