dp-sequential-events 1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,216 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+ graphenv/
90
+ venv/
91
+ .env/
92
+
93
+ graphenv/
94
+ dist/
95
+ build/
96
+ *.egg-info
97
+ __pycache__/
98
+
99
+ # pipenv
100
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
101
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
102
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
103
+ # install all needed dependencies.
104
+ #Pipfile.lock
105
+
106
+ # UV
107
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
108
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
109
+ # commonly ignored for libraries.
110
+ #uv.lock
111
+
112
+ # poetry
113
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
114
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
115
+ # commonly ignored for libraries.
116
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
117
+ #poetry.lock
118
+ #poetry.toml
119
+
120
+ # pdm
121
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
122
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
123
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
124
+ #pdm.lock
125
+ #pdm.toml
126
+ .pdm-python
127
+ .pdm-build/
128
+
129
+ # pixi
130
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
131
+ #pixi.lock
132
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
133
+ # in the .venv directory. It is recommended not to include this directory in version control.
134
+ .pixi
135
+
136
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
137
+ __pypackages__/
138
+
139
+ # Celery stuff
140
+ celerybeat-schedule
141
+ celerybeat.pid
142
+
143
+ # SageMath parsed files
144
+ *.sage.py
145
+
146
+ # Environments
147
+ .env
148
+ .envrc
149
+ .venv
150
+ env/
151
+ venv/
152
+ ENV/
153
+ env.bak/
154
+ venv.bak/
155
+
156
+ # Spyder project settings
157
+ .spyderproject
158
+ .spyproject
159
+
160
+ # Rope project settings
161
+ .ropeproject
162
+
163
+ # mkdocs documentation
164
+ /site
165
+
166
+ # mypy
167
+ .mypy_cache/
168
+ .dmypy.json
169
+ dmypy.json
170
+
171
+ # Pyre type checker
172
+ .pyre/
173
+
174
+ # pytype static type analyzer
175
+ .pytype/
176
+
177
+ # Cython debug symbols
178
+ cython_debug/
179
+
180
+ # PyCharm
181
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
182
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
183
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
184
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
185
+ #.idea/
186
+
187
+ # Abstra
188
+ # Abstra is an AI-powered process automation framework.
189
+ # Ignore directories containing user credentials, local state, and settings.
190
+ # Learn more at https://abstra.io/docs
191
+ .abstra/
192
+
193
+ # Visual Studio Code
194
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
195
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
196
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
197
+ # you could uncomment the following to ignore the entire vscode folder
198
+ # .vscode/
199
+
200
+ # Ruff stuff:
201
+ .ruff_cache/
202
+
203
+ # PyPI configuration file
204
+ .pypirc
205
+
206
+ # Cursor
207
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
208
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
209
+ # refer to https://docs.cursor.com/context/ignore-files
210
+ .cursorignore
211
+ .cursorindexingignore
212
+
213
+ # Marimo
214
+ marimo/_static/
215
+ marimo/_lsp/
216
+ __marimo__/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) [2026] [Marta Jones]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,35 @@
1
+ Metadata-Version: 2.4
2
+ Name: dp-sequential-events
3
+ Version: 1
4
+ Summary: Privatized
5
+ Project-URL: Homepage, https://github.com/martaajonees/graph-protocol
6
+ Project-URL: Issues, https://github.com/martaajonees/graph-protocol/issues
7
+ Author-email: Marta Jones González <martajon10@gmail.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: Python :: 3
12
+ Requires-Python: >=3.14
13
+ Requires-Dist: contourpy
14
+ Requires-Dist: cycler
15
+ Requires-Dist: dafsa
16
+ Requires-Dist: et-xmlfile
17
+ Requires-Dist: fonttools
18
+ Requires-Dist: graphviz
19
+ Requires-Dist: kiwisolver
20
+ Requires-Dist: matplotlib
21
+ Requires-Dist: networkx
22
+ Requires-Dist: numpy
23
+ Requires-Dist: openpyxl
24
+ Requires-Dist: packaging
25
+ Requires-Dist: pandas
26
+ Requires-Dist: pillow
27
+ Requires-Dist: pyparsing
28
+ Requires-Dist: python-dateutil
29
+ Requires-Dist: pytz
30
+ Requires-Dist: scipy
31
+ Requires-Dist: six
32
+ Requires-Dist: tzdata
33
+ Description-Content-Type: text/markdown
34
+
35
+ # Differential Privacy in Sequential Event Logging
@@ -0,0 +1 @@
1
+ # Differential Privacy in Sequential Event Logging
@@ -0,0 +1,56 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "dp-sequential-events"
7
+ version = "1"
8
+ authors = [
9
+ { name="Marta Jones González", email="martajon10@gmail.com" },
10
+ ]
11
+ description = "Privatized "
12
+ readme = "README.md"
13
+ requires-python = ">=3.14"
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "Operating System :: OS Independent",
17
+ ]
18
+ license = "MIT"
19
+ license-files = ["LICEN[CS]E*"]
20
+ dependencies = [
21
+ "contourpy",
22
+ "cycler",
23
+ "dafsa",
24
+ "et_xmlfile",
25
+ "fonttools",
26
+ "graphviz",
27
+ "kiwisolver",
28
+ "matplotlib",
29
+ "networkx",
30
+ "numpy",
31
+ "openpyxl",
32
+ "packaging",
33
+ "pandas",
34
+ "pillow",
35
+ "pyparsing",
36
+ "python-dateutil",
37
+ "pytz",
38
+ "scipy",
39
+ "six",
40
+ "tzdata"
41
+ ]
42
+
43
+ [project.urls]
44
+ Homepage = "https://github.com/martaajonees/graph-protocol"
45
+ Issues = "https://github.com/martaajonees/graph-protocol/issues"
46
+
47
+ [project.scripts]
48
+ privseq = "dp_sequential_events.cli:cli_main"
49
+
50
+ [tool.hatch.build.targets.wheel]
51
+ packages = ["src/dp_sequential_events"]
52
+
53
+ [tool.hatch.build.targets.sdist]
54
+ include = ["src/dp_sequential_events"]
55
+
56
+
@@ -0,0 +1,18 @@
1
+
2
+ from graph_protocol.main.main import annotation_and_filtering, sampling_and_anonymization
3
+
4
+ def cli_main():
5
+ dataset_name = input("Enter dataset name : ")
6
+ delta = float(input("Enter delta value: "))
7
+ condition_number = float(input("Enter condition number: "))
8
+
9
+ df_filtered = annotation_and_filtering(dataset_name, delta, condition_number)
10
+
11
+ input("Do you want to choose other values? (y/n): ")
12
+ if input().lower() == 'y':
13
+ cli_main()
14
+ else:
15
+ df = sampling_and_anonymization(df_filtered)
16
+ print("\n Final anonymized log:")
17
+ print(df)
18
+
@@ -0,0 +1,21 @@
1
+ CaseID,Activity,Timestamp
2
+ 1,A,2020-08-08 10:20:00
3
+ 1,B,2020-08-08 10:50:00
4
+ 1,D,2020-08-08 12:37:00
5
+ 1,C,2020-08-08 16:15:00
6
+ 2,A,2020-08-08 14:37:00
7
+ 2,E,2020-08-08 15:07:00
8
+ 2,C,2020-08-08 20:31:00
9
+ 2,A,2020-08-09 13:30:00
10
+ 3,B,2020-08-09 13:55:00
11
+ 3,D,2020-08-09 15:00:00
12
+ 3,A,2020-08-09 17:00:00
13
+ 3,C,2020-08-09 20:55:00
14
+ 4,A,2020-08-09 17:25:00
15
+ 4,B,2020-08-09 17:40:00
16
+ 4,C,2020-08-09 23:05:00
17
+ 5,E,2020-08-09 17:55:00
18
+ 5,C,2020-08-10 23:55:00
19
+ 5,A,2020-08-11 17:00:00
20
+ 6,B,2020-08-11 17:27:00
21
+ 6,C,2020-08-11 23:45:00