Skip to main content

CFFI bindings for WinFSP

Project description

GitHub Actions Status https://codecov.io/gh/Scille/winfspy/branch/master/graph/badge.svg Pypi Status Code style: black

Bindings for WinFSP version 1.4 and onward.

Winfspy consists of three important modules:

  • winfspy: expose the WinFSP API

  • winfspy.memfs: a memory file system based on winfspy

  • winfspy.tests.winfsp_tests: a test suite for black box testing

  • winfspy.tests.winfstest: a lighter test suite for black box testing

Requirements and installation

WinFSP version 1.4 or higher has to be installed separately.

Then install winfspy using pip:

$ pip install winfspy

WinFSP python API

Usage:

from winfspy import (
    FileSystem,
    BaseFileSystemOperations,
    enable_debug_log,
    FILE_ATTRIBUTE,
    CREATE_FILE_CREATE_OPTIONS,
    NTStatusObjectNameNotFound,
    NTStatusDirectoryNotEmpty,
    NTStatusNotADirectory,
    NTStatusObjectNameCollision,
    NTStatusAccessDenied,
    NTStatusEndOfFile,
)

Winfspy memory file system

Usage:

# Run the memory fs as X: drive in verbose mode
$ python -m winfspy.memfs X: -v

# More information
$ python -m winfspy.memfs

Winfsp-tests test suite

This test suite integrates the external test suite of winfsp-tests.

Usage:

# Install winfspy with the test dependencies
$ pip install winfspy[test]

# Run the winfstest test suite on an existing X: drive
$ python winfspy.tests.winfsp_tests --file-system-path X:

# More information about pytest
$ python winfspy.tests.winfsp_tests -h

Winfstest test suite

This test suite is taken from secfs.test.winfstest. It is basic yet useful to test common use cases.

Usage:

# Install winfspy with the test dependencies
$ pip install winfspy[test]

# Run the winfstest test suite on an existing X: drive
$ python winfspy.tests.winfstest --file-system-path X:

# More information about pytest
$ python winfspy.tests.winfstest -h

License

Free software: BSD

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winfspy-0.8.3.tar.gz (58.4 kB view details)

Uploaded Source

Built Distributions

winfspy-0.8.3-cp310-cp310-win_amd64.whl (96.0 kB view details)

Uploaded CPython 3.10 Windows x86-64

winfspy-0.8.3-cp310-cp310-win32.whl (86.6 kB view details)

Uploaded CPython 3.10 Windows x86

winfspy-0.8.3-cp39-cp39-win_amd64.whl (96.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

winfspy-0.8.3-cp39-cp39-win32.whl (86.6 kB view details)

Uploaded CPython 3.9 Windows x86

winfspy-0.8.3-cp38-cp38-win_amd64.whl (96.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

winfspy-0.8.3-cp38-cp38-win32.whl (86.6 kB view details)

Uploaded CPython 3.8 Windows x86

winfspy-0.8.3-cp37-cp37m-win_amd64.whl (96.0 kB view details)

Uploaded CPython 3.7m Windows x86-64

winfspy-0.8.3-cp37-cp37m-win32.whl (86.6 kB view details)

Uploaded CPython 3.7m Windows x86

winfspy-0.8.3-cp36-cp36m-win_amd64.whl (96.0 kB view details)

Uploaded CPython 3.6m Windows x86-64

winfspy-0.8.3-cp36-cp36m-win32.whl (86.6 kB view details)

Uploaded CPython 3.6m Windows x86

File details

Details for the file winfspy-0.8.3.tar.gz.

File metadata

  • Download URL: winfspy-0.8.3.tar.gz
  • Upload date:
  • Size: 58.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for winfspy-0.8.3.tar.gz
Algorithm Hash digest
SHA256 836338c35a8810986ad66be88f592edd2960c6e50f58becb0b77256ce5e565ba
MD5 c68112159e417717602a864383da2cda
BLAKE2b-256 b1e8f50b4e59924e7419aaceb1cae80d2c5dca7a5e5c8da2dff1e0889d828660

See more details on using hashes here.

File details

Details for the file winfspy-0.8.3-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: winfspy-0.8.3-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 96.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for winfspy-0.8.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ae87957ff05feaae0d35f4734c0176b815dd5c5e3e93f5961fcf5183c24ea6d3
MD5 03fc89615a3c35024c38126d6e69b996
BLAKE2b-256 b8b0ee60711425fa36ccbc31b564d238147c388cf2eaae6c96f0c7570718664b

See more details on using hashes here.

File details

Details for the file winfspy-0.8.3-cp310-cp310-win32.whl.

File metadata

  • Download URL: winfspy-0.8.3-cp310-cp310-win32.whl
  • Upload date:
  • Size: 86.6 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for winfspy-0.8.3-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7c57fed1e537fb740dff0e4d0ddc11c650b68c22b3ebfe9e2640a03cd12f908c
MD5 27ed83439cd83af28f85feb8ed655fdf
BLAKE2b-256 a91fc8ab7e2d96365179a253feb81a496d4c19d6b18688595781fa6b6999e059

See more details on using hashes here.

File details

Details for the file winfspy-0.8.3-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: winfspy-0.8.3-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 96.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for winfspy-0.8.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0c42649860435cde704cda367f0775acc72cd1549f14b0fb14d73a242ae9e69e
MD5 00a2f49e8541f379596f28870363bd8a
BLAKE2b-256 21b71e120b22b0ff95812d0082a6c6cd2903a826711b6c597eb0c58d7a204ef3

See more details on using hashes here.

File details

Details for the file winfspy-0.8.3-cp39-cp39-win32.whl.

File metadata

  • Download URL: winfspy-0.8.3-cp39-cp39-win32.whl
  • Upload date:
  • Size: 86.6 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for winfspy-0.8.3-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 fb472211e576c56e6f685fdaa15b3e19209fef91263f9257795e38e232c77291
MD5 8ee5046b7cd92e596ff22cea79ac63aa
BLAKE2b-256 a3f0ed9d00a2a94d7c9522f0ddf5eb0305365fcd24633a4dcd335b3628c3d448

See more details on using hashes here.

File details

Details for the file winfspy-0.8.3-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: winfspy-0.8.3-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 96.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for winfspy-0.8.3-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9d5b83403ff1cb4591757ecebcfcd46a4a091784cda37e16546f38b01a4e63bb
MD5 54ff25186182c19d1de8bffd91f6c906
BLAKE2b-256 a696f2d437984fe73ee8c6d7a29e7c5fff93efc0f2aa2635bf2439e7ee61caa6

See more details on using hashes here.

File details

Details for the file winfspy-0.8.3-cp38-cp38-win32.whl.

File metadata

  • Download URL: winfspy-0.8.3-cp38-cp38-win32.whl
  • Upload date:
  • Size: 86.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for winfspy-0.8.3-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 218d04705c1b67db546736cbd97cb77195be4c9ffc903f85b8eba2ecdd82a37d
MD5 a0ccaa86da9fa03df6e511c6189c15fe
BLAKE2b-256 8820cb44dfa83e841311698beb48e6e8a2c9deebe3faf4af752f1361cc4facd2

See more details on using hashes here.

File details

Details for the file winfspy-0.8.3-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: winfspy-0.8.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 96.0 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for winfspy-0.8.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 abce008b613f01a67bb0a792d89666391cb7c3f908998e32ed059d9538c83c5c
MD5 c031544193b9501c6f1d76d200af8bb4
BLAKE2b-256 8c8aa0ab7b4439e8baa18f1f39d6f373ed10f11cb63a9777a6f46d536d299dee

See more details on using hashes here.

File details

Details for the file winfspy-0.8.3-cp37-cp37m-win32.whl.

File metadata

  • Download URL: winfspy-0.8.3-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 86.6 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for winfspy-0.8.3-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 d6da076aa3192753e6b0782fe40e14683caab6da687c853d635737d7eed706d3
MD5 47b660f8f54a755dfc8eee1a90c0de23
BLAKE2b-256 242e15ea74fb4ca14392bf3fed0e88b5928500ef5a02c3912e1b554d8c7537ef

See more details on using hashes here.

File details

Details for the file winfspy-0.8.3-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: winfspy-0.8.3-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 96.0 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for winfspy-0.8.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 b50ed00f4d1590d0a72b395e17ee68e1b6faa9c435fd905803d7236f45cb1717
MD5 c754d711923f45b99dec6d6e55ca6f8a
BLAKE2b-256 1cee7eef97634af46b41b8a442a3ea2ad595ebbb04d9b4285d115fd73ee4f5f1

See more details on using hashes here.

File details

Details for the file winfspy-0.8.3-cp36-cp36m-win32.whl.

File metadata

  • Download URL: winfspy-0.8.3-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 86.6 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for winfspy-0.8.3-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 44674057f3e8d8488ee5f46f267c60b8784c02f3cbbffb2074a0b17da0a53351
MD5 518efa79c00a115192c75b1363aee5ae
BLAKE2b-256 b6bad02af9f81e6d6b9bcdcea2b62fcef375d0be6c4d5647cc92ef2a86094c41

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page