Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

carbr

CI PyPI License: MIT DOI

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://castlaboratory.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.
  • Base normativa: a Instrução Normativa MMA nº 3, de 18/12/2014, garante o livre acesso às informações não sigilosas e não pessoais do Sicar (arts. 12 e 18). São sigilosas as que identificam proprietários ou possuidores ou os associam aos imóveis (art. 4º); nenhuma delas está nesta publicação.
  • Finalidade: pela mesma norma (art. 2º), as informações do CAR se destinam a subsidiar políticas, programas, projetos e atividades de controle, monitoramento, planejamento ambiental e econômico e combate ao desmatamento. O uso para outros fins que cause dano a terceiros pode gerar responsabilização.
  • Sem caráter oficial: é uma republicação independente, feita pelo CastLab/UFPE. Não é um produto do Serviço Florestal Brasileiro nem substitui o Sicar; em caso de divergência, vale o Sicar.
  • 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.

Como citar

O pacote está arquivado no Zenodo: doi:10.5281/zenodo.24532757 (o DOI aponta sempre para a versão mais recente). Os dados são do Sicar; use car_cite() para citá-los.

Licença

Código sob licença MIT.

Metadata

Release files for carbr 0.1.2

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

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

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

Built distribution (wheel)

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

Total release size: 1.7 MB

Release files / carbr-0.1.2.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL carbr-0.1.2.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
d81f9b9278cf3b21e6ec70e094f2017a246e21ad297e9dcf510eb8ba74e30bfb
BLAKE2b-256 checksum
How to use checksums
6f0385fa9899e0eea9f00be7528073c87ff77a0a38e1c22d39998e9ad07ae2b6
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.2-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL carbr-0.1.2-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73d415ff24f8f155ad544be2913f528a561581883976095aa67167e567ff802a
BLAKE2b-256 checksum
How to use checksums
ed5daf68a0e9988e0d7d9932ce54b5385dce289860ba7366213be737ea03eaaf
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.2

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.

Change of provenance

The repository and configuration that created this release differ from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for carbr-0.1.2.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