{"id":13729822,"url":"https://github.com/opendp/smartnoise-sdk","last_synced_at":"2026-01-14T08:38:59.202Z","repository":{"id":38189834,"uuid":"210420701","full_name":"opendp/smartnoise-sdk","owner":"opendp","description":"Tools and service for differentially private processing of tabular and relational data","archived":false,"fork":false,"pushed_at":"2025-08-12T20:14:48.000Z","size":97873,"stargazers_count":288,"open_issues_count":32,"forks_count":76,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-12-19T01:31:10.616Z","etag":null,"topics":["differential-privacy","opendp","privacy","smartnoise"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opendp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-09-23T18:06:00.000Z","updated_at":"2025-12-09T13:30:06.000Z","dependencies_parsed_at":"2025-08-01T22:24:37.083Z","dependency_job_id":null,"html_url":"https://github.com/opendp/smartnoise-sdk","commit_stats":{"total_commits":559,"total_committers":27,"mean_commits":"20.703703703703702","dds":0.6332737030411448,"last_synced_commit":"7caaae135ee4cad8336f84695a27b7c3e8622bbf"},"previous_names":["opendifferentialprivacy/smartnoise-sdk"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/opendp/smartnoise-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendp%2Fsmartnoise-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendp%2Fsmartnoise-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendp%2Fsmartnoise-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendp%2Fsmartnoise-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opendp","download_url":"https://codeload.github.com/opendp/smartnoise-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opendp%2Fsmartnoise-sdk/sbom","scorecard":{"id":709257,"data":{"date":"2025-08-11","repo":{"name":"github.com/opendp/smartnoise-sdk","commit":"b4f0058d27eb08b0784864170a1c0bfa875b1c6f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Maintained","score":3,"reason":"4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":3,"reason":"Found 10/26 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/bigquery.yml:1","Warn: no topLevel permission defined: .github/workflows/docs.yml:1","Warn: no topLevel permission defined: .github/workflows/lint_sql.yml:1","Warn: no topLevel permission defined: .github/workflows/mysql.yml:1","Warn: no topLevel permission defined: .github/workflows/postgres.yml:1","Warn: no topLevel permission defined: .github/workflows/samples-test.yml:1","Warn: no topLevel permission defined: .github/workflows/spark.yml:1","Warn: no topLevel permission defined: .github/workflows/sql.yml:1","Warn: no topLevel permission defined: .github/workflows/synth.yml:1","Warn: no topLevel permission defined: .github/workflows/synth_lint.yml:1","Warn: no topLevel permission defined: .github/workflows/windows.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"SAST","score":2,"reason":"SAST tool is not run on all commits -- score normalized to 2","details":["Warn: 8 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"94 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-43c4-9qgj-x742","Warn: Project is vulnerable to: GHSA-49m6-vrr9-2cqm","Warn: Project is vulnerable to: PYSEC-2025-17 / GHSA-4rj2-9gcx-5qhx","Warn: Project is vulnerable to: GHSA-4rqf-8pfm-p36r","Warn: Project is vulnerable to: GHSA-76cg-cfhx-373f","Warn: Project is vulnerable to: GHSA-7p8j-qv6x-f4g4","Warn: Project is vulnerable to: GHSA-cv6c-7963-wxcg","Warn: Project is vulnerable to: GHSA-cwgg-w6mp-w9hg","Warn: Project is vulnerable to: GHSA-ghv6-9r9j-wh4j","Warn: Project is vulnerable to: GHSA-j8mg-pqc5-x9gj","Warn: Project is vulnerable to: GHSA-pqcv-qw2r-r859","Warn: Project is vulnerable to: GHSA-q3gw-8236-5jw4","Warn: Project is vulnerable to: PYSEC-2024-224 / GHSA-qpgc-w4mg-6v92","Warn: Project is vulnerable to: GHSA-wf7f-8fxf-xfxc","Warn: Project is vulnerable to: PYSEC-2025-52 / GHSA-wxj7-3fx5-pp9m","Warn: Project is vulnerable to: GHSA-x38x-g6gr-jqff","Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: PYSEC-2019-156 / GHSA-xp76-357g-9wqq","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114","Warn: Project is vulnerable to: GHSA-3749-ghw9-m3mg","Warn: Project is vulnerable to: PYSEC-2022-43015 / GHSA-47fc-vmwq-366v","Warn: Project is vulnerable to: PYSEC-2025-41 / GHSA-53q9-r3pm-6pq6","Warn: Project is vulnerable to: PYSEC-2024-252 / GHSA-5pcm-hx3q-hm94","Warn: Project is vulnerable to: GHSA-887c-mr87-cxwp","Warn: Project is vulnerable to: PYSEC-2024-251 / GHSA-pg7h-5qx3-wjr3","Warn: Project is vulnerable to: PYSEC-2024-250","Warn: Project is vulnerable to: PYSEC-2024-259","Warn: Project is vulnerable to: PYSEC-2023-44 / GHSA-329j-jfvr-rhr6","Warn: Project is vulnerable to: PYSEC-2022-42976 / GHSA-43xg-8wmj-cw8h","Warn: Project is vulnerable to: PYSEC-2022-236 / GHSA-4x9r-j582-cgr8","Warn: Project is vulnerable to: PYSEC-2018-25 / GHSA-6mqq-8r44-vmjc","Warn: Project is vulnerable to: PYSEC-2017-147 / GHSA-8rhc-48pp-52gr","Warn: Project is vulnerable to: PYSEC-2022-186 / GHSA-9rr6-jpg7-9jg6","Warn: Project is vulnerable to: PYSEC-2019-114 / GHSA-fp5j-3fpf-mhj5","Warn: Project is vulnerable to: PYSEC-2020-95 / GHSA-wgx7-jwwm-cgjv","Warn: Project is vulnerable to: PYSEC-2023-72","Warn: Project is vulnerable to: GHSA-3ww4-gg4f-jr7f","Warn: Project is vulnerable to: GHSA-9v9h-cgj8-h64p","Warn: Project is vulnerable to: PYSEC-2021-62 / GHSA-hggm-jpg3-v476","Warn: Project is vulnerable to: PYSEC-2017-8 / GHSA-q3cj-2r34-2cwc","Warn: Project is vulnerable to: GHSA-v9hf-5j83-6xpp","Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: PYSEC-2020-107 / GHSA-jjw5-xxj6-pcv5","Warn: Project is vulnerable to: PYSEC-2024-110 / GHSA-jw8x-6495-233v","Warn: Project is vulnerable to: PYSEC-2020-108","Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg","Warn: Project is vulnerable to: PYSEC-2017-74","Warn: Project is vulnerable to: PYSEC-2024-241 / GHSA-3v79-q7ph-j75h","Warn: Project is vulnerable to: GHSA-4qq5-mxxx-m6gg","Warn: Project is vulnerable to: PYSEC-2023-253 / GHSA-554w-xh4j-8w64","Warn: Project is vulnerable to: GHSA-59v3-898r-qwhj","Warn: Project is vulnerable to: GHSA-5mvj-wmgj-7q8c","Warn: Project is vulnerable to: GHSA-5p3h-7fwh-92rc","Warn: Project is vulnerable to: PYSEC-2024-239 / GHSA-5q6c-ffvg-xcm9","Warn: Project is vulnerable to: PYSEC-2023-252 / GHSA-5r3q-93q3-f978","Warn: Project is vulnerable to: PYSEC-2024-240 / GHSA-6749-m5cp-6cg7","Warn: Project is vulnerable to: GHSA-83fm-w79m-64r5","Warn: Project is vulnerable to: GHSA-8f8q-q2j7-7j2m","Warn: Project is vulnerable to: PYSEC-2023-281 / GHSA-cxfr-5q3r-2rc2","Warn: Project is vulnerable to: GHSA-f42m-mvfv-cgw5","Warn: Project is vulnerable to: GHSA-f798-qm4r-23r5","Warn: Project is vulnerable to: GHSA-f82r-jj5r-6g97","Warn: Project is vulnerable to: PYSEC-2023-280 / GHSA-ffw3-6378-cqgp","Warn: Project is vulnerable to: PYSEC-2023-308 / GHSA-fmxj-6h9g-6vw3","Warn: Project is vulnerable to: GHSA-hh8p-p8mp-gqhm","Warn: Project is vulnerable to: PYSEC-2024-243 / GHSA-hq88-wg7q-gp4g","Warn: Project is vulnerable to: GHSA-hvc6-42vf-jhf8","Warn: Project is vulnerable to: PYSEC-2024-242 / GHSA-j46q-5pxx-8vmw","Warn: Project is vulnerable to: GHSA-j62r-wxqq-f3gf","Warn: Project is vulnerable to: GHSA-m49c-5c52-6696","Warn: Project is vulnerable to: GHSA-p4jx-q62p-x5jr","Warn: Project is vulnerable to: GHSA-qg8p-32gr-gh6x","Warn: Project is vulnerable to: PYSEC-2023-309 / GHSA-v945-r3rc-6fjm","Warn: Project is vulnerable to: PYSEC-2022-28 / GHSA-vqj2-4v8m-8vrq","Warn: Project is vulnerable to: PYSEC-2023-260 / GHSA-vwhf-3v6x-wff8","Warn: Project is vulnerable to: PYSEC-2023-70 / GHSA-wc6j-5g83-xfm6","Warn: Project is vulnerable to: PYSEC-2023-69 / GHSA-wjq3-7jxx-whj9","Warn: Project is vulnerable to: PYSEC-2023-28 / GHSA-wp72-7hj9-5265","Warn: Project is vulnerable to: GHSA-wqxf-447m-6f5f","Warn: Project is vulnerable to: GHSA-wv8q-4f85-2p8p","Warn: Project is vulnerable to: PYSEC-2023-68 / GHSA-x422-6qhv-p29g","Warn: Project is vulnerable to: GHSA-xg73-94fp-g449","Warn: Project is vulnerable to: PYSEC-2024-244"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/bigquery.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/bigquery.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/bigquery.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/bigquery.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/bigquery.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/bigquery.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/docs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint_sql.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/lint_sql.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint_sql.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/lint_sql.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/mysql.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/mysql.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/mysql.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/mysql.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/postgres.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/postgres.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/postgres.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/postgres.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/samples-test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/samples-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/samples-test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/samples-test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/spark.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/spark.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/spark.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/spark.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/sql.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/sql.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/sql.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/sql.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/synth.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/synth.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/synth.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/synth.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/synth_lint.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/synth_lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/synth_lint.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/synth_lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/windows.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/opendp/smartnoise-sdk/windows.yml/main?enable=pin","Warn: pipCommand not pinned by hash: docs/make_docs.sh:6","Warn: pipCommand not pinned by hash: docs/make_docs.sh:16","Warn: pipCommand not pinned by hash: docs/make_docs.sh:25","Warn: pipCommand not pinned by hash: docs/make_docs.sh:33","Warn: pipCommand not pinned by hash: .github/workflows/samples-test.yml:31","Warn: pipCommand not pinned by hash: .github/workflows/samples-test.yml:34","Warn: pipCommand not pinned by hash: .github/workflows/samples-test.yml:37","Info:   0 out of  12 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  10 third-party GitHubAction dependencies pinned","Info:   0 out of   7 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}}]},"last_synced_at":"2025-08-22T07:39:38.216Z","repository_id":38189834,"created_at":"2025-08-22T07:39:38.216Z","updated_at":"2025-08-22T07:39:38.216Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28414670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:31:27.429Z","status":"ssl_error","status_checked_at":"2026-01-14T08:31:19.098Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["differential-privacy","opendp","privacy","smartnoise"],"created_at":"2024-08-03T02:01:05.695Z","updated_at":"2026-01-14T08:38:59.195Z","avatar_url":"https://github.com/opendp.png","language":"Python","funding_links":[],"categories":["Privacy-Preserving AI","Tools","Privacy \u0026 Compliance–Focused Tools"],"sub_categories":["Winetricks"],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\u003ca href=\"https://smartnoise.org\"\u003e\u003cimg src=\"images/SmartNoise/SVG/Logo Mark_grey.svg\" align=\"left\" height=\"65\" vspace=\"8\" hspace=\"18\"\u003e\u003c/a\u003e\n\n# SmartNoise SDK: Tools for Differential Privacy on Tabular Data\n\n\nThe SmartNoise SDK includes 2 packages:\n* [smartnoise-sql](sql/): Run differentially private SQL queries\n* [smartnoise-synth](synth/): Generate differentially private synthetic data\n\nTo get started, see the examples below. Click into each project for more detailed examples.\n\n## SQL\n\n[![Python](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C3.9%20%7C%203.10-blue)](https://www.python.org/)\n\n### Install\n\n```bash\npip install smartnoise-sql\n```\n\n### Query\n\n```python\nimport snsql\nfrom snsql import Privacy\nimport pandas as pd\n\ncsv_path = 'PUMS.csv'\nmeta_path = 'PUMS.yaml'\n\ndata = pd.read_csv(csv_path)\nprivacy = Privacy(epsilon=1.0, delta=0.01)\nreader = snsql.from_connection(data, privacy=privacy, metadata=meta_path)\n\nresult = reader.execute('SELECT sex, AVG(age) AS age FROM PUMS.PUMS GROUP BY sex')\n\nprint(result)\n```\n\n`PUMS.csv` and `PUMS.yaml` can be found in the [datasets](datasets/) folder.\n\nSee the [SQL project](sql/README.md)\n\n## Synthesizers\n\n[![Python](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-blue)](https://www.python.org/)\n\n### Install\n```\npip install smartnoise-synth\n```\n\n### MWEM\n\n```python\nimport pandas as pd\nimport numpy as np\n\npums = pd.read_csv(pums_csv_path, index_col=None) # in datasets/\npums = pums.drop(['income'], axis=1)\nnf = pums.to_numpy().astype(int)\n\nsynth = snsynth.MWEMSynthesizer(epsilon=1.0, split_factor=nf.shape[1]) \nsynth.fit(nf)\n\nsample = synth.sample(10) # get 10 synthetic rows\nprint(sample)\n```\n\n### PATE-CTGAN\n\n```python\nimport pandas as pd\nimport numpy as np\nfrom snsynth.pytorch.nn import PATECTGAN\nfrom snsynth.pytorch import PytorchDPSynthesizer\n\npums = pd.read_csv(pums_csv_path, index_col=None) # in datasets/\npums = pums.drop(['income'], axis=1)\n\nsynth = PytorchDPSynthesizer(1.0, PATECTGAN(regularization='dragan'), None)\nsynth.fit(pums, categorical_columns=pums.columns.values.tolist())\n\nsample = synth.sample(10) # synthesize 10 rows\nprint(sample)\n```\n\nSee the [Synthesizers project](synth/README.md)\n\n## Communication\n\n- You are encouraged to join us on [GitHub Discussions](https://github.com/opendp/opendp/discussions/categories/smartnoise)\n- Please use [GitHub Issues](https://github.com/opendp/smartnoise-sdk/issues) for bug reports and feature requests.\n- For other requests, including security issues, please contact us at [smartnoise@opendp.org](mailto:smartnoise@opendp.org).\n\n## Releases and Contributing\n\nPlease let us know if you encounter a bug by [creating an issue](https://github.com/opendp/smartnoise-sdk/issues).\n\nWe appreciate all contributions. Please review the [contributors guide](contributing.rst).  We welcome pull requests with bug-fixes without prior discussion.\n\nIf you plan to contribute new features, utility functions or extensions to this system, please first open an issue and discuss the feature with us.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendp%2Fsmartnoise-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopendp%2Fsmartnoise-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendp%2Fsmartnoise-sdk/lists"}