Skip to main content

carbr

CI License: MIT

Os imóveis rurais declarados no Cadastro Ambiental Rural (CAR) no Python, sem baixar a base inteira.

O carbr lê uma republicação dos dados públicos do Sicar em GeoParquet. Cada consulta — por UF, município, situação, porte, retângulo, ponto ou código do imóvel — transfere só os trechos do arquivo de que precisa, e não passa pelos servidores do Sicar.

Documentação: https://strategicprojects.github.io/carbr-py/

Instalação

pip install "carbr[geo]"

Sem o extra geo, a geometria vem em WKB e car_at() não está disponível.

Uso

import carbr

carbr.car_catalog()                       # UFs publicadas, versão e qualidade da carga
carbr.car_summary(["state", "size_class"])   # totais do país, sem ler os imóveis
carbr.car_municipalities("PE")            # resumo por município

# Imóveis grandes de Petrolina, como GeoDataFrame
carbr.car_properties("PE", municipality="Petrolina", size_class="large")

# Cadastros pendentes do estado, sem transferir a geometria
carbr.car_properties("PE", status="pending", geometry=False)

carbr.car_at(lon=-40.5, lat=-9.2)         # que imóveis estão declarados neste ponto?
carbr.car_property("PE-2611101-588BC484570D440484F527F07DF5AFFA")

# Qualquer outra consulta, direto no arquivo remoto
carbr.car_tbl("PE").aggregate("status, size_class, count(*) AS n").df()

Guias

Os dados

  • Origem: serviço público do Sicar, do Serviço Florestal Brasileiro. O cadastro é autodeclarado: há sobreposições entre imóveis, e a presença no CAR não comprova domínio.
  • Conteúdo: o perímetro declarado e dez atributos de cada imóvel. Não há dado pessoal.
  • Cobertura: as 27 UFs, cerca de 8,6 milhões de imóveis. car_catalog() mostra o que está publicado e a data.
  • Endereço: o padrão é um bucket público; carbr.set_base_url() ou a variável CAR_URL apontam para um espelho compatível com S3 ou para uma pasta local.

As mesmas funções existem em R: carbr-r.

Licença

Código sob licença MIT. Os dados são do Sicar; use car_cite() para citá-los.

Metadata

Release files for carbr 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for carbr 0.1.0
File Size Uploaded Provenance Actions
carbr-0.1.0.tar.gz 1.7 MB With provenance Details for carbr-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for carbr 0.1.0
File Interpreter ABI Platform Actions
carbr-0.1.0-py3-none-any.whl Python 3 none any Details for carbr-0.1.0-py3-none-any.whl

Total release size: 1.7 MB

Release files / carbr-0.1.0.tar.gz

Download URL carbr-0.1.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
c61c8999542365050a2ce556c11b2535b784003a550499f43e744bc8f383ddff
BLAKE2b-256 checksum
How to use checksums
8c38d5a32bb515906836766d03316119146f5566855f4edbf8107f96f9ab70c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / carbr-0.1.0-py3-none-any.whl

Download URL carbr-0.1.0-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1ee0c5e4db19bc413e305e1e97c77a6f83deed04f8d7bf94c6fd4f7449ec76b
BLAKE2b-256 checksum
How to use checksums
950fa1b44fbbff1f1ed217e06117995fcfd74083480ffb10967ee8cc61545051
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for carbr 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for carbr-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page