# Darklock
Completely disable the internet and other services, only allowing whitelists
through.
---
![img.png](img.png)
[![Upload Python Package](https://github.com/Capsize-Games/darklock/actions/workflows/python-publish.yml/badge.svg)](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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Capsize-Games/darklock",
"name": "darklock",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10.0",
"maintainer_email": null,
"keywords": null,
"author": "Capsize LLC",
"author_email": "contact@capsizegames.com",
"download_url": "https://files.pythonhosted.org/packages/e7/00/af94bb0c2fcaf4d963b72b51f5333c84fa4c6e970acde6cddc87b5dc4c10/darklock-0.1.5.tar.gz",
"platform": null,
"description": "# Darklock\n\nCompletely disable the internet and other services, only allowing whitelists\nthrough.\n\n---\n\n![img.png](img.png)\n\n[![Upload Python Package](https://github.com/Capsize-Games/darklock/actions/workflows/python-publish.yml/badge.svg)](https://github.com/Capsize-Games/darklock/actions/workflows/python-publish.yml)\n\n---\n\n## Installation\n\n```bash\npip install darklock\n```\n\n---\n\n## Usage\n\nImport into your application at the top of the main entry file (e.g. `main.py`).\n\nInstall the darklock for the service you want to restrict.\n\n```python\nimport darklock\n\ndarklock.network.install()\ndarklock.os.install()\n```\n\nUninstall the darklock for the service you no longer want to restrict.\n\n```python\nimport darklock\n\ndarklock.network.uninstall()\ndarklock.os.uninstall()\n```\n\n---\n\n## Testing\n\n```bash\npython -m unittest discover -s tests\n```\n",
"bugtrack_url": null,
"license": "GPL-3.0",
"summary": null,
"version": "0.1.5",
"project_urls": {
"Homepage": "https://github.com/Capsize-Games/darklock"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2f1ac123e633c7617444213c7bac74b5244b05023999592da002ee8726bca6ab",
"md5": "ff5395a1c43486e9d6beae3d820d6b41",
"sha256": "9f8db416f7572c49629fd03bbfbfca4c66237e2a516ace56139267db803425e6"
},
"downloads": -1,
"filename": "darklock-0.1.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ff5395a1c43486e9d6beae3d820d6b41",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10.0",
"size": 17666,
"upload_time": "2024-05-09T17:45:59",
"upload_time_iso_8601": "2024-05-09T17:45:59.899380Z",
"url": "https://files.pythonhosted.org/packages/2f/1a/c123e633c7617444213c7bac74b5244b05023999592da002ee8726bca6ab/darklock-0.1.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e700af94bb0c2fcaf4d963b72b51f5333c84fa4c6e970acde6cddc87b5dc4c10",
"md5": "9943d19acbe34def96ba5a94cbfd112a",
"sha256": "8021389b06b0ef19c784d95473473e26502ad27302f57e2083cc0462150df713"
},
"downloads": -1,
"filename": "darklock-0.1.5.tar.gz",
"has_sig": false,
"md5_digest": "9943d19acbe34def96ba5a94cbfd112a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10.0",
"size": 17192,
"upload_time": "2024-05-09T17:46:01",
"upload_time_iso_8601": "2024-05-09T17:46:01.703624Z",
"url": "https://files.pythonhosted.org/packages/e7/00/af94bb0c2fcaf4d963b72b51f5333c84fa4c6e970acde6cddc87b5dc4c10/darklock-0.1.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-09 17:46:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Capsize-Games",
"github_project": "darklock",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "darklock"
}