Metadata-Version: 2.1
Name: win32session
Version: 0.1.0
Summary: Python bindings for win32 session cleanup management.
Home-page: https://github.com/LorenEteval/win32session
Author: Loren Eteval
Author-email: loren.eteval@proton.me
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: C++
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Operating System :: Microsoft :: Windows
Classifier: Topic :: Internet
Classifier: Topic :: Internet :: Proxy Servers
Description-Content-Type: text/markdown
Requires-Dist: pybind11 <2.13.0

# win32session

[![Deploy PyPI](https://github.com/LorenEteval/win32session/actions/workflows/deploy-pypi.yml/badge.svg?branch=main)](https://github.com/LorenEteval/win32session/actions/workflows/deploy-pypi.yml)

Python bindings for win32 session cleanup management. This is a Windows-only package.

It works exactly the same
as [sysproxy daemon](https://github.com/LorenEteval/sysproxy?tab=readme-ov-file#sysproxy-daemon).

## Install

```
pip install win32session
```

## API

```pycon
>>> import win32session
>>> help(win32session) 
Help on module win32session:                                                                                                                                                                                                                                                    

NAME
    win32session

FUNCTIONS
    off(...) method of builtins.PyCapsule instance
        off() -> bool

        Set session daemon off

    run(...) method of builtins.PyCapsule instance
        run() -> bool

        Run session daemon

    set(...) method of builtins.PyCapsule instance
        set(callback: Callable) -> None

        Set session callback
```

## Tested Platform

win32session works on all reasonable Windows platform with all Python version(Python 3).

Below are tested build in [github actions](https://github.com/LorenEteval/win32session/actions).

| Platform     | Python 3.6-Python 3.13 |
|--------------|:----------------------:|
| windows-2019 |   :heavy_check_mark:   |
| windows-2022 |   :heavy_check_mark:   |


