Skip to content

Commit 9778aed

Browse files
committed
Rewrite as whoson: lightweight CLI subnet auditor
- Replace Streamlit/React/Docker with argparse CLI - Remove 2600+ node_modules files from tracking - Remove Dockerfile, docker-compose, bolt scaffolding - Add PNG/JPEG/SVG export via Pillow - Add GitHub Actions CI + PyPI publish workflows - Package name: whoson, CLI command: whoson - 2 runtime deps: python-nmap, Pillow - 61 tests
1 parent d825795 commit 9778aed

2,642 files changed

Lines changed: 1482 additions & 482045 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bolt/prompt

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.9", "3.12", "3.13"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install nmap
21+
run: sudo apt-get update && sudo apt-get install -y nmap
22+
- name: Install package with dev deps
23+
run: pip install -e ".[dev]"
24+
- name: Run tests
25+
run: pytest -v

.github/workflows/publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
13+
with:
14+
python-version: "3.12"
15+
- name: Install build tools
16+
run: pip install build
17+
- name: Build sdist and wheel
18+
run: python -m build
19+
- uses: actions/upload-artifact@v4
20+
with:
21+
name: dist
22+
path: dist/
23+
24+
publish:
25+
needs: build
26+
runs-on: ubuntu-latest
27+
environment: pypi
28+
permissions:
29+
id-token: write
30+
steps:
31+
- uses: actions/download-artifact@v4
32+
with:
33+
name: dist
34+
path: dist/
35+
- uses: pypa/gh-action-pypi-publish@release/v1

.gitignore

Lines changed: 18 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,47 +3,21 @@ __pycache__/
33
*$py.class
44

55
# Distribution / packaging
6-
.Python
76
build/
8-
develop-eggs/
97
dist/
10-
downloads/
11-
eggs/
12-
.eggs/
13-
lib/
14-
lib64/
15-
parts/
16-
sdist/
17-
var/
18-
wheels/
198
*.egg-info/
20-
.installed.cfg
219
*.egg
2210

23-
# PyInstaller
24-
*.manifest
25-
*.spec
11+
# Virtual environments
12+
.venv/
13+
venv/
2614

27-
# Unit test / coverage reports
28-
htmlcov/
29-
.tox/
15+
# Unit test / coverage
16+
.pytest_cache/
3017
.coverage
3118
.coverage.*
32-
.cache
33-
nosetests.xml
19+
htmlcov/
3420
coverage.xml
35-
*.cover
36-
.hypothesis/
37-
.pytest_cache/
38-
39-
# Environments
40-
.env
41-
.venv
42-
env/
43-
venv/
44-
ENV/
45-
env.bak/
46-
venv.bak/
4721

4822
# IDE
4923
.vscode/
@@ -54,23 +28,20 @@ venv.bak/
5428

5529
# OS
5630
.DS_Store
57-
.DS_Store?
58-
._*
59-
.Spotlight-V100
60-
.Trashes
61-
ehthumbs.db
62-
Thumbs.db
6331

64-
# Streamlit
65-
.streamlit/
32+
# Scaffolding (bolt.new)
33+
.bolt/
6634

67-
# Exports
68-
exports/
69-
*.json
35+
# Node (should never be in this project)
36+
node_modules/
37+
package-lock.json
38+
39+
# Exports / generated images
7040
*.png
41+
*.jpg
42+
*.jpeg
43+
*.svg
7144
*.csv
72-
*.graphml
73-
74-
# Logs
45+
*.json
7546
*.log
76-
logs/
47+
exports/

Dockerfile

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)