Share your repls and programming experiences

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

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
Commentshotnewtop
Scoder12 (349)

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

21natzil (904)

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

Scoder12 (349)

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

TLD99 (0)

Traceback (most recent call last):
File "main.py", line 2, in <module>
import rimp
File "/home/runner/.local/lib/python3.6/site-packages/rimp/init.py", line 4, in <module>
from rimp.fetcher import collect_files
File "/home/runner/.local/lib/python3.6/site-packages/rimp/fetcher.py", 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 (904)

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

olafh10 (31)

Nice! I absolutely love it 👍

JerryTheMouse (3)

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

HappyFakeboulde (215)

Very good
Have an upvote

minx28 (166)

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 (904)

@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