https://github.com/capsize-games/darklock
Completely disable specific services within a running python application.
https://github.com/capsize-games/darklock
Last synced: 5 months ago
JSON representation
Completely disable specific services within a running python application.
- Host: GitHub
- URL: https://github.com/capsize-games/darklock
- Owner: Capsize-Games
- License: gpl-3.0
- Created: 2024-04-23T16:03:45.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-25T16:10:06.000Z (almost 2 years ago)
- Last Synced: 2025-10-14T05:22:56.481Z (9 months ago)
- Language: Python
- Size: 1.28 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Darklock
Completely disable the internet and other services, only allowing whitelists
through.
---

[](https://github.com/Capsize-Games/darklock/actions/workflows/python-publish.yml)
---
## Installation
```bash
pip install darklock
```
---
## Usage
Import into your application at the top of the main entry file (e.g. `main.py`).
Install the darklock for the service you want to restrict.
```python
import darklock
darklock.network.install()
darklock.os.install()
```
Uninstall the darklock for the service you no longer want to restrict.
```python
import darklock
darklock.network.uninstall()
darklock.os.uninstall()
```
---
## Testing
```bash
python -m unittest discover -s tests
```