abstractapi.com asynchronous python wrapper
Project description
abstractapi.com asynchronous api wrapper
Docs: https://docs.abstractapi.com
Install
pip install aioabstractapi
Basic usage
from aioabstractapi import (
EmailValidator, PhoneValidator,
IBANValidator, VATValidator)
#email validation
email_validator = EmailValidator(token="12345...")
email = await email_validator.validate(
email = "example@example.site"
)
print(email.email)
#phone validation
phone_validator = PhoneValidator(token="12345...")
phone = await phone_validator.validate(
phone = "+x(xxx)xxx-xx-xx"
)
print(phone.valid)
#IBAN validation
iban_validator = IBANValidator(token="12345...")
iban = await iban_validator.validate(
iban = "BE71096*****6769"
)
print(iban.valid)
#VAT validation
vat_validator = VATValidator(token="12345...")
#Use this method to check VAT validity
vat = await vat_validator.validate(
vat_number = "SE55*****88001"
)
print(vat.company)
#Use this method to calculate a VAT compliant price.
calcs = await vat_validator.calculate(
amount = 100,
country_code = "DE"
)
print(calcs.rate)
#Use this method to get the latest VAT rates
categories = await vat_validator.get_categories(
country_code = "DE"
)
print(categories.description)
#close connection
await email_validator.close()
...
await vat_validator.close()
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
aioabstractapi-0.0.1.tar.gz
(7.6 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 aioabstractapi-0.0.1.tar.gz.
File metadata
- Download URL: aioabstractapi-0.0.1.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74584d179fcfaff7fda0a2f92167ae5ae13ce9ad205610f6fa75ae78d8bb61c0
|
|
| MD5 |
43187a3baab516529afa6ec41ea40c58
|
|
| BLAKE2b-256 |
f991b9bd6ea3cc0b5d6b88d0f8f27ec8d1bf1db6f63fc08c86c2e3071744b53f
|
File details
Details for the file aioabstractapi-0.0.1-py3-none-any.whl.
File metadata
- Download URL: aioabstractapi-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8c36ca653fdb1a718cf86633a12d5c7e64fe448fbdaacdb3ba2fdd71f1f8930
|
|
| MD5 |
c607a1695d6fdda915bbe321f3d5ea4f
|
|
| BLAKE2b-256 |
6a5820c41b7a1966c48167775fbe5e15cb7281cf55a1703130d6eba3063651d9
|