Similar project: https://github.com/yamadashy/repopack
Repopack with Claude projects has been a game changer for me on repository-wide refactors.
Show HN: Vomitorium – all of your project in 1 text file
31–40 of 56 posts
Re: Show HN: Vomitorium – all of your project in 1 text file
#32Re: Show HN: Vomitorium – all of your project in 1 text file
#33Love this. I created (half-jokingly, but only half) the concept of a monofile (inspired by our monorepo) in our team. I have not managed to convince my colleagues to switch yet, but maybe this package can help. Unironically, I find that in larger python projects, combining various related sub 100 loc files into one big sub 1000 loc file can do magic to circular import errors and remove 100s of lines of import stateme…
Just add to your __init__.py files:
import importlib
def __getattr__(submodule_name):
return importlib.import_module('.' + submodule_name, __package__)
And then just import the root module and use it without ever needing to import individual submodules:import foo
def bar():
return foo.subfoo.bar() # foo.subfoo is imported when the function is first executed instead of when it is parsed, so no circular import happenRe: Show HN: Vomitorium – all of your project in 1 text file
#34I can imagine the token counts to be off the charts. How would an llm handle this input? Llm output quality already drops quite hard at a out 3000 tokens let alone 128k
Re: Show HN: Vomitorium – all of your project in 1 text file
#35Love this. I created (half-jokingly, but only half) the concept of a monofile (inspired by our monorepo) in our team. I have not managed to convince my colleagues to switch yet, but maybe this package can help. Unironically, I find that in larger python projects, combining various related sub 100 loc files into one big sub 1000 loc file can do magic to circular import errors and remove 100s of lines of import stateme…
Re: Show HN: Vomitorium – all of your project in 1 text file
#36Love the name :D.
> A vomitorium is a passage situated below or behind a tier of seats in an amphitheatre or a stadium through which large crowds can exit rapidly at the end of an event. > A commonly held but erroneous notion is that Ancient Romans designated spaces called vomitoria for the purpose of literal vomiting, as part of a binge-and-purge cycle https://en.wikipedia.org/wiki/Vomitorium
Re: Show HN: Vomitorium – all of your project in 1 text file
#37Re: Show HN: Vomitorium – all of your project in 1 text file
#38Re: Show HN: Vomitorium – all of your project in 1 text file
#39Love this. I created (half-jokingly, but only half) the concept of a monofile (inspired by our monorepo) in our team. I have not managed to convince my colleagues to switch yet, but maybe this package can help. Unironically, I find that in larger python projects, combining various related sub 100 loc files into one big sub 1000 loc file can do magic to circular import errors and remove 100s of lines of import stateme…
To help with circular import, we switched a few years ago to lazily importing submodules on demand, and never switched back. Just add to your __init__.py files: import importlib def __getattr__(submodule_name): return importlib.import_module('.' + submodule_name, __package__) And then just import the root module and use it without ever needing to import individual submodules: import foo def bar(): return foo.subfoo.b…
Re: Show HN: Vomitorium – all of your project in 1 text file
#40 shopt -s globstar
tail -n+1 **/*.py | pbcopy