Sitemap

Python: External Libraries You Can’t Ignore - Part 3

Uncommon But Extremely Useful

3 min readJun 10, 2025

--

Press enter or click to view image in full size

Hi, and welcome to another installment of my exploration of Python’s vast and powerful library ecosystem!

(Incase if you have missed my previous article — Part 2)

In this segment, I will continue to share some of the coolest Python libraries which have become essential in my coding journey and that I think you might don’t know about them.

Let’s dive in –

1. langextract

Used for extracting structured data (entities, attributes, relations, etc.) from unstructured text using large language models.

from langextract import Extractor


# Create an extractor with a simple pattern
extractor = Extractor(patterns={
"date": r"\b\d{4}-\d{2}-\d{2}\b",
"id": r"BR\d+"
})

text = """
Report generated 2025-09-10 for case BR1122.
Follow up scheduled 2025-09-09 for case BR3344.
"""

results = extractor.extract(text)

for item in results:
print(item)


# o/p -
# {'type': 'date', 'value': '2025-09-10', 'span': (18, 28)}
# {'type': 'id', 'value': 'BR1122', 'span': (38, 44)}
# {'type': 'date', 'value': '2025-09-09', 'span': (69, 79)}
# {'type': 'id', 'value': 'BR3344', 'span': (89, 95)}

2. FlashText - Fast Keyword…

--

--

Pravash
Pravash

Written by Pravash

I am a passionate Data Engineer and Technology Enthusiast. Here I am using this platform to share my knowledge and experience on tech stacks.

No responses yet