A new package that helps users capture and organize their life moments in a structured way. Users can input their experiences, thoughts, or significant events, and the package will process this text t
Project description
lifelogger‑ai
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
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 lifelogger_ai-2025.12.21160026.tar.gz.
File metadata
- Download URL: lifelogger_ai-2025.12.21160026.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97117632dd4749bb2178ed97176f031d63dbaa872cfcbf04bde0e633951bb26f
|
|
| MD5 |
4613195f51fee5eb4687e5ae1e8f01c2
|
|
| BLAKE2b-256 |
cad0fe5016ee7a0c21b68456979c401a4ab1f3e15b37a498fdd228590b379885
|
File details
Details for the file lifelogger_ai-2025.12.21160026-py3-none-any.whl.
File metadata
- Download URL: lifelogger_ai-2025.12.21160026-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43a0d3abe10656feba1fb528b8a30cdda9656730f92f3f54f0f2a3068ec8cd13
|
|
| MD5 |
5d2355c7de142259bd7301154c7e3159
|
|
| BLAKE2b-256 |
067e8d4bea9135a38f858cf2959537a77a256817969f9e1e978d3a1752ef2c0c
|