Hacker GitHub

← All repos

drathier/stack-overflow-import

View on GitHub ↗ ★ 3,727 Python

Import arbitrary code from Stack Overflow as Python modules.

27 mentions on Hacker News by 24 people: 7 stories, 20 comments · first 2016-11-03 · latest 2026-03-06

Mentions per year 27 mentions · busiest year 2021 (9)
20082026
  1. Python one-upped that a long time ago: from stackoverflow import quick_sort https://github.com/drathier/stack-overflow-import
  2. Why bother searching yourself? This is pre-LLM: https://github.com/drathier/stack-overflow-import
  3. You can just get the pseudo-LLM experience with this easy python package! https://github.com/drathier/stack-overflow-import (nit.. please don't actually do this).
  4. There's one that loads code out of the best matching SO answer automatically https://github.com/drathier/stack-overflow-import
  5. See also: https://github.com/drathier/stack-overflow-import >>> from stackoverflow import quick_sort >>> print(quick_sort.sort([1, 3, 2, 5, 4])) [1, 2, 3, 4, 5]
  6. …is better at generating function bodies. [0]: https://github.com/MythicManiac/copilot-import [1]: https://github.com/drathier/stack-overflow-import
    comment by molenzwiebel · 2023-01-03 · in Infinite AI Array
  7. …that using it could save more time than not. It's not doing anything radically different to https://github.com/drathier/stack-overflow-import and the latter works better . The worst part is that just as with tools like Grammarly, the…
    comment by tsukikage · 2022-12-05 · in Ask HN: Does ChatGPT scare you? It scares me
  8. See also https://github.com/drathier/stack-overflow-import for stupid Python import tricks. "from stackoverflow import quick_sort will go through the search results of [python] quick sort looking for the largest code block that doesn’t…
    comment by jnwatson · 2021-07-25 · in How the Python import system works
  9. Something like the Stackoverflow Importer for Python? https://github.com/drathier/stack-overflow-import
    comment by carschno · 2021-07-20 · in Is GitHub Copilot a blessing, or a curse?
  10. A friend suggested we try do this after seeing stack-overflow-import ( https://github.com/drathier/stack-overflow-import ), which queries stackoverflow for some matching result and loads it. For small functions, it's surprisingly…
  11. https://gkoberger.github.io/stacksort/ https://github.com/drathier/stack-overflow-import https://github.com/james9909/stackanswers.vim
  12. …highest rated answer's code that doesn't syntax error to a Python module is about 150 LoC[0]. [0]: https://github.com/drathier/stack-overflow-import
    comment by forgotpwd16 · 2021-07-05 · in The Good and the Limitations of Github Copilot
  13. …code then get it in the bin as a failed attempt to sprinkle AI on development and use this instead https://github.com/drathier/stack-overflow-import
  14. Often enough to inspire this: https://github.com/drathier/stack-overflow-import
  15. https://github.com/drathier/stack-overflow-import Discussed here too https://news.ycombinator.com/item?id=12868946
    comment by DenseComet · 2021-04-15 · in New GitHub themes for VS Code
  16. Re: #4 https://github.com/drathier/stack-overflow-import
    comment by brundolf · 2020-11-29 · in Extra Ideas for Computing
  17. Does this work ? https://github.com/drathier/stack-overflow-import
  18. Might want to automate it further: https://github.com/drathier/stack-overflow-import
  19. Relevant Python library ( https://github.com/drathier/stack-overflow-import ) and previous HN discussion ( https://news.ycombinator.com/item?id=12868946 ).
  20. Also https://github.com/drathier/stack-overflow-import which turns upvoted answers into modules.