memoryinvestguide
memoryinvestguide is a Python package that helps users navigate the volatile memory market by generating personalized, long‑term investment strategies. By providing your current financial situation, risk tolerance, and investment goals as plain text, the package uses a language model to return a structured response containing:
- A personalized investment plan
- Market insights specific to memory technology
- Risk‑management recommendations
The goal is to give clear, actionable advice so you can make informed decisions despite short‑term market fluctuations.
Installation
pip install memoryinvestguide
Quick Start
from memoryinvestguide import memoryinvestguide
# Simple usage with the default LLM (ChatLLM7)
user_input = """
I have $20,000 to invest, moderate risk tolerance, and I aim to grow my portfolio over the next 5 years.
I am interested in memory technologies like DRAM and NAND flash.
"""
response = memoryinvestguide(user_input)
print("\n".join(response))
The function returns a list of strings that together form the structured investment plan.
Function Signature
def memoryinvestguide(
user_input: str,
api_key: Optional[str] = None,
llm: Optional[BaseChatModel] = None,
) -> List[str]:
| Parameter | Type | Description |
|---|---|---|
user_input |
str |
The user’s free‑form text describing their financial situation, risk tolerance, and investment goals. |
api_key |
Optional[str] |
API key for ChatLLM7. If omitted, the package looks for the environment variable LLM7_API_KEY. |
llm |
Optional[BaseChatModel] |
A custom LangChain LLM instance. When supplied, it supersedes the default ChatLLM7. |
Default Language Model (ChatLLM7)
If you do not provide an llm instance, memoryinvestguide automatically creates a ChatLLM7 client (from the langchain_llm7 package) using the supplied api_key or the LLM7_API_KEY environment variable.
pip install langchain_llm7
The free tier of LLM7 provides generous rate limits that are sufficient for most personal and prototype use cases.
Using a Custom LLM
You can plug any LangChain‑compatible chat model instead of the default ChatLLM7. Below are examples for popular providers.
OpenAI
from langchain_openai import ChatOpenAI
from memoryinvestguide import memoryinvestguide
llm = ChatOpenAI(model="gpt-4o-mini") # adjust model as needed
response = memoryinvestguide(
user_input="...",
llm=llm
)
Anthropic
from langchain_anthropic import ChatAnthropic
from memoryinvestguide import memoryinvestguide
llm = ChatAnthropic(model="claude-3-haiku-20240307")
response = memoryinvestguide(
user_input="...",
llm=llm
)
Google Gemini
from langchain_google_genai import ChatGoogleGenerativeAI
from memoryinvestguide import memoryinvestguide
llm = ChatGoogleGenerativeAI(model="gemini-1.5-flash")
response = memoryinvestguide(
user_input="...",
llm=llm
)
All of the above examples require the corresponding LangChain provider package to be installed.
API Key & Rate Limits
- LLM7: Register for a free API key at https://token.llm7.io/.
- Set the key via an environment variable:
export LLM7_API_KEY="your_api_key_here"
or pass it directly:response = memoryinvestguide(user_input, api_key="your_api_key_here")
The default free tier rate limits are ample for typical usage. If you need higher throughput, upgrade your LLM7 plan and provide the new key as shown above.
Contributing & Support
- Issue Tracker: https://github....
- Source Code: (add your repository link here)
Feel free to open an issue for bug reports, feature requests, or general questions.
Author
Eugene Evstafev
📧 Email: hi@euegne.plus
🐙 GitHub: chigwell
License
This project is licensed under the MIT License – see the LICENSE file for details.
Metadata
Release files for memoryinvestguide 2025.12.21135045
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 | Actions |
|---|---|---|---|---|
| memoryinvestguide-2025.12.21135045.tar.gz | 7.5 kB | Without provenance | Details for memoryinvestguide-2025.12.21135045.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| memoryinvestguide-2025.12.21135045-py3-none-any.whl | Python 3 | none | any | Details for memoryinvestguide-2025.12.21135045-py3-none-any.whl |
Total release size: 15.6 kB
Release files / memoryinvestguide-2025.12.21135045.tar.gz
| Download URL | memoryinvestguide-2025.12.21135045.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1466a5ec4bf7cbf4353bd50d9475fc67cca1e4955fe3efb1b304dd15e13d0ca7
|
|
BLAKE2b-256 checksum How to use checksums |
6c90dd3f801ff5f8d9ac5190e493567117a614b0ae839948e96313e79ede5e74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / memoryinvestguide-2025.12.21135045-py3-none-any.whl
| Download URL | memoryinvestguide-2025.12.21135045-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f06f12a5e7e745c439d877e7af633e9117c53fe215bb969bbcb242006d2e0658
|
|
BLAKE2b-256 checksum How to use checksums |
a73329e7ecb0fffd69d80dad43a29180f19085724a10dac8ffa60788b58d2bdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for memoryinvestguide 2025.12.21135045
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.