Skip to content

Commit

Permalink
Started defining project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
andreped committed Aug 7, 2023
1 parent 1483472 commit f0336c4
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/extract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Extract Data and Run Tests

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Download data
run: |
wget
- name: Install dependencies
run: |
pip install wheel setuptools
pip install black==22.3.0 isort==5.10.1 flake8==4.0.1
- name: Download data
run: |
wget -P ./data/ https://apps.who.int/gho/athena/api/GHO/SA_0000001439?filter=csv

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.csv
*.DS_Store
*.idea/
*.vs/
*__pycache__/
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
# breast-cancer-stats
# breast-cancer-stats

This repository holds source code and examples on how to extract and visualize
breast cancer data from the World Health Organization (WHO) database.

## Setup
A python package without useful utility tools was developed to aid extraction
and visualization. The package is compatible with `Python >= 3.8` and has the
following dependencies:

* pandas

* numpy

* matplotlib

Start by creating a virtual environment and installing the package:

```
virtualenv -ppython3 venv --clear
source venv/bin/activate
python3 -m pip install who_extract@https://github.com/andreped/breast-cancer-stats.git
```

4 changes: 4 additions & 0 deletions assets/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pandas
numpy
matplotlib
setuptools
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
36 changes: 36 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import setuptools


with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()


setuptools.setup(
name="who-extract",
version="0.0.1",
author="André Pedersen",
author_email="[email protected]",
license="MIT",
description="Project for extraction of World Health Organization (WHO) data and visualization.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/andreped/breast-cancer-stats",
include_package_data=True,
packages=setuptools.find_packages(),
install_requires=[
"numpy",
"pandas",
],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
],
python_requires=">=3.8",
)
Empty file added who_extract/__init__.py
Empty file.

0 comments on commit f0336c4

Please sign in to comment.