Skip to main content

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

PyPI version License: MIT Downloads LinkedIn

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 using ChatLLM7 from langchain_llm7.

  • api_key: Optional[str]
    API key for the LLM service. If not provided, the package will attempt to use the LLM7_API_KEY environment 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_KEY environment variable or directly in the function call:
response = fundingextractor(user_input, api_key="your_api_key")

References

Support and Issues

For issues or contributions, please visit the GitHub repository: https://github.com/chigwell/fundingextractor

Author

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

fundingextractor-2025.12.21141421.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

fundingextractor-2025.12.21141421-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file fundingextractor-2025.12.21141421.tar.gz.

File metadata

File hashes

Hashes for fundingextractor-2025.12.21141421.tar.gz
Algorithm Hash digest
SHA256 13d7ce1dd07153cd53db9d0b06534ace3e261e686e48801cd990480453fc93f5
MD5 d5dcfbd2472ee1b466e72e01c11a9fb6
BLAKE2b-256 1e7ce9561b107e9a743d9bc924e7755c9d647e09968ef617e3f35259ce21f0de

See more details on using hashes here.

File details

Details for the file fundingextractor-2025.12.21141421-py3-none-any.whl.

File metadata

File hashes

Hashes for fundingextractor-2025.12.21141421-py3-none-any.whl
Algorithm Hash digest
SHA256 35d6814147ee2e622b593ea1ab78470f2c053d0a8243af06e7061907a9228939
MD5 23e542105deada437e2a24ebb5cecc95
BLAKE2b-256 feb2a747919ee87844d3f268fda269ecdc94685a20b57d133ab8a2a222cd2729

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