azure-ai-helper
A simple, human-friendly wrapper over Azure AI Vision and Language services.
- Clean API: one-line calls like
ai.vision.analyze(path_or_url)andai.language.summarize(text). - Human-readable outputs instead of raw JSON.
- Friendly errors with quick hints.
Install
Choose extras for services you need:
pip install "azure-ai-helper[vision,language]"
Or base package only (no SDKs):
pip install azure-ai-helper
Quick Start
from azure_ai_helper import AzureAI
# IMPORTANT: Use your own Vision & Language endpoint/key
# Do NOT reuse credentials from other Azure services
ai = AzureAI(endpoint="https://<your-endpoint>", key="<your-key>")
print(ai.vision.analyze("my_image.jpg")) # local file
print(ai.vision.analyze("https://example.com/photo.jpg")) # URL
print(ai.language.summarize("Long text..."))
print(ai.language.sentiment("I love this!"))
Credentials
- You must provide your own Azure Cognitive Services endpoint and key.
- This library never ships with embedded credentials and will not read any demo defaults. You control the endpoint/key.
- Use resource keys for the specific services included here (Vision and Text Analytics). Do not use keys from unrelated services.
Errors
- All errors raise
AzureAIErrorwith a helpful hint. Common cases:- Missing SDK -> install the corresponding extra.
- Invalid image URL -> provide a direct
.jpg/.pngor local path. - Summarization unsupported -> we fallback to key phrases; consider enabling the feature in your Azure resource.
Testing
Install dev tools and run tests:
pip install pytest
pytest -q
Roadmap
- Speech service placeholders are present and will be implemented in a future release.
License
Select a license (e.g., MIT) and update this section.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
azure_ai_helper-0.1.0.tar.gz
(6.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azure_ai_helper-0.1.0.tar.gz.
File metadata
- Download URL: azure_ai_helper-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efbcd495795e3d36adca8a60eb2572840c554074825a75891e64332e1cf50991
|
|
| MD5 |
6ae8a43fc078c58268c24ec7f51c154b
|
|
| BLAKE2b-256 |
c7133037bea3244bbd12a90832d4528b1409c3eca22a36a5f30d16678f686201
|
File details
Details for the file azure_ai_helper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: azure_ai_helper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d8ba697a100ca5bda1201869cdb2ca5208de8ae483880c1f4d00977080e0646
|
|
| MD5 |
7dd5ff265b1816c10d04b8ba1fdde545
|
|
| BLAKE2b-256 |
dec49ad9a8f4b0dcbb5f74f48308cb1a6eb361dc5e45dbb6f39121334604e93b
|