Skip to main content

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 / httpx based
  • 🧼 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 error field 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aade_publicity_search-1.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aade_publicity_search-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file aade_publicity_search-1.0.0.tar.gz.

File metadata

  • Download URL: aade_publicity_search-1.0.0.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

Hashes for aade_publicity_search-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bacd056fa0d0dc482a78ddad1ade17213e1fd108e361496956c20999509bb67a
MD5 b056fb422edac61eb2e377ed17502d98
BLAKE2b-256 0404ffe1d21026c7202dfbff78fa36f50a02c5582f0a771717633e54421293df

See more details on using hashes here.

File details

Details for the file aade_publicity_search-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aade_publicity_search-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3ad0d40606626e18bbca18729a11091707de5281b907096e999251003026919
MD5 f4f8aa3d67c21281fd962e7ae4c47ac3
BLAKE2b-256 b62175fa43007ba614208cef6f0d040dc604e600bd7208a8f58094799707a132

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page