# abstractapi.com asynchronous api wrapper
**Docs**: https://docs.abstractapi.com
**Install**
``` bash
pip install aioabstractapi
```
**Basic usage**
``` python
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()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ImmortalNameless/aioabstractapi",
"name": "aioabstractapi",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "abstract, aioabstract, abstract api, aioabstract api",
"author": "Immortal",
"author_email": "pavelmarklev507@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f9/91/b9bd6ea3cc0b5d6b88d0f8f27ec8d1bf1db6f63fc08c86c2e3071744b53f/aioabstractapi-0.0.1.tar.gz",
"platform": null,
"description": "# abstractapi.com asynchronous api wrapper\n\n**Docs**: https://docs.abstractapi.com\n\n**Install**\n``` bash\npip install aioabstractapi\n```\n\n**Basic usage**\n``` python\nfrom aioabstractapi import (\n EmailValidator, PhoneValidator,\n IBANValidator, VATValidator)\n\n#email validation\nemail_validator = EmailValidator(token=\"12345...\")\nemail = await email_validator.validate(\n email = \"example@example.site\"\n)\nprint(email.email)\n\n\n#phone validation\nphone_validator = PhoneValidator(token=\"12345...\")\nphone = await phone_validator.validate(\n phone = \"+x(xxx)xxx-xx-xx\"\n)\nprint(phone.valid)\n\n\n#IBAN validation\niban_validator = IBANValidator(token=\"12345...\")\niban = await iban_validator.validate(\n iban = \"BE71096*****6769\"\n)\nprint(iban.valid)\n\n\n#VAT validation\nvat_validator = VATValidator(token=\"12345...\")\n#Use this method to check VAT validity\nvat = await vat_validator.validate( \n vat_number = \"SE55*****88001\"\n)\nprint(vat.company)\n\n#Use this method to calculate a VAT compliant price.\ncalcs = await vat_validator.calculate(\n amount = 100,\n country_code = \"DE\"\n)\nprint(calcs.rate)\n\n#Use this method to get the latest VAT rates\ncategories = await vat_validator.get_categories(\n country_code = \"DE\"\n)\nprint(categories.description)\n\n\n#close connection\nawait email_validator.close()\n...\nawait vat_validator.close()\n\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "abstractapi.com asynchronous python wrapper",
"version": "0.0.1",
"project_urls": {
"GitHub": "https://github.com/ImmortalNameless",
"Homepage": "https://github.com/ImmortalNameless/aioabstractapi"
},
"split_keywords": [
"abstract",
" aioabstract",
" abstract api",
" aioabstract api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6a5820c41b7a1966c48167775fbe5e15cb7281cf55a1703130d6eba3063651d9",
"md5": "c607a1695d6fdda915bbe321f3d5ea4f",
"sha256": "b8c36ca653fdb1a718cf86633a12d5c7e64fe448fbdaacdb3ba2fdd71f1f8930"
},
"downloads": -1,
"filename": "aioabstractapi-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c607a1695d6fdda915bbe321f3d5ea4f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 11848,
"upload_time": "2024-05-16T09:47:48",
"upload_time_iso_8601": "2024-05-16T09:47:48.156492Z",
"url": "https://files.pythonhosted.org/packages/6a/58/20c41b7a1966c48167775fbe5e15cb7281cf55a1703130d6eba3063651d9/aioabstractapi-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f991b9bd6ea3cc0b5d6b88d0f8f27ec8d1bf1db6f63fc08c86c2e3071744b53f",
"md5": "43187a3baab516529afa6ec41ea40c58",
"sha256": "74584d179fcfaff7fda0a2f92167ae5ae13ce9ad205610f6fa75ae78d8bb61c0"
},
"downloads": -1,
"filename": "aioabstractapi-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "43187a3baab516529afa6ec41ea40c58",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 7560,
"upload_time": "2024-05-16T09:47:49",
"upload_time_iso_8601": "2024-05-16T09:47:49.405202Z",
"url": "https://files.pythonhosted.org/packages/f9/91/b9bd6ea3cc0b5d6b88d0f8f27ec8d1bf1db6f63fc08c86c2e3071744b53f/aioabstractapi-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-16 09:47:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ImmortalNameless",
"github_project": "aioabstractapi",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "aioabstractapi"
}