A hacky project that lets you import repls from https://repl.it into your project
Project description
rimp
A hacky project that lets you import repls from https://repl.it into your project
How to install
pip install rimp
Wow, that was easy wasn't it?
How to use
There's only 1 command you'll need to know how to use, load_repl
.
load_repl(name: str
, project: str
, force_reinstall: bool
=False, verbose: bool
=True):
name: The name of the repl.it user you're installing from (eg. https://repl.it/@21natzil/Permissions)
project: The name of the repl you're installing (eg. https://repl.it/@21natzil/Permissions)
force_reinstall: If True, rimp will install the repl again, even if it's already downloaded
verbose: If False, it will not print anything to stdout with installation information
It's advised you checkout the test.py
file for examples of this being used. PLEASE NOTE, you can only import
repls with a proper setup.py
file. If you want an example on the most minimal setup.py
file you can make:
- See this link if you only wish to make files importable
- See this link if you wish to make a whole directory importable
From here, it's just a matter of figuring out what you must import, which depends on the repl you're installing and should look at those docs.
Things to note
- The
name
option in thesetup.py
is required but can be anything - Downloading huge repls is slow, but only needs to be done once, so only set force_reinstall to True when necessary.
- I have not tested on Mac, however it should work on Windows + Linux
- This project installs repls to a .rimp file in the current working directory.
Change Log
0.0.0 - Project Creation
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file rimp-0.0.4.tar.gz
.
File metadata
- Download URL: rimp-0.0.4.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6435ef8a71d295ecf9deb1c8039c4f5e4729afa58db04d09e1fa190ff38a1dee |
|
MD5 | 4195a18a82b06c15cf548e0c2fd85731 |
|
BLAKE2b-256 | 045815b3592785a8bf5b5d19dfb98bf75477860e545d2f6932daba8c0e46e239 |