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
nameoption in thesetup.pyis 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
Metadata
Release files for rimp 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rimp-0.0.4.tar.gz | 2.1 kB | Without provenance | Details |
Release files / rimp-0.0.4.tar.gz
| Download URL | rimp-0.0.4.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6435ef8a71d295ecf9deb1c8039c4f5e4729afa58db04d09e1fa190ff38a1dee
|
|
BLAKE2b-256 checksum How to use checksums |
045815b3592785a8bf5b5d19dfb98bf75477860e545d2f6932daba8c0e46e239
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for rimp 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.