Skip to main content

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

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.0.0.tar.gz (4.0 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.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for iptuapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6b5b605f737853c4502db021fc7999bdd1c1db6c2db7740d0da4d5d924f061d8
MD5 513e1caaf9843b441738f80a47ce4971
BLAKE2b-256 5883729e62a81475d6aee08c44188cb55113b7b466b08c4b6bab7300cbc55238

See more details on using hashes here.

File details

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

File metadata

  • Download URL: iptuapi-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b981bc98f4d621c1b610c571de08614f2cfa247218cfd08894c74fdab6e0a3c
MD5 7c0ccdeee36a256b14fcffeb22ba83d1
BLAKE2b-256 e1657f3d35bcef55a4c9cad9661bc6a6d91955e48c79602f92b41a7e0fe1da0f

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