A Python library for AI-powered API data transformation.
Project description
🚀 TransmorphAI - AI-Powered Data Transformation for APIs
📌 Introduction
TransmorphAI is a Python library designed to simplify communication between APIs. Normally, when integrating with an API, developers must strictly follow the API’s documentation, ensuring that their requests match the required data types and structure.
With TransmorphAI, this is no longer necessary. API consumers can send data in any format (JSON, XML, plain text) without worrying about how the final API expects it.
🔹 Why Use TransmorphAI?
✅ API consumers don’t need to adapt to the API provider’s documentation.
✅ You only need to know the parameter names, not their types or format.
✅ The API receiving the request, which has TransmorphAI integrated, will automatically format and validate the data before storing it.
✅ API consumers don’t need to know the final format—they just send the data, and TransmorphAI handles the transformation.
🛠 Features
✅ Supports multiple input formats (JSON, XML, plain text).
✅ Automatically formats data according to the API’s required structure.
✅ Detects missing required fields and alerts if any are missing.
✅ Maintains correct data types (e.g., converts numbers, strings, and lists correctly).
✅ Detects input language and preserves the intended output format.
✅ Secure and flexible, allowing easy integration into any Python-based API.
🎯 Use Case Example
Traditional API Integration (Without TransmorphAI)
Normally, when consuming an API, developers need to strictly follow the API documentation and format their requests exactly as required.
For example, if an API requires:
{
"full_name": "John Doe",
"age": 30,
"email": "john.doe@example.com"
}
The consumer must send this exact format, with correct data types and field names.
If they send:
{
"name": "John Doe",
"years": "30",
"mail": "john.doe@example.com"
}
🚨 The API will reject it! 🚨
API Integration with TransmorphAI
With TransmorphAI, the API consumer doesn’t need to worry about formatting. They can send:
✅ As JSON:
{
"name": "John Doe",
"years": "30",
"mail": "john.doe@example.com"
}
✅ As XML:
<user>
<name>John Doe</name>
<years>30</years>
<mail>john.doe@example.com</mail>
</user>
✅ As Plain Text:
name: John Doe
years: 30
mail: john.doe@example.com
👉 TransmorphAI automatically converts the input to the correct format required by the API provider:
{
"full_name": "John Doe",
"age": 30,
"email": "john.doe@example.com"
}
✅ No need to follow API documentation strictly!
✅ Faster integration without error-handling headaches!
📌 Installation
TransmorphAI will soon be available on PyPI. In the meantime, you can install it manually:
pip install TransmorphAI
Or clone the repository and install locally:
git clone https://github.com/gimenomarc/TransmorphAI.git
cd TransmorphAI
pip install -e .
📜 License
MIT License
📞 Contact
For questions or suggestions, feel free to reach out on GitHub! 🚀
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 transmorphai-0.1.0.tar.gz.
File metadata
- Download URL: transmorphai-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
766f5717fa1e793ca185c5e53f73ce5bf2d38fb1019b17ef4693909f4c9a27e5
|
|
| MD5 |
16671a1022873df88587704fdc8e946a
|
|
| BLAKE2b-256 |
348052e02f97b2d61c344a4f42b948d54117c500d2f0e9646f77291cc4ff1eba
|
File details
Details for the file transmorphai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: transmorphai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e2afb68f8623ad374409cf26b36f778758b8e7d545a40f436a62e920aaf0390
|
|
| MD5 |
ad44de5cd70d22b754760d7f4d36face
|
|
| BLAKE2b-256 |
b05e415973755affd0d778ea47c9129cc564831e16961e9f55a5a7674432ce8b
|