Skip to main content

SDK oficial para a IPTU API - Dados de IPTU de São Paulo e Belo Horizonte

Project description

IPTU API - Python SDK

SDK oficial para integração com a IPTU API.

Instalação

pip install iptuapi

Uso Rápido

from iptuapi import IPTUClient

client = IPTUClient("sua_api_key")

# Consulta por endereço
resultado = client.consulta_endereco("Avenida Paulista", "1000")
print(resultado)

# Consulta por SQL (Starter+)
dados = client.consulta_sql("100-01-001-001")

# Avaliação de mercado (Pro+)
avaliacao = client.valuation_estimate(
    area_terreno=250,
    area_construida=180,
    bairro="Pinheiros",
    zona="ZM",
    tipo_uso="Residencial",
    tipo_padrao="Médio",
    ano_construcao=2010
)
print(f"Valor estimado: R$ {avaliacao['valor_estimado']:,.2f}")

Context Manager

with IPTUClient("sua_api_key") as client:
    resultado = client.consulta_endereco("Avenida Paulista")

Tratamento de Erros

from iptuapi import IPTUClient, NotFoundError, RateLimitError

client = IPTUClient("sua_api_key")

try:
    resultado = client.consulta_endereco("Rua Inexistente")
except NotFoundError:
    print("Imóvel não encontrado")
except RateLimitError:
    print("Limite de requisições excedido")

Documentação

Acesse a documentação completa em iptuapi.com.br/docs

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

iptuapi-1.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

iptuapi-1.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file iptuapi-1.1.0.tar.gz.

File metadata

  • Download URL: iptuapi-1.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for iptuapi-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a3d141bdd678987b0091a869865774c73c00619c68bb07073c1110585d181588
MD5 6a905ab193c4b68b245761c8cf10f6df
BLAKE2b-256 344300cfa6b1c4703144c1cf103f3964eca38f2008c40f3a5472fb1d87f066b8

See more details on using hashes here.

File details

Details for the file iptuapi-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: iptuapi-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for iptuapi-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e75e42306f66a5b2e4a0d6b42b1a841c583a246f89542b7fa1bdf6f60ac03ef5
MD5 e12c48cd6edcd9446b97a08edc497ab7
BLAKE2b-256 e0f2285b6d68555e78800a6d0be5c41846ef6b8c1c228c8150a80cbb39763da9

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