{"id":26652788,"url":"https://github.com/opcoder0/privet","last_synced_at":"2025-03-25T03:58:05.975Z","repository":{"id":184380002,"uuid":"671791233","full_name":"opcoder0/privet","owner":"opcoder0","description":"Privet is a python utility to search the filesystem for confidential data","archived":false,"fork":false,"pushed_at":"2023-09-06T02:50:06.000Z","size":2168,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-21T00:58:04.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opcoder0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-28T06:30:33.000Z","updated_at":"2023-10-01T15:18:33.000Z","dependencies_parsed_at":"2023-07-30T03:32:34.292Z","dependency_job_id":null,"html_url":"https://github.com/opcoder0/privet","commit_stats":null,"previous_names":["opcoder0/sms","opcoder0/privet"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opcoder0%2Fprivet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opcoder0%2Fprivet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opcoder0%2Fprivet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opcoder0%2Fprivet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opcoder0","download_url":"https://codeload.github.com/opcoder0/privet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245394757,"owners_count":20608125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-03-25T03:58:05.423Z","updated_at":"2025-03-25T03:58:05.958Z","avatar_url":"https://github.com/opcoder0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Privet\n\n![Privet](https://github.com/opcoder0/privet/blob/main/images/privet.jpeg)\n\n`privet` is a tool to find sensitve information in a file. The tool vets and lists files with confidential information. The tool looks for any personal identifiable information (PII), credit card numbers, government id numbers and so on. The tool supports two formats -\n\n- Text\n- PDF\n\nTypes of information the tool recognizes -\n\n- Australia\n  - Bank Names\n  - Drivers License\n  - Passport\n  - Medicare Card Number\n  - Bank Account and BSB Numbers\n  - ABN and ACN Numbers\n  - TFN Numbers\n  - Mobile and Fixedline Numbers\n- Credit Card Numbers (validated using Luhns Algorithm)\n- IBAN\n- Passport Numbers\n- AWS Access Key IDs and Secret Access Key\n- International Bank Names\n\n## Installation\n\nI have tested it with Python 3.9. It works well if you have a version \u003e= 3.9.\n\n1. Clone the repository `git clone git@github.com:opcoder0/privet.git`\n2. Change directory `cd privet`\n3. Create a virtual environment `python -m venv venv`\n4. Activate the virtual environment `source venv/bin/activate`\n5. Install dependencies `pip install -r requirements.txt`\n6. Download Spacy's trained model/pipeline. `python -m spacy download en_core_web_sm`\n6. Run `python privet.py --help`\n\n## Usage\n\n```\nusage: privet.py [-h] [-f FORMAT] [-d /path1,/path2,...] [-n NAMESPACE] [-v] [-z /path/to/file]\n\nSearch for confidential data in files\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -f FORMAT, --format FORMAT\n                        Specify file format [txt, pdf]\n  -d /path1,/path2,..., --dir /path1,/path2,...\n                        search path to find files\n  -n NAMESPACE, --namespace NAMESPACE\n                        search namespace can indicate region or search domain\n  -v, --verbose         verbose output\n  -z /path/to/file, --visualize /path/to/file\n                        Visualize document entites\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopcoder0%2Fprivet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopcoder0%2Fprivet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopcoder0%2Fprivet/lists"}