# 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/c5/8b/4311b367fdd929773e5107cc70effdeea64e30ee8183da567a0905c69ae4/darklock-0.1.6.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.6",
"project_urls": {
"Homepage": "https://github.com/Capsize-Games/darklock"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d74e97fae728fc882c7414324bfdf0acd1e4c52bc67c1288f81142cd6df6e8ea",
"md5": "cc2cde855bce90299b188b9278f841aa",
"sha256": "37c0aaeb9deedeb88e63ae0a807bb77e5e11c4b11a170ccad2d74014f260f4f2"
},
"downloads": -1,
"filename": "darklock-0.1.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cc2cde855bce90299b188b9278f841aa",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10.0",
"size": 17760,
"upload_time": "2024-08-25T16:10:36",
"upload_time_iso_8601": "2024-08-25T16:10:36.333464Z",
"url": "https://files.pythonhosted.org/packages/d7/4e/97fae728fc882c7414324bfdf0acd1e4c52bc67c1288f81142cd6df6e8ea/darklock-0.1.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c58b4311b367fdd929773e5107cc70effdeea64e30ee8183da567a0905c69ae4",
"md5": "47eedfe3c8c1269b1ad9fff06c9d66d1",
"sha256": "c0d7ebd52b685dcceb6f75e7ba84bdf9875785476f71235eb96f0e9b53e31f1f"
},
"downloads": -1,
"filename": "darklock-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "47eedfe3c8c1269b1ad9fff06c9d66d1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10.0",
"size": 17340,
"upload_time": "2024-08-25T16:10:37",
"upload_time_iso_8601": "2024-08-25T16:10:37.897656Z",
"url": "https://files.pythonhosted.org/packages/c5/8b/4311b367fdd929773e5107cc70effdeea64e30ee8183da567a0905c69ae4/darklock-0.1.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-25 16:10:37",
"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"
}