Skip to main content

lifelogger‑ai

PyPI version License: MIT Downloads LinkedIn

A lightweight Python package for turning raw life‑journal entries into structured summaries.
lifelogger‑ai takes a block of text describing a moment, event or thought, sends it to an LLM, and extracts a concise summary that includes context, emotions, and key points. The output can be used for personal journaling, social‑media sharing or building collections of meaningful life moments.


Installation

pip install lifelogger_ai

Quick Start

from lifelogger_ai import lifelogger_ai

# Text you want to process
user_input = """
I spent the afternoon hiking up Blue Ridge Mountain, feeling a mix of triumph and exhaustion.
The wind was blowing strong and the view from the summit was breathtaking. I took a photo of a golden sunrise over the valley.
"""

# Run the lifestream summarization
summary = lifelogger_ai(user_input)

print(summary)
# ['Summarised sentences here...']

The function returns a list of strings – one or more sentences that capture the essence of the input.


Parameters

Name Type Description
user_input str The raw text describing a personal moment, event or thought.
llm Optional[BaseChatModel] A LangChain language‑model instance to use for processing. If omitted, the default ChatLLM7 from langchain_llm7 is used.
api_key Optional[str] The API key for LLM7. If omitted, the package first looks for the LLM7_API_KEY environment variable; otherwise a free‑tier key is used.

Using Your Own LLM

lifelogger-ai is LLM‑agnostic. Pass any LangChain model that implements BaseChatModel to the function:

# Example 1 – OpenAI
from langchain_openai import ChatOpenAI
from lifelogger_ai import lifelogger_ai

llm = ChatOpenAI(model="gpt-4o-mini")
response = lifelogger_ai("Your text here", llm=llm)
# Example 2 – Anthropic
from langchain_anthropic import ChatAnthropic
from lifelogger_ai import lifelogger_ai

llm = ChatAnthropic()
response = lifelogger_ai("Your text here", llm=llm)
# Example 3 – Google Gemini
from langchain_google_genai import ChatGoogleGenerativeAI
from lifelogger_ai import lifelogger_ai

llm = ChatGoogleGenerativeAI()
response = lifelogger_ai("Your text here", llm=llm)

Rate Limits & API Key for LLM7

The free tier of LLM7 offers rate limits that generally suffice for typical usage.
If you need higher limits:

  • Environment variable: export LLM7_API_KEY=your_key_here
  • Explicit argument: lifelogger_ai(user_input, api_key="your_key_here")

Get a free key at https://token.llm7.io/


Contributing & Issues

Feel free to open issues or submit pull requests on GitHub: https://github.com/chigwell/lifelogger-ai


Author

Eugene Evstafev
Email: hi@euegne.plus
GitHub: chigwell


Metadata

Release files for lifelogger-ai 2025.12.21160026

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

Source distribution (sdist)

Source distribution for lifelogger-ai 2025.12.21160026
File Size Uploaded
lifelogger_ai-2025.12.21160026.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lifelogger-ai 2025.12.21160026
File Interpreter ABI Platform
lifelogger_ai-2025.12.21160026-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / lifelogger_ai-2025.12.21160026.tar.gz

Download URL lifelogger_ai-2025.12.21160026.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
97117632dd4749bb2178ed97176f031d63dbaa872cfcbf04bde0e633951bb26f
BLAKE2b-256 checksum
How to use checksums
cad0fe5016ee7a0c21b68456979c401a4ab1f3e15b37a498fdd228590b379885
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / lifelogger_ai-2025.12.21160026-py3-none-any.whl

Download URL lifelogger_ai-2025.12.21160026-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43a0d3abe10656feba1fb528b8a30cdda9656730f92f3f54f0f2a3068ec8cd13
BLAKE2b-256 checksum
How to use checksums
067e8d4bea9135a38f858cf2959537a77a256817969f9e1e978d3a1752ef2c0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

2025.12.21160026 This release

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