跳转到主要内容

WinFSP的CFFI绑定

项目描述

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

WinFSP版本1.4及更高版本提供的绑定。

Winfspy包含三个重要的模块

  • winfspy:公开WinFSP API

  • winfspy.memfs:基于winfspy的内存文件系统

  • winfspy.tests.winfsp_tests:用于黑盒测试的测试套件

  • winfspy.tests.winfstest:用于黑盒测试的较轻量测试套件

要求和安装

WinFSP版本1.4或更高版本必须单独安装。

然后使用pip安装winfspy

$ pip install winfspy

WinFSP Python API

用法

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

Winfspy内存文件系统

用法

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

# More information
$ python -m winfspy.memfs

Winfsp-tests 测试套件

此测试套件集成了winfsp-tests的外部测试套件。

用法

# 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 测试套件

此测试套件来自secfs.test.winfstest。它虽然基础但非常有用,可以测试常见用例。

用法

# 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

许可证

免费软件:BSD

项目详细信息


下载文件

下载适用于您的平台的文件。如果您不确定该选择哪个,请了解有关安装包的更多信息。

源代码分发

winfspy-0.8.4.tar.gz (58.7 kB 查看哈希值)

上传时间 源代码

构建分发

winfspy-0.8.4-cp311-cp311-win_amd64.whl (95.1 kB 查看哈希值)

上传时间 CPython 3.11 Windows x86-64

winfspy-0.8.4-cp311-cp311-win32.whl (86.5 kB 查看哈希值)

上传时间 CPython 3.11 Windows x86

winfspy-0.8.4-cp310-cp310-win_amd64.whl (95.1 kB 查看哈希值)

上传时间 CPython 3.10 Windows x86-64

winfspy-0.8.4-cp310-cp310-win32.whl (86.5 kB 查看哈希值)

上传时间 CPython 3.10 Windows x86

winfspy-0.8.4-cp39-cp39-win_amd64.whl (95.1 kB 查看哈希值)

上传时间 CPython 3.9 Windows x86-64

winfspy-0.8.4-cp39-cp39-win32.whl (86.5 kB 查看哈希值)

上传时间 CPython 3.9 Windows x86

winfspy-0.8.4-cp38-cp38-win_amd64.whl (95.1 kB 查看哈希值)

上传时间 CPython 3.8 Windows x86-64

winfspy-0.8.4-cp38-cp38-win32.whl (86.5 kB 查看哈希值)

上传时间 CPython 3.8 Windows x86

winfspy-0.8.4-cp37-cp37m-win_amd64.whl (95.1 kB 查看哈希值)

上传于 CPython 3.7m Windows x86-64

winfspy-0.8.4-cp37-cp37m-win32.whl (86.5 kB 查看哈希值)

上传于 CPython 3.7m Windows x86

winfspy-0.8.4-cp36-cp36m-win_amd64.whl (96.4 kB 查看哈希值)

上传于 CPython 3.6m Windows x86-64

winfspy-0.8.4-cp36-cp36m-win32.whl (87.0 kB 查看哈希值)

上传于 CPython 3.6m Windows x86

支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面