Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add readme for pypi #187

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README-PYPI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# DP Wizard

DP Wizard guides the user through the application of differential privacy.
After selecting a local CSV, users are prompted to describe to the anlysis they need.
Output options include:
- A Jupyter notebook which demonstrates how to use [OpenDP](https://docs.opendp.org/).
- A plain Python script.
- Text and CSV reports.

## Usage

```
usage: dp-wizard [-h] [--csv CSV_PATH] [--contrib CONTRIB] [--demo]

options:
-h, --help show this help message and exit
--csv CSV_PATH Path to CSV containing private data
--contrib CONTRIB How many rows can an individual contribute?
--demo Use generated fake CSV for a quick demo
```
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
[project]
name = "dp_wizard"
authors = [{name = "Chuck McCallum", email = "[email protected]"}]
readme = "README.md"
readme = "README-PYPI.md"
license = {file = "LICENSE"}
classifiers = ["License :: OSI Approved :: MIT License"]
dynamic = ["version", "description"]
Expand Down
7 changes: 6 additions & 1 deletion tests/utils/test_argparse_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ def test_help():
)
print(help)

readme_md = (Path(__file__).parent.parent.parent / "README.md").read_text()
root_path = Path(__file__).parent.parent.parent

readme_md = (root_path / "README.md").read_text()
assert help in readme_md

readme_pypi_md = (root_path / "README-PYPI.md").read_text()
assert help in readme_pypi_md


def test_arg_validation_no_file():
with pytest.raises(ArgumentTypeError, match="No such file: no-such-file"):
Expand Down
Loading