Skip to main content

PartnershipParser

PyPI version License: MIT Downloads LinkedIn

PartnershipParser is a Python package designed to extract and structure key information from news articles or press releases about strategic partnerships in the technology sector. It processes unstructured text inputs to produce a standardized output that includes the collaborating companies, the focus area of their collaboration, and the potential impact or goals mentioned. This facilitates quick analysis and comparison of multiple partnership announcements, helping business analysts, investors, and researchers identify industry trends, competitive advantages, and market opportunities.

Features

  • Extracts key partnership details from free-text sources
  • Outputs structured, consistent data for easier downstream analysis
  • Utilizes advanced language models with flexible options
  • Easy to integrate into larger data processing pipelines

Installation

Install PartnershipParser via pip:

pip install partnershipparser

Usage

Below is an example of how to use the package in your Python code:

from partnershipparser import partnershipparser

user_input = "Apple and Google announced a collaboration to develop sustainable AI chips."
response = partnershipparser(user_input)
print(response)

Parameters:

  • user_input (str): The text content of the article or press release to analyze.
  • llm (Optional[BaseChatModel]): An instance of a language model to use for processing. Defaults to ChatLLM7 from langchain_llm7.
  • api_key (Optional[str]): API key for ChatLLM7. If not provided, it will attempt to read from environment variable LLM7_API_KEY. You can also pass it directly.

Supported Language Models

The package defaults to ChatLLM7 from langchain_llm7 ( https://pypi.org/project/langchain-llm7/ ). Users can pass custom language model instances such as:

from langchain_openai import ChatOpenAI
from partnershipparser import partnershipparser

llm = ChatOpenAI()
response = partnershipparser(user_input, llm=llm)

You can also use other supported models by importing and instantiating them similarly, such as ChatAnthropic, ChatGoogleGenerativeAI, etc. Refer to their respective documentation for setup.

Rate Limits and API Keys

The default rate limits for LLM7's free tier are suitable for most uses of this package. To obtain higher limits, you can:

  • Set LLM7_API_KEY environment variable
  • Pass your API key directly in partnershipparser():
response = partnershipparser(user_input, api_key="your_api_key")

Register for a free API key at https://token.llm7.io/

Contributing

Contributions are welcome! Please open issues or pull requests on our GitHub repository.

License

This project is licensed under the MIT License.

Contact

Author: Eugene Evstafev
Email: hi@euegne.plus
GitHub: chigwell
Issues: https://github.com/yourrepo/partnershipparser/issues

Metadata

Release files for partnershipparser 2025.12.21231803

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

Source distribution (sdist)

Source distribution for partnershipparser 2025.12.21231803
File Size Uploaded
partnershipparser-2025.12.21231803.tar.gz 5.5 kB Details

Built distribution (wheel)

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

Total release size: 11.7 kB

Release files / partnershipparser-2025.12.21231803.tar.gz

Download URL partnershipparser-2025.12.21231803.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5094a30e26e8b1e26de4e51ca9f67e92b24ae177f1148be0ea55057d0ce9acef
BLAKE2b-256 checksum
How to use checksums
f429c2afac0be81ddf8bdddd7ad42a6dfaec0a41c45e42b21d800678e4df9e26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / partnershipparser-2025.12.21231803-py3-none-any.whl

Download URL partnershipparser-2025.12.21231803-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a205953064ad2315e6733a59cf1f12f0c6cbb0f38c8f7efc9490cb7beed4946
BLAKE2b-256 checksum
How to use checksums
3f73f28e08a3355cf57bffb8451d35bebb61ef5931d6ae961ac12803ca16995e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

2025.12.21231803 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