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. ▲ 2
    Show HN: Anycode – import anything from a Python module thanks to ChatGPT
    story by hk__2 · 2024-02-19 · 3 comments
  7. ▲ 1
    Import arbitrary code from Stack Overflow as Python modules
    story by pabs3 · 2023-06-01 · 0 comments
  8. …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
  9. …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
  10. ▲ 2
    StackOverflow Importer
    story by eyegor · 2022-01-02 · 0 comments
  11. 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
  12. 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?
  13. 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…
  14. https://gkoberger.github.io/stacksort/ https://github.com/drathier/stack-overflow-import https://github.com/james9909/stackanswers.vim
  15. …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
  16. …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
  17. ▲ 2
    StackOverflow Importer
    story by yesenadam · 2021-04-20 · 0 comments
  18. Often enough to inspire this: https://github.com/drathier/stack-overflow-import
  19. 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
  20. Re: #4 https://github.com/drathier/stack-overflow-import
    comment by brundolf · 2020-11-29 · in Extra Ideas for Computing
  21. Does this work ? https://github.com/drathier/stack-overflow-import
  22. Might want to automate it further: https://github.com/drathier/stack-overflow-import
  23. Relevant Python library ( https://github.com/drathier/stack-overflow-import ) and previous HN discussion ( https://news.ycombinator.com/item?id=12868946 ).
  24. ▲ 2
    StackOverflow Importer – Import Code from Stack Overflow as Python Modules
    story by CiaranR · 2017-07-17 · 2 comments
  25. Also https://github.com/drathier/stack-overflow-import which turns upvoted answers into modules.
  26. ▲ 301
    StackOverflow Importer – Import code from Stack Overflow as Python modules
    story by drathier · 2016-11-03 · 84 comments
  27. ▲ 4
    From stackoverflow import quick_sort
    story by drathier · 2016-11-03 · 0 comments