Skip to main content

Ler arquivos .dbc do datasus

Project description

readdbc

Um pacote python para ler dados no formato DBC (DBF comprimido) usado pelo DATASUS.

Uso

O código abaixo descompactará o arquivo COLEBR15.dbc e salvará o conteúdo em COLEBR15.dbf.

import readdbc

readdbc.dbc2dbf('COLEBR15.dbc', 'COLEBR15.dbf')

Esse descompacta e ja converte para .csv:

import readdbc

readdbc.dbc2csv('COLEBR15.dbc', 'COLEBR15.csv')

Suporte

O pacote é testado em todas as versões oficiais do python (3.8 até a 3.12).
Também testado em GNU/Linux e MacOS.
Caso descubra algum bug ou comportamento inesperado nessas versões e plataforma, por favor entre em contato.

Windows não é suportado por enquanto!
Mas caso você seja um usuário do windows e queira ajudar, por favor entre em contato.

Inspiração

read.dbc
An R package for reading data in the DBC (compressed DBF) format used by DATASUS.

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

readdbc-0.2.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

readdbc-0.2.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file readdbc-0.2.0.tar.gz.

File metadata

  • Download URL: readdbc-0.2.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.5.0-4-amd64

File hashes

Hashes for readdbc-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3976fbaf7583538038199ecf3e2d5209e53c5c4cb64175b08754886d2bdcc784
MD5 d19842dad2c42228ea0f39824802fadf
BLAKE2b-256 59036342f9a3ecaa47b61f14ff35bb093aac8e492e5d46743500dff4e4a48098

See more details on using hashes here.

File details

Details for the file readdbc-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: readdbc-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.5.0-4-amd64

File hashes

Hashes for readdbc-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dcf43e7ef3bb5f8704abbafdd9e11d42b26373c61e57759e18cd3122e5eb071b
MD5 1552be249c9e9317ac6581c97e070870
BLAKE2b-256 7416969a2fae24e2d1388b96f67c3e176077f56ee6eed071b69b3a7ecca82b35

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page