A new package that processes news headlines and extracts structured information about company funding events, such as startup names, valuation amounts, and funding rounds, using pattern matching to en
Project description
FundingExtractor
FundingExtractor is a Python package designed to process news headlines and extract structured information about company funding events. Using pattern matching, it ensures consistent and accurate data extraction from text inputs, capturing details such as startup names, valuation amounts, and funding rounds.
Installation
pip install fundingextractor
Usage Example
from fundingextractor import fundingextractor
# Example user input
user_input = "Tech startup ABC raised $50M in Series A funding."
# Call the function with default LLM
results = fundingextractor(user_input)
print(results)
Parameters
-
user_input:
str
The input text to process, such as news headlines or reports. -
llm:
Optional[BaseChatModel]
An optional LangChain LLM instance. Defaults to usingChatLLM7fromlangchain_llm7. -
api_key:
Optional[str]
API key for the LLM service. If not provided, the package will attempt to use theLLM7_API_KEYenvironment variable.
Supported LLMs
The package uses ChatLLM7 from langchain_llm7 by default. You can also pass your own LLM instance to leverage different providers, such as:
- OpenAI
from langchain_openai import ChatOpenAI
from fundingextractor import fundingextractor
llm = ChatOpenAI()
response = fundingextractor(user_input, llm=llm)
- Anthropic
from langchain_anthropic import ChatAnthropic
from fundingextractor import fundingextractor
llm = ChatAnthropic()
response = fundingextractor(user_input, llm=llm)
- Google PaLM or Generative AI
from langchain_google_genai import ChatGoogleGenerativeAI
from fundingextractor import fundingextractor
llm = ChatGoogleGenerativeAI()
response = fundingextractor(user_input, llm=llm)
Notes
- The default rate limits for LLM7's free tier are sufficient for general use.
- For higher rate limits, you can pass your API key via the
LLM7_API_KEYenvironment variable or directly in the function call:
response = fundingextractor(user_input, api_key="your_api_key")
- Obtain a free API key by registering at https://token.llm7.io/
References
- The package utilizes
ChatLLM7from langchain_llm7
Support and Issues
For issues or contributions, please visit the GitHub repository: https://github.com/chigwell/fundingextractor
Author
- Eugene Evstafev
- Email: hi@eugene.plus
- GitHub: chigwell
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 fundingextractor-2025.12.21141421.tar.gz.
File metadata
- Download URL: fundingextractor-2025.12.21141421.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13d7ce1dd07153cd53db9d0b06534ace3e261e686e48801cd990480453fc93f5
|
|
| MD5 |
d5dcfbd2472ee1b466e72e01c11a9fb6
|
|
| BLAKE2b-256 |
1e7ce9561b107e9a743d9bc924e7755c9d647e09968ef617e3f35259ce21f0de
|
File details
Details for the file fundingextractor-2025.12.21141421-py3-none-any.whl.
File metadata
- Download URL: fundingextractor-2025.12.21141421-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35d6814147ee2e622b593ea1ab78470f2c053d0a8243af06e7061907a9228939
|
|
| MD5 |
23e542105deada437e2a24ebb5cecc95
|
|
| BLAKE2b-256 |
feb2a747919ee87844d3f268fda269ecdc94685a20b57d133ab8a2a222cd2729
|