Share your repls and programming experiences

← Back to all posts
Import other repls!
21natzil (1133)

Through the power of a new module I made called rimp, you can import your repls and other people's repls in python.

  • If you want to see an example of how to use rimp, see below.
  • If you want to see the source or know how to make your repl compatible with importing, click here
Scoder12 (733)

@21natzil couldn't you put beautifulsoup4 and requests as dependencies in your pypi module?

21natzil (1133)

@Scoder12 I thought they were... I'll check on that.

Scoder12 (733)

@21natzil Well I mean if they are people dont need to put them in requirements.txt

TLD99 (0)

Traceback (most recent call last):
File "", line 2, in <module>
import rimp
File "/home/runner/.local/lib/python3.6/site-packages/rimp/", line 4, in <module>
from rimp.fetcher import collect_files
File "/home/runner/.local/lib/python3.6/site-packages/rimp/", line 4, in <module>
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'

After I import my stuff it raised this error above.
Is it broken?

21natzil (1133)

@TLD99 Go to the package installer on, and add the following packages, in addition to rimp and the ones you're using: bs4 and requests. That should resolve the issue.

Saibot84 (41)

@21natzil Hmm. I'm also getting an error when I try to use it. Any advice?


Traceback (most recent call last): File "", line 8, in <module> rimp.load_repl("21natzil", "Permissions") File "/opt/virtualenvs/python3/lib/python3.8/site-packages/rimp/", line 21, in load_repl for file_path, contents in collect_files(name, project): File "/opt/virtualenvs/python3/lib/python3.8/site-packages/rimp/", line 47, in collect_files repl_meta = get_details(name, project) File "/opt/virtualenvs/python3/lib/python3.8/site-packages/rimp/", line 20, in get_details script = soup.find_next("script").string.split('\n')[1][26:] IndexError: list index out of range

olafh10 (35)

Nice! I absolutely love it 👍

JerryTheMouse (4)

I feel like you should make the set up more user friendly

HappyFakeboulde (223)

Very good
Have an upvote

minx28 (356)

This is really cool and definitely very useful, but there isn't really any sort of explanation on how to set it up... pls could you make a tutorial for that, or comment in the Permissions repl?

21natzil (1133)

@minx28 Good idea, however the link I provided in the post might be helpful.

JayBFC (28)

Nice idea! Not tested it but i will do at some point. Sounds awesome!

And let me guess, rimp is short for "repl import"?

JayBFC (28)

@21natzil Lol i knew it. Will try this out soon, maybe not today (27th of December) because I will be busy for the whole day