Translation endpoint
Run python gemini_shipping_flask_api.py and send a POST /translate request with JSON such as:
curl -X POST http://localhost:5050/translate \
-H "Content-Type: application/json" \
-d '{"text": "boleh tolong check status order saya?"}'
The API responds with the sanitized original text and an English translation derived from the configured OpenAI model. Basic HTML tags are stripped before translation to handle chat inputs that include markup, and empty prompts are rejected after cleaning. The /search endpoint also removes HTML markup, detects Malay inputs, translates them to English, and only skips translation when the request already appears to be English.
Streamlit chatbot
Run the Flask API first so the UI can delegate search and summarisation to /search:
python gemini_shipping_flask_api.py
Then launch the Streamlit UI in a separate terminal:
streamlit run streamlit_chat.py
By default, the app posts to http://localhost:5050/search. Override the endpoint with CHATBOT_SEARCH_URL if you deploy the API elsewhere. The sidebar shows the running conversation summary returned by the backend, and the conversation history stays in the session so follow-up questions include prior context.
Metadata
Release files for engine-matching-client 0.1.1
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 |
|---|---|---|---|---|
| engine_matching_client-0.1.1.tar.gz | 2.7 kB | Without provenance | Details for engine_matching_client-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| engine_matching_client-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for engine_matching_client-0.1.1-py3-none-any.whl |
Total release size: 5.6 kB
Release files / engine_matching_client-0.1.1.tar.gz
| Download URL | engine_matching_client-0.1.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f2f69005d54fea1e854208003ee0607c16ca050c514ab142140eb3b3d1e1cc9
|
|
BLAKE2b-256 checksum How to use checksums |
96384ffdea237ddc04054bbf3eef42a5e9fa283e1fad81c8777f18af8b873e39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / engine_matching_client-0.1.1-py3-none-any.whl
| Download URL | engine_matching_client-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b8fc63fa33512699fd07c364cf7f6e19d2d45f39261abd4107b0423ca1c539f
|
|
BLAKE2b-256 checksum How to use checksums |
7f97fbb3330325ec81aecfe8d85866892d8632f36d206d1f6583427cbe59e78b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for engine-matching-client 0.1.1
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.