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.
Metadata
Release files for pharma-globex 2025.12.21100525
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pharma_globex-2025.12.21100525.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pharma_globex-2025.12.21100525-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / pharma_globex-2025.12.21100525.tar.gz
| Download URL | pharma_globex-2025.12.21100525.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d992efc6d75f2c3165ee453bfdd1157ad9ee4dca311600d897784514cb6fa2ad
|
|
BLAKE2b-256 checksum How to use checksums |
c9f1f1c004fd334bcd8177899cda45196fffa952f56bd22c679856a2a882fca9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / pharma_globex-2025.12.21100525-py3-none-any.whl
| Download URL | pharma_globex-2025.12.21100525-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc3dd7154143c5db39576e894e83b415f3b1cd15550e780f9bacb6351e951fe7
|
|
BLAKE2b-256 checksum How to use checksums |
fddcc298fc3668d970633628f546232d4b901142ee3071d3364a29f6281f27d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|