Skip to main content

repl-from-cli

A new way to get your source code onto Repl with one command.

What is repl-from-cli?

Repl-from-cli allows you to upload your source code to a temporary GitHub repository and then allows you to clone it to repl.it and either delete or save the repo on your GitHub. You basically get to hit 2 birds with 1 stone.

How does it work?

This tool uses the GitHub API through PyGithub and the git command line tool. It uses a Python program to create and pull repositories on GitHub to your local directory, push to remote, pull to repl.it, and then either delete the repo, or save it! You'll need a few things to get started.

Requirements:

Getting Started

To start, first make sure you have git the command line tool installed. If you are using GitHub you most likely have it installed but if you don't find out how here.

Either Run:

pip3 install repl_from_cli

or

# After pulling this repo and going into the directory:
python3 setup.py install

To install the repl-from-cli command.

The tool pulls from ~/.replitcli/config for configuration values. To change your GitHub token remove the config file there. This will run the startup wizard again and allow you setup your config.

Usage

Run repl-from-cli inside any directory you'd like to upload to repl.it. It will make sure you are logged into repl before creating the repository. After it creates the repo on your github it will create a local git repo in the directory and push to the GitHub repo. If you want to hide files you should make a .gitignore prior to running this command. Also if it already has a GitHub repo simply use the URL API repl.it provides (ex. https://repl.it/github/<Username>/<Repo Name>).

The tool will open up repl.it in your default browser. Make sure you are logged into repl.it on it.

Release files for repl-run-cli 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for repl-run-cli 1.0.1
File Size Uploaded
repl-run-cli-1.0.1.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for repl-run-cli 1.0.1
File Interpreter ABI Platform
repl_run_cli-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / repl-run-cli-1.0.1.tar.gz

Download URL repl-run-cli-1.0.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4a718530df62c15dd65cac09e365c7eba06c515f5668f25466e7a64757e4729d
BLAKE2b-256 checksum
How to use checksums
45a5c9fcdc7bdcd3a24bd11b6a5289f8a57bc2c240230d449f7db9ff2bb547be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.33.0 CPython/3.6.8

Release files / repl_run_cli-1.0.1-py3-none-any.whl

Download URL repl_run_cli-1.0.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ef3ead7cd1f32958e5df8a40f0317ae3bcd370d6c34e795d0f3f9dfc3c0b1c5
BLAKE2b-256 checksum
How to use checksums
c6fb21192e965d2d3e8b5333d3e7a13edb62c54cc815aee12871271b3cff456e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.33.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page