Skip to content

Commit aab562c

Browse files
committed
changing structure
1 parent e59ba40 commit aab562c

14 files changed

+61
-687
lines changed

.github/workflows/CI.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ jobs:
7878
shell: julia --project=docs --color=yes {0}
7979
run: |
8080
using Documenter: DocMeta, doctest
81-
using ReadDBC
82-
DocMeta.setdocmeta!(ReadDBC, :DocTestSetup, :(using ReadDBC); recursive=true)
83-
doctest(ReadDBC)
81+
using DBCDatasus
82+
DocMeta.setdocmeta!(DBCDatasus, :DocTestSetup, :(using DBCDatasus); recursive=true)
83+
doctest(DBCDatasus)

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name = "ReadDBC"
1+
name = "DBCDatasus"
22
uuid = "79d50320-df92-4ae6-9b90-d461b5bc1756"
33
authors = ["Bright-yaw <[email protected]> and contributors"]
44
version = "1.0.0"

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# ReadDBC
1+
# DBCDatasus
22

3-
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://lego-yaw.github.io/ReadDBC.jl/stable/)
4-
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://lego-yaw.github.io/ReadDBC.jl/dev/)
5-
[![Build Status](https://github.com/lego-yaw/ReadDBC.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/lego-yaw/ReadDBC.jl/actions/workflows/CI.yml?query=branch%3Amain)
6-
[![Coverage](https://codecov.io/gh/lego-yaw/ReadDBC.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/lego-yaw/ReadDBC.jl)
3+
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://lego-yaw.github.io/DBCDatasus.jl/stable/)
4+
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://lego-yaw.github.io/DBCDatasus.jl/dev/)
5+
[![Build Status](https://github.com/lego-yaw/DBCDatasus.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/lego-yaw/DBCDatasus.jl/actions/workflows/CI.yml?query=branch%3Amain)
6+
[![Coverage](https://codecov.io/gh/lego-yaw/DBCDatasus.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/lego-yaw/DBCDatasus.jl)
77

88

99

10-
### ReadDBC.jl
10+
### DBCDatasus.jl
1111
+ A simple package for converting *.dbc* (compressed DBC) files from Datasus into *.dbf* (DBF) and *data frames* tables.
1212

1313
+ DATASUS plays a critical role in ensuring the efficient operation of Brazil's public health system. DATASUS is the name of the Departement of informatics of Brazil's health system (Sistema Unico de Saúde-SUS). They are responsible for maintaining and publishing Brazilian public health data. Aside this, the Brazilian National Agency for supplementary Health data (ANS), also use the same file format for storing public health data.
@@ -19,29 +19,29 @@
1919

2020
```Julia-repl
2121
>>> ]
22-
>>> add ReadDBC
22+
>>> add DBCDatasus
2323
```
2424
or
2525

2626
```
2727
>>> using Pkg
28-
>>> Pkg.add("ReadDBC")
28+
>>> Pkg.add("DBCDatasus")
2929
```
3030
# Usage
31-
+ ReadDBC is simple to use
31+
+ DBCDatasus is simple to use
3232

3333
```
3434
# converting dbc to dbf format
35-
>>> using ReadDBC
35+
>>> using DBCDatasus
3636
>>> dbctodbc("path/to/file.dbc, path/to/file.dbf) # input file is .dbc file and output file is .dbf
3737
3838
# converting dbc into dataframe Table
39-
>>> using ReadDBC
39+
>>> using DBCDatasus
4040
>>> df = dbcTable("path/to/file.dbc)" # input file is .dbc file and output file is in table format
4141
>>> head(df)
4242
4343
# Example
44-
>>> using Download, using ReadDBC
44+
>>> using Download, using DBCDatasus
4545
>>> download("ftp://ftp.datasus.gov.br/dissemin/publicos/SIASUS/200801_/Dados/ABOAC1909.dbc", "ABOAC1909.dbc") # this link downlaods the ABOAC1909.dbc file from Datasus database.
4646
4747
# run fucntion
@@ -50,7 +50,7 @@ or
5050
5151
or
5252
53-
>>> using ReadDBC
53+
>>> using DBCDatasus
5454
>>> dbctodbc("ABOAC1909.dbc", "ABOAC1909.dbf") # conversion into DBF format
5555
5656
```

docs/make.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
using ReadDBC
1+
using DBCDatasus
22
using Documenter
33

4-
DocMeta.setdocmeta!(ReadDBC, :DocTestSetup, :(using ReadDBC); recursive=true)
4+
DocMeta.setdocmeta!(DBCDatasus, :DocTestSetup, :(using DBCDatasus); recursive=true)
55

66
makedocs(;
7-
modules=[ReadDBC],
7+
modules=[DBCDatasus],
88
authors="Bright-yaw <[email protected]> and contributors",
9-
sitename="ReadDBC.jl",
9+
sitename="DBCDatasus.jl",
1010
format=Documenter.HTML(;
11-
canonical="https://lego-yaw.github.io/ReadDBC.jl",
11+
canonical="https://lego-yaw.github.io/DBCDatasus.jl",
1212
edit_link="main",
1313
assets=String[],
1414
),
@@ -18,6 +18,6 @@ makedocs(;
1818
)
1919

2020
deploydocs(;
21-
repo="github.com/lego-yaw/ReadDBC.jl",
21+
repo="github.com/lego-yaw/DBCDatasus.jl",
2222
devbranch="main",
2323
)

docs/src/index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
```@meta
2-
CurrentModule = ReadDBC
2+
CurrentModule = DBCDatasus
33
```
44

5-
# ReadDBC
5+
# DBCDatasus
66

7-
Documentation for [ReadDBC](https://github.com/lego-yaw/ReadDBC.jl).
7+
Documentation for [DBCDatasus](https://github.com/lego-yaw/DBCDatasus.jl).
88

99
```@index
1010
```
1111

1212
```@autodocs
13-
Modules = [ReadDBC]
13+
Modules = [DBCDatasus]
1414
```

src/ABOAC1909.dbc mock_file.dbf

File renamed without changes.

src/ReadDBC.jl src/DBCDatasus.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module ReadDBC
1+
module DBCDatasus
22

33
# Export functions
44
export dbcTable, dbctodbf
@@ -22,7 +22,7 @@ function dbctodbf(input_file::String, output_file::String)
2222
return output_file # Optionally return the output file name
2323
end
2424

25-
# Defining function readdbc
25+
# Defining function DBCDatasus
2626
function dbcTable(input_file::String)
2727
output_file = replace(input_file, ".dbc" => ".dbf")
2828
try
@@ -40,4 +40,4 @@ function dbcTable(input_file::String)
4040
end
4141
end
4242

43-
end # module readdbc
43+
end # module DBCDatasus

0 commit comments

Comments
 (0)