Skip to main content

A new package that leverages the power of llmatch-messages to provide structured insights into complex philosophical and scientific topics, such as the simulation hypothesis. Users can input a specifi

Project description

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

philosim-2025.12.21095947.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

philosim-2025.12.21095947-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file philosim-2025.12.21095947.tar.gz.

File metadata

  • Download URL: philosim-2025.12.21095947.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.11

File hashes

Hashes for philosim-2025.12.21095947.tar.gz
Algorithm Hash digest
SHA256 bc369b9f35c1a8d960b0adbe536968c59c8dad48db5c3a30ed7f514eada11676
MD5 aa911b23ee33ef4aa06822fb2468942d
BLAKE2b-256 c2a7a40f3f216180d4c65a6bfea7deedb0967aa5799059cb21484b3773b10b09

See more details on using hashes here.

File details

Details for the file philosim-2025.12.21095947-py3-none-any.whl.

File metadata

File hashes

Hashes for philosim-2025.12.21095947-py3-none-any.whl
Algorithm Hash digest
SHA256 63465cf81c798ecdb6594cca6d27b8fe8794a129d7bea13015611769ff64fd6e
MD5 0c14232c6fc86370836e1c2ad6d45ec7
BLAKE2b-256 322869b4e2971accbe003376f7c3e8c5df09665f4790eeb75225557086b89869

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page