A new package designed to analyze input texts related to global pharmaceutical trends, such as India's role in manufacturing generics, and generate structured summaries or insights. It leverages struc
Project description
Pharma-Globex Package
Pharma-Globex is a Python library designed to analyze input texts related to global pharmaceutical trends, such as India's role in manufacturing generics. It leverages structured pattern matching to extract key points from user-provided content and generate concise, information-rich summaries suitable for reporting or decision-making. The system ensures reliable extraction even with varied phrasing by using pattern verification and retries, making it ideal for summarizing market developments, policy impacts, or industry progress.
Installation
Install the package via pip:
pip install pharma_globex
Usage
Import and use the package in your Python code:
from pharma_globex import pharma_globex
response = pharma_globex(user_input="Your input text here")
Parameters
- user_input (
str): The input text to process. - llm (
Optional[BaseChatModel]): An instance of a language model from langchain. Defaults to using ChatLLM7. - api_key (
Optional[str]): API key for the LLM7 service. If not provided, it attempts to read from the environment variableLLM7_API_KEY.
Custom LLM Support
The package defaults to using ChatLLM7 from langchain_llm7 (https://pypi.org/project/langchain-llm7/). Users can pass their own language model instances for flexibility:
from langchain_openai import ChatOpenAI
llm = ChatOpenAI()
response = pharma_globex(user_input="Query", llm=llm)
Similarly, support for other LLM providers such as Anthropic, Google Generative AI, etc., is available with appropriate imports and model instantiations.
Notes
- To get a free API key for LLM7, register at https://token.llm7.io/
- The default rate limits are sufficient for most use cases.
- For higher limits, pass your API key via environment variable
LLM7_API_KEYor directly during function call.
Issues
Please report issues or suggest improvements on the GitHub repository: https://github.com/...
Author
- Eugene Evstafev (hi@eugene.plus)
License
This project is open source and available under the MIT License.
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 pharma_globex-2025.12.21100525.tar.gz.
File metadata
- Download URL: pharma_globex-2025.12.21100525.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d992efc6d75f2c3165ee453bfdd1157ad9ee4dca311600d897784514cb6fa2ad
|
|
| MD5 |
2c15db770869ba9d8eca700b2aa9805f
|
|
| BLAKE2b-256 |
c9f1f1c004fd334bcd8177899cda45196fffa952f56bd22c679856a2a882fca9
|
File details
Details for the file pharma_globex-2025.12.21100525-py3-none-any.whl.
File metadata
- Download URL: pharma_globex-2025.12.21100525-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc3dd7154143c5db39576e894e83b415f3b1cd15550e780f9bacb6351e951fe7
|
|
| MD5 |
c7cd90d44e218dd9a5e3f829a912d1d9
|
|
| BLAKE2b-256 |
fddcc298fc3668d970633628f546232d4b901142ee3071d3364a29f6281f27d0
|