Dso Database Table Def Anonymizer is one of my projects. The README in the repo is short, so this page sticks to what the files themselves show.
What it is
Dso Database Table Def Anonymizer: 5 files, 187 counted lines across Python 167, Markdown 19, Text 1. One job, done in the open, in files you can read.
The biggest piece
main.py carries the most
lines. If the project grows, that file is where the growth
lands first, for better or worse.
The honest gap
No test files yet. That is the honest gap, and the roadmap in the visuals folder says what the first one should cover.
Run it
The repo README has the exact commands for this one. The shape is the shape for most of my projects: clone it, read the top file first so you know what will happen, then run it on something you do not mind breaking.
$ git clone https://github.com/ShadowGuard-AI/dso-database-table-def-anonymizer.git
$ cd dso-database-table-def-anonymizer
The code, as it sits in the repo
From main.py, line 9 on. I did
not tidy it for the page. What you see is what the file has.
def setup_argparse():
"""
Sets up the argument parser for the command-line interface.
Returns:
argparse.ArgumentParser: The configured argument parser.
"""
parser = argparse.ArgumentParser(
description="Anonymizes database table definitions by replacing sensitive column names with generic ones."
)
parser.add_argument(
"input_file",
help="The path to the input file containing the database table definition."
)
parser.add_argument(
"output_file",
help="The path to the output file to write the anonymized table definition."
)
parser.add_argument(
"--column_name_pattern",
default=r'\b(\w+_name|\w+_address|\w+_phone|\w+_email|\w+_id)\b',
The files that matter
| File | Lines |
|---|---|
main.py | 167 |
README.md | 19 |
requirements.txt | 1 |
banner.png | 0 |
logo.png | 0 |
Names doing the work: setup_argparse, anonymize_table_definition, main, replace_column_name.
Drawn by hand
I sketch my projects on notebook paper so I have to understand them well enough to draw them. The full set, with the counts and how they were counted, is the dso-database-table-def-anonymizer-Visuals folder in the repo. Nothing is drawn over the binder holes. That is a rule, not a style.