AADE Public AFM lookup (VAT info) via SOAP
Project description
aade-publicity-search
Python client for the AADE Public AFM (VAT) lookup service, using the official SOAP API. It allows you to retrieve publicly available company / professional information by AFM and returns the result as a Python dictionary (JSON-ready).
Features
- 🔎 AFM (VAT) public lookup
- 🇬🇷 Official AADE SOAP service
- ⚡ Async /
httpxbased - 🧼 Clean JSON output (dict)
- 🚫 No FastAPI dependency
- 🐍 Python 3.10+
Installation
pip install aade-publicity-search
import asyncio
from aade_publicity_search import AadeClient
async def main():
client = AadeClient(
username="AADE_USERNAME",
password="AADE_PASSWORD"
)
data = await client.get_vat_info("123456789")
print(data)
asyncio.run(main())
Returned data structure
The client returns a dictionary similar to:
{ "success": true, "error": { "code": null, "description": null }, "basic": { "afm": "123456789", "name": "COMPANY NAME", "doy": "ΔΟΥ ΑΘΗΝΩΝ", "legal_status": "ΑΤΟΜΙΚΗ ΕΠΙΧΕΙΡΗΣΗ" }, "firm_activities": [ { "activity_code": "62010000", "activity_descr": "Computer programming activities" } ] }
AFM validation
AFM numbers are validated locally before calling the AADE service.
If the AFM is invalid, a ValueError is raised.
Error handling
-
HTTP errors raise
httpx.HTTPStatusError -
Invalid AFM raises
ValueError -
AADE service errors are returned in the
errorfield of the response
Always check:
if not data["success"]: print(data["error"])
Requirements
-
Python 3.10+
-
Valid AADE SOAP credentials
-
Internet access to AADE services
Disclaimer
This library uses the official AADE public SOAP service.
It is not affiliated with or endorsed by AADE.
Use responsibly and according to AADE terms of service.
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 aade_publicity_search-1.0.2.tar.gz.
File metadata
- Download URL: aade_publicity_search-1.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8af022544b09cf866b0ec427bcafee51df34d4ef56cdaa4747b6b40ce011e72
|
|
| MD5 |
46ecfb8f0601aa7b21850d741a602a79
|
|
| BLAKE2b-256 |
409cf01cb70e691ef3cdb902d9367b49f0744785a3a700365f12ebbb9a3997ca
|
File details
Details for the file aade_publicity_search-1.0.2-py3-none-any.whl.
File metadata
- Download URL: aade_publicity_search-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8efa7034eeef3e145df18a26a2a04c6f8cc1baceb6e625ca9857e173e0eeef13
|
|
| MD5 |
84df8cec0a87bf2962d8c89563769aa7
|
|
| BLAKE2b-256 |
c96933c7f44a6221e08a036d0f8bad9bc39216225e0bcd1490b3b0dfa2aedf8a
|