ECTOR
Extract from a given long text input, eCommerce products and price budget.
DISCLAIMER
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.
REQUIREMENTS
- python3 (>=3.10)
- scapy
HOW TO INSTALL
pip install ector
HOW TO USE
$ 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"
}
}
>>>
AUTHOR
- Sanix-Darker
Metadata
Release files for ector 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ector-0.1.2.tar.gz | 12.6 kB | Without provenance | Details for ector-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ector-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for ector-0.1.2-py3-none-any.whl |
Total release size: 25.6 kB
Release files / ector-0.1.2.tar.gz
| Download URL | ector-0.1.2.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ddd4fdf12557d00202698b1b127e1ef33bcfe6a45384e8db0dc318b7d15fc48
|
|
BLAKE2b-256 checksum How to use checksums |
8a26e48caa3440ee4342432301c85a3759b0af12711df9a30cad1da8c438bb10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Linux/6.8.0-1021-azure
|
Release files / ector-0.1.2-py3-none-any.whl
| Download URL | ector-0.1.2-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee6df115a2329cabe8f684e2e78143cca02c5d7cdd750a8324c517f898005d19
|
|
BLAKE2b-256 checksum How to use checksums |
1eceae38c25d4823fbd126ad4a6b747667322f58003e560df8455986267f1312
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Linux/6.8.0-1021-azure
|
Security for ector 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.