Metadata-Version: 2.4
Name: opsec-tool
Version: 0.1.0
Summary: Practical privacy and operational-security helpers for Python.
Author: opsec contributors
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests<3,>=2.31
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: ruff>=0.6; extra == "dev"
Dynamic: license-file

# opsec

join discord.gg/vrmodding you opsec god
we cant make u anonymous at all ts was mostly for fun. dm me "skireofficial" on discord

## install

```bash
python -m pip install opsec
```

## proxy loader

```python
from opsec.proxy import ProxyPool

pool = ProxyPool.from_file("proxies.txt", check=True)

proxy = pool.get()
print(proxy.url)
```

proxies.txt accepts one url per line

```text
http://127.0.0.1:8080
socks5h://user:password@example.net:1080
```

round robin, random, and http are all allowed

## http session 

```python
from opsec.http import PrivacySession

session = PrivacySession(proxy_pool=pool)

response = session.get(
    "https://example.com/?utm_source=newsletter&id=42",
    timeout=10,
)
```

session removes basic tracking things and retrieves it safely

## scan

```python
from opsec.secrets import scan_text

for finding in scan_text("token=ghp_example123"):
    print(finding.kind, finding.start, finding.end)
```
it reports matches

## auditing

```bash
opsec audit
```

checks flaws and config mistakes that can affect ur privac y ## yo thingy u put a typo here fix this later when u build it im lazy and remove this

## developemnt

```bash
python -m pip install -e ".[dev]"
pytest
```
