taleb-analysis
A text-based analysis package inspired by Nassim Taleb's concepts of Black Swan events and antifragility.
Overview
A new package would provide a text input describing a system, event, or scenario, and return a structured analysis based on Nassim Taleb's concepts of Black Swan events and antifragility. It would identify whether the input describes a fragile, robust, or antifragile system, highlight potential hidden risks (Black Swans), and suggest principles to improve resilience or benefit from volatility.
Installing
You can install the package using pip:
pip install taleb_analysis
Usage
To use the package, you can call the taleb_analysis function with the following parameters:
from taleb_analysis import taleb_analysis
value = taleb_analysis(user_input="text to analyze", api_key=None, llm=None)
By default, it will use the ChatLLM7 from langchain_llm7 package as the LLM instance. You can pass your own llm instance if you prefer to use a different LLM.
For example, to use the OpenAI's LLM, you can pass it like this:
from langchain_openai import ChatOpenAI
from taleb_analysis import taleb_analysis
llm = ChatOpenAI()
response = taleb_analysis(user_input="text to analyze", llm=llm)
Similarly, for Anthenropic:
from langchain_anthropic import ChatAnthropic
from taleb_analysis import taleb_analysis
llm = ChatAnthropic()
response = taleb_analysis(user_input="text to analyze", llm=llm)
And for Google Generative AI:
from langchain_google_genai import ChatGoogleGenerativeAI
from taleb_analysis import taleb_analysis
llm = ChatGoogleGenerativeAI()
response = taleb_analysis(user_input="text to analyze", llm=llm)
API Key for ChatLLM7
The default rate limits for the ChatLLM7 free tier are generally sufficient. For higher rate limits, you can provide your API key in one of the following ways:
- Set the
LLM7_API_KEYenvironment variable. - Pass the API key directly to the function:
taleb_analysis(user_input, api_key="your_api_key").
You can obtain a free API key by registering at https://token.llm7.io/
Contributing
Contributions are welcome! Please refer to the GitHub repository for more information.
Author
- Eugene Evstafev (hi@eugene.plus)
GitHub
Metadata
Release files for taleb-analysis 2025.12.21155436
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 |
|---|---|---|---|---|
| taleb_analysis-2025.12.21155436.tar.gz | 4.7 kB | Without provenance | Details for taleb_analysis-2025.12.21155436.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| taleb_analysis-2025.12.21155436-py3-none-any.whl | Python 3 | none | any | Details for taleb_analysis-2025.12.21155436-py3-none-any.whl |
Total release size: 10.0 kB
Release files / taleb_analysis-2025.12.21155436.tar.gz
| Download URL | taleb_analysis-2025.12.21155436.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4efe24102ce8c60226c5fb47c4760f939448a731806cc946f0e7bf82cb193e29
|
|
BLAKE2b-256 checksum How to use checksums |
d04565d8378e1691505ffe2d4d04feeb804648359215a272cfa4781fc8fdcde7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / taleb_analysis-2025.12.21155436-py3-none-any.whl
| Download URL | taleb_analysis-2025.12.21155436-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27b5f6d02339f08535d41eea6a43f87e40f57372efba972dbe67730fdd8be92d
|
|
BLAKE2b-256 checksum How to use checksums |
a2cd967e55f2b69f695ce8e112f2244eb1437f25e7041f89b5153badc77e4d56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for taleb-analysis 2025.12.21155436
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.