forked from fccoelho/PySUS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
67 lines (58 loc) · 1.85 KB
/
setup.py
File metadata and controls
67 lines (58 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
from setuptools import find_packages, setup
ld = """
PySUS
=====
This package collects a set of utilities for handling with public databases
published by Brazil's DATASUS
The documentation of how to use PySUS can be found
here: http://pysus.readthedocs.io/en/latest/
Features
--------
- Decode encoded patient age to any time unit (years, months, etc)
- Convert `.dbc` files to DBF databases or read them into pandas dataframes.
DBC files are basically DBFs compressed by a proprietary algorithm.
- Loads SINAN DBC files into Pandas Dataframes
- Downloads SIA, SIH, SIM, SINASC, and ESUS (covid data)
- Geocodes SINAN notified cases in batch. You can use your Google API KEY
to avoid Google's free limits.
Installation
------------
Make sure your system has libffi-dev package installed::
$ sudo pip install PySUS
"""
with open("requirements.txt") as f:
requirements = f.readlines()
setup(
name="PySUS",
version="0.5.17",
packages=find_packages(),
package_data={"": ["*.c", "*.h", "*.o", "*.so", "*.md", "*.txt"]},
include_package_data=True,
zip_safe=False,
url="https://github.com/fccoelho/PySUS",
license="gpl-v3",
author="Flavio Codeco Coelho",
author_email="fccoelho@gmail.com",
description="Tools for dealing with Brazil's Public health data",
long_description=ld,
setup_requires=["cffi>=1.0.0", "setuptools>26.0.0"],
cffi_modules=["pysus/utilities/_build_readdbc.py:ffibuilder"],
install_requires=requirements,
# cmdclass={'install': PostInstall},
extras_require={
"dev": [
"pytest",
"pytest-cov",
"pre-commit",
"black",
"isort",
"flake8",
"coverage",
"wheel",
"setuptools",
"jupyterlab",
]
},
test_suite="tests",
tests_require=["pytest", "flake8"],
)