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
20082026
-
Python one-upped that a long time ago: from stackoverflow import quick_sort https://github.com/drathier/stack-overflow-import
comment by Izkata · 2026-03-06 · in Labor market impacts of AI: A new measure and early evidence -
Why bother searching yourself? This is pre-LLM: https://github.com/drathier/stack-overflow-import
comment by Izkata · 2025-10-14 · in Why the push for Agentic when models can barely follow a simple instruction? -
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).
comment by Insanity · 2025-09-10 · in API, Claude.ai, and Console services impacted [resolved] -
There's one that loads code out of the best matching SO answer automatically https://github.com/drathier/stack-overflow-import
comment by __alexs · 2025-05-15 · in Python lib generates its code on-the-fly based on usage -
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]
comment by jaflo · 2025-05-15 · in Python lib generates its code on-the-fly based on usage -
▲ 2
Show HN: Anycode – import anything from a Python module thanks to ChatGPTstory by hk__2 · 2024-02-19 · 3 comments
-
▲ 1
Import arbitrary code from Stack Overflow as Python modulesstory by pabs3 · 2023-06-01 · 0 comments
-
…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 -
…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 -
▲ 2
StackOverflow Importerstory by eyegor · 2022-01-02 · 0 comments
-
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 -
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? -
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…
comment by molenzwiebel · 2021-07-17 · in Show HN: Copilot-import – Import and run Python directly from GitHub Copilot -
https://gkoberger.github.io/stacksort/ https://github.com/drathier/stack-overflow-import https://github.com/james9909/stackanswers.vim
comment by shagie · 2021-07-08 · in GitHub confirmed using all public code for training copilot regardless license -
…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 -
…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
comment by corobo · 2021-06-30 · in GitHub Copilot as open source code laundering? -
▲ 2
StackOverflow Importerstory by yesenadam · 2021-04-20 · 0 comments
-
Often enough to inspire this: https://github.com/drathier/stack-overflow-import
comment by cratermoon · 2021-04-19 · in How often do people copy and paste from Stack Overflow? -
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 -
Re: #4 https://github.com/drathier/stack-overflow-import
comment by brundolf · 2020-11-29 · in Extra Ideas for Computing -
Does this work ? https://github.com/drathier/stack-overflow-import
comment by stmL · 2020-02-19 · in Docker for Windows won't run if Razer Synapse driver management tool is running -
Might want to automate it further: https://github.com/drathier/stack-overflow-import
comment by aasasd · 2019-09-07 · in Everything I googled in a week as a professional software engineer -
Relevant Python library ( https://github.com/drathier/stack-overflow-import ) and previous HN discussion ( https://news.ycombinator.com/item?id=12868946 ).
comment by asciimike · 2018-11-05 · in Stacksort – Searches StackOverflow for sorting functions and runs them (2013) -
▲ 2
StackOverflow Importer – Import Code from Stack Overflow as Python Modulesstory by CiaranR · 2017-07-17 · 2 comments
-
Also https://github.com/drathier/stack-overflow-import which turns upvoted answers into modules.
comment by erik_seaberg · 2017-03-21 · in The Biggest Difference Between Coding Today and When I Started in the 80s -
▲ 301
StackOverflow Importer – Import code from Stack Overflow as Python modulesstory by drathier · 2016-11-03 · 84 comments
-
▲ 4
From stackoverflow import quick_sortstory by drathier · 2016-11-03 · 0 comments