
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
ector
Advanced tools
Extract from a given long text input, eCommerce products and price budget.
This is not an "OpenAI wrapper", it use NLP(Natural Language Processing) and tokens manipulations to 'understand the given input' then extract product key name + budget.
Therefore, this is not 100% optimized at all and was not tested on extreme edge-cases. However it's quite fast and does the job for my use case at the moment.
pip install ector
$ python
Python 3.12.9 (main, Feb 5 2025, 08:49:01) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import json
>>> import asyncio
>>> from ector import extract
>>>
>>> text = "Hello, do you have some apple juice at 9 eur ? i also want bananas, but i only have 15 eur"
>>> print(json.dumps(asyncio.run(extract(text)), indent=2))
{
"products": [
{
"product": "Apple juice",
"price": 9.0,
"currency": "eur"
},
{
"product": "Bananas"
}
],
"budget": {
"price": 15.0,
"currency": "eur"
}
}
>>>
FAQs
Extract from a given long text input, eCommerce products and price budget.
We found that ector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.