Ask coding questions

← Back to all posts
Can I import another REPL as a python module?
PolySaken (0)

Can I import another REPL as a python module? I'd like to use one of my repls' code (imported from github, if that's important) in another project. However, I don't want to just copy-paste the code, as that's messy and hard to maintain. Is there a way to import a repl as a module in another repl? If not, is it possible for this feature to be added?

Comments
hotnewtop
Coder100 (18873)

no, there is a better way.
You see, replit's modules come from pip, so just publish your repl to pip!

https://replit.com/@templates/template-Python-Package

PolySaken (0)

Attached is the repl i want to use as a module.