Skip to main content

Philosim

PyPI version License: MIT Downloads LinkedIn

Philosim is a Python package that leverages the power of llmatch-messages to provide structured insights into complex philosophical and scientific topics, such as the simulation hypothesis.

Installation

Installation is simple:

pip install philosim

Usage

The main function philosim takes three parameters:

  • user_input: a string containing the topic or question you want to explore.
  • llm: an optional parameter for the LangChain LLM instance to use. If not provided, the package will use the ChatLLM7 instance from langchain_llm7 by default.
  • api_key: an optional parameter for the LLM7 API key. If not provided, the package will use the LLM7_API_KEY environment variable or the default free tier API key.
from philosim import philosim

# Using the default llm
response = philosim(user_input)

# Using a custom llm instance (e.g. openai)
from langchain_openai import ChatOpenAI
llm = ChatOpenAI()
response = philosim(user_input, llm=llm)

# Using a custom llm instance (e.g. anthropic)
from langchain_anthropic import ChatAnthropic
llm = ChatAnthropic()
response = philosim(user_input, llm=llm)

# Using a custom llm instance (e.g. google)
from langchain_google_genai import ChatGoogleGenerativeAI
llm = ChatGoogleGenerativeAI()
response = philosim(user_input, llm=llm)

# Using a custom llm7 api key
response = philosim(user_input, api_key="your_api_key")

Note on LLM Rate Limits

The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you need higher rate limits for LLM7, you can pass your own API key via environment variable LLM7_API_KEY or via passing it directly like philosim(user_input, api_key="your_api_key"). You can get a free API key by registering at https://token.llm7.io/.

Issues

To report any issues or request features, please visit our GitHub repository: https://github.com/chigwell/philosim/issues

Author

Philosim was created by Eugene Evstafev (hi@eugene.plus)

License

Philosim is released under the MIT License.

Changelog

[Add changelog here]

Metadata

Release files for philosim 2025.12.21095947

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

Source distribution (sdist)

Source distribution for philosim 2025.12.21095947
File Size Uploaded
philosim-2025.12.21095947.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for philosim 2025.12.21095947
File Interpreter ABI Platform
philosim-2025.12.21095947-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / philosim-2025.12.21095947.tar.gz

Download URL philosim-2025.12.21095947.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bc369b9f35c1a8d960b0adbe536968c59c8dad48db5c3a30ed7f514eada11676
BLAKE2b-256 checksum
How to use checksums
c2a7a40f3f216180d4c65a6bfea7deedb0967aa5799059cb21484b3773b10b09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / philosim-2025.12.21095947-py3-none-any.whl

Download URL philosim-2025.12.21095947-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63465cf81c798ecdb6594cca6d27b8fe8794a129d7bea13015611769ff64fd6e
BLAKE2b-256 checksum
How to use checksums
322869b4e2971accbe003376f7c3e8c5df09665f4790eeb75225557086b89869
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

2025.12.21095947 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