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.2.tar.gz (58.2 kB view details)

Uploaded Source

Built Distributions

winfspy-0.8.2-cp39-cp39-win_amd64.whl (95.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

winfspy-0.8.2-cp39-cp39-win32.whl (86.5 kB view details)

Uploaded CPython 3.9 Windows x86

winfspy-0.8.2-cp38-cp38-win_amd64.whl (95.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

winfspy-0.8.2-cp38-cp38-win32.whl (86.5 kB view details)

Uploaded CPython 3.8 Windows x86

winfspy-0.8.2-cp37-cp37m-win_amd64.whl (95.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

winfspy-0.8.2-cp37-cp37m-win32.whl (86.5 kB view details)

Uploaded CPython 3.7m Windows x86

winfspy-0.8.2-cp36-cp36m-win_amd64.whl (95.7 kB view details)

Uploaded CPython 3.6m Windows x86-64

winfspy-0.8.2-cp36-cp36m-win32.whl (86.5 kB view details)

Uploaded CPython 3.6m Windows x86

File details

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

File metadata

  • Download URL: winfspy-0.8.2.tar.gz
  • Upload date:
  • Size: 58.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for winfspy-0.8.2.tar.gz
Algorithm Hash digest
SHA256 e5d958a247e1f691a0247fa6f08fc37ba590866a71cebac8d146e8ff1f4394a6
MD5 851755a8feaac54358ca75306b277e01
BLAKE2b-256 463a8038f62db75fb4c6bea7f955b3a9dd86adc263126ebdb143e0acc9272be9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: winfspy-0.8.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 95.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for winfspy-0.8.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f9abbc5e61f7bf16133294a9027c5224b926e80fea8d321a8f1c88e2c42d9fe7
MD5 9a5790fbc34aebee7bb553068d3747de
BLAKE2b-256 117a159971bbf84c6e61d982e63336952ceba785ed7ec85cd3024233d446c6fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: winfspy-0.8.2-cp39-cp39-win32.whl
  • Upload date:
  • Size: 86.5 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for winfspy-0.8.2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 46cbd0d96bae5c4a69edd02da5336663d63c7553b98db5f890572d718c8be862
MD5 5b6de8199118ddddb9bc3945f66da58b
BLAKE2b-256 30e20989d831ac97eedb710a0dd3cec8315492b0c3cf5f790f49d71f10e546d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: winfspy-0.8.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 95.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for winfspy-0.8.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6b98f0e996b03d52b17c17ed83e0b62e0b802d562ef4cd4fc25caea41e8ecb63
MD5 81a5eec02878958c684db432fc88637f
BLAKE2b-256 d7a1127dad6fd5211fca1369dbf071e0c7498c96f13300f5ed390f1c1a51797b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: winfspy-0.8.2-cp38-cp38-win32.whl
  • Upload date:
  • Size: 86.5 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for winfspy-0.8.2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c44a570b524a9c304fa5b30dfa98344cfa5821da6600b02ce8662479078ef5a7
MD5 166085671e1b0d22ea96f1730140b310
BLAKE2b-256 50841a1c275341526181fd292c37ef9a43ddd34074e5f3b7cc3cd8a9bf58cc2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: winfspy-0.8.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 95.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for winfspy-0.8.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 5440a246859191ecacee092c322dd54e05b6efab09a447b9718005cee66a8298
MD5 19e25f711f37bfd90809aa465f562df5
BLAKE2b-256 a8689fc98b2861d931413c807ae9c58715f2b6eee44e7918980591543bba3cb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: winfspy-0.8.2-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 86.5 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for winfspy-0.8.2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 8b89495dbdc421d1f99ffb4f82b09a6ca23cad19039ecf95e7766bbb4accdf3f
MD5 1f0a024e277655e3a14210601ecf01f5
BLAKE2b-256 dc7162c3450f2a7a57c57f57cf3cbb73b7ab2a3bca08a5d36ed6951100cc580a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: winfspy-0.8.2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 95.7 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for winfspy-0.8.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 80d23bd46e3e96a2954136f2769d884ae9e90f0975584af21a7b94d65e52aa4b
MD5 27bac097c9e8cf44b5700e6c6c8cc284
BLAKE2b-256 ab47960ab9cb2f9f86c0f9bc5975fc6ae81c6eafa9e37ced77913557ba263e1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: winfspy-0.8.2-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 86.5 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for winfspy-0.8.2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 234d7c235f49e952970c58b6600e4c0487f37b731b4cd0912fe5316ef7937858
MD5 c5863cc891433333a413e155185f8644
BLAKE2b-256 7144e1fb108d8f0758a229ba8d64efb1252057b192e7cc9c5997f0cb9ebde25e

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