This repository is now organized into a few clear areas:
src/: active Python 3 modules with repo-level teststests/: unit tests forsrc/projects/: self-contained subprojectspractice/: algorithm and interview-style exercisesarchive/: archived scripts and reference files kept for reference
The actively maintained root modules live under src/:
src/decorator_examples.pysrc/is_word_palindrome.pysrc/lcs.pysrc/mymod.pysrc/rabin_karp.pysrc/rps_sliding_window.pysrc/sparse_vector.py
technical_assessments/: standalone assessment/problem files
projects/reporter/: server health aggregation tool, updated for Python 3 packaging and tests
practice/algorithms/: standalone coding exercisespractice/leetcode/: LeetCode solutions archive
archive/: archived scripts and reference files kept outside the active code pathsarchive/legacy_ops/: older infra-specific scripts preserved for historical context
archive/legacy_ops remains importable for reference and manual use, but it is not part of the actively tested surface of the repository.
Run the repo-level tests:
python3 -m pytestGit commits use the tracked hook in .githooks/pre-commit.
It runs pytest for the full repo and pylint for newly added staged Python files.
By default the hook uses ~/.venv/py3_11/bin/python; override with PYTHON_BIN=/path/to/python if needed.
Enable it in a fresh clone with:
git config core.hooksPath .githooksIf you want to run the reporter project against real HTTP endpoints, install requests first.
To run archive/legacy_ops/integration/test_avro.py, install the AVRO extra:
python3 -m pip install .[avro]
python3 archive/legacy_ops/integration/test_avro.pyIf you also want --send, install the Flume logger dependency too:
python3 -m pip install .[avro,avro-send]
python3 archive/legacy_ops/integration/test_avro.py --send--send expects a Flume endpoint on localhost:6666. The script reads log.avsc and part-00000.avro from its own directory.