Skip to main content

DriveScanner

DriveScanner is a Python library created by The Analytics Lab, which is powered by Cmotions. This library aims to help you with identifying files on your filesystem that could be a potential GDPR threat. To do this, the file contents are scanned, looking for specific information like IBAN, social security numbers (Dutch: BSN), telephone numbers, email addresses, credit card numbers and more.

Installation

Install DriveScanner using pip

pip install drivescanner

Usage

import drivescanner

# set the location of the files you want to scan
# all files in all subdirectories will also be taken into account
file_path = "C:/MyFiles"
file_list = drivescanner.list_all_files(file_path)

# create an overview of all the filetypes on our example drive
drivescanner.extension_stats(file_list)

# if we want we can include/exclude certain extensions
file_list = drivescanner.select_files(file_list, include=["xlsx", "xls", "docx", "doc", "pdf", "ppt", "pptx"], exclude=None)

# now we are ready to scan all the files in the list
resultdict = drivescanner.scan_drive(file_list)

# and calculate the risk score for all scanned files
# there might be some files which gave problems and are not scanned
# your retrieve those in a separate dataframe
df_result, df_not_processed = drivescanner.calculate_severity(resultdict)

# that's it, now you can use and inspect the result any way you like

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

License

GNU General Public License v3.0

Contributors

Jeanine Schoonemann, Rick Flamand, Sem Frankenberg, Wim Verboom and Wouter van Gils
Contact us

Metadata

Release files for drivescanner 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drivescanner 0.0.4
File Size Uploaded Provenance Actions
drivescanner-0.0.4.tar.gz 38.4 kB Without provenance Details for drivescanner-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for drivescanner 0.0.4
File Interpreter ABI Platform Actions
drivescanner-0.0.4-py3-none-any.whl Python 3 none any Details for drivescanner-0.0.4-py3-none-any.whl

Total release size: 65.1 kB

Release files / drivescanner-0.0.4.tar.gz

Download URL drivescanner-0.0.4.tar.gz
Size 38.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ee4734ea666af6f5bb0ad01839d4882c2c269bd9c4c62b0f95e98ddc0d9c0027
BLAKE2b-256 checksum
How to use checksums
8cd5b8d2fbe0cd8a3f635ff8c562211bb44a5339065c258223c492f67d07c609
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / drivescanner-0.0.4-py3-none-any.whl

Download URL drivescanner-0.0.4-py3-none-any.whl
Size 26.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd04e3aeda592fb4af12876254aee962358c03179fd30dd168d337312764fd63
BLAKE2b-256 checksum
How to use checksums
5de9c941d0dcf07fa7c86d6cf77a853527852d1abb506576fe0dca7c917c1180
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for drivescanner 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page