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:

  • Python 3.5+
  • A GitHub Account
  • A GitHub Personal Access Token (How Do I Get Mine?) Make sure to give it Repo, User, and Delete Permissions
  • A repl.it Account

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, it simply uses the GitHub repo API repl.it offers.

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-from-cli 1.0.2

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-from-cli 1.0.2
File Size Uploaded
repl-from-cli-1.0.2.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for repl-from-cli 1.0.2
File Interpreter ABI Platform
repl_from_cli-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / repl-from-cli-1.0.2.tar.gz

Download URL repl-from-cli-1.0.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
964317424c50bb4ff5f1018e48f413321f8a17a8f8db109d5c0f6dbb797406b4
BLAKE2b-256 checksum
How to use checksums
5e0b73cb95acb8b5e37de0eefa0189e24aae3a7c485a86502ec1114f55fb2658
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/41.4.0 requests-toolbelt/0.8.0 tqdm/4.33.0 CPython/3.6.8

Release files / repl_from_cli-1.0.2-py3-none-any.whl

Download URL repl_from_cli-1.0.2-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bee05cfbc71e5fd60b60765df91b1f2727e180b95f4dea5497fa2165d9dda7b3
BLAKE2b-256 checksum
How to use checksums
5dd51f483ce7e25be6ab736284cf9e9def9e56a8a0fb3a3cb586d0a866f9f665
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/41.4.0 requests-toolbelt/0.8.0 tqdm/4.33.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

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