intial commit

This commit is contained in:
2026-07-26 10:32:37 +00:00
parent 2d9768c24a
commit 624a44a82a
20 changed files with 58 additions and 21 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
# glassbox - live python execution profiler and visualizer
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# app.py
import os
+3 -2
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
# glassbox - live python execution profiler engine
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# profiler.py
import asyncio
import builtins
+3 -1
View File
@@ -1,2 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/algorithms/__init__.py
# algorithms package
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/algorithms/recursion.py
# deep and non primitive recursion - the cpu-bound / tall-call-stack part of the workload
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/algorithms/sorting.py
# sorting algorithms with deliberately different complexity classes
+3 -1
View File
@@ -1,2 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/analysis/__init__.py
# analysis package
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/analysis/indexer.py
# inverted index over the fetched documents - the largest retained structure
from analysis.text import tokenize
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/analysis/report.py
# aggregation and human readable reporting across every log level
import logging
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/analysis/similarity.py
# cosine similarity between document word-frequency vectors - a deep helper call chain
def cosine(a: dict, b: dict) -> float:
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/analysis/text.py
# tokenisation and word/phrase statistics over the fetched text
import re
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/config.py
# sample_project - workload configuration and the shared seeded rng
import random
+3 -1
View File
@@ -1,2 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/core/__init__.py
# core package
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/core/metrics.py
# small statistics helpers used by the reporting stage
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/core/pipeline.py
# stage timing context manager used to structure and instrument the pipeline
import logging
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/main.py
# sample_project - an async data pipeline that fetches real data (wikipedia + github),
# then indexes and analyses it. built to exercise every glassbox view at once:
# async event loop -> the blocking panel (a coroutine that stalls the loop)
+3 -1
View File
@@ -1,2 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/net/__init__.py
# net package
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/net/github.py
# recently updated github repositories via the public search api
import logging
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/net/http.py
# minimal http client over urllib - no third party dependencies, network time shows up as wait
import json
+3 -1
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# glassbox - Live Python execution profiler - Developed by acidvegas in Python (https://github.com/acidvegas/glassbox)
# sample_project/net/wikipedia.py
# wikipedia article intro fetching via the mediawiki extracts api (fuller text than the summary)
import logging
+1
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
# glassbox - create a virtualenv and install dependencies
set -euo pipefail
cd "$(dirname "$0")"