Skip to main content

Generate GitHub and Repl.it Repos with One Command

Project description

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repl-from-cli-1.0.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

repl_from_cli-1.0.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file repl-from-cli-1.0.2.tar.gz.

File metadata

  • Download URL: repl-from-cli-1.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for repl-from-cli-1.0.2.tar.gz
Algorithm Hash digest
SHA256 964317424c50bb4ff5f1018e48f413321f8a17a8f8db109d5c0f6dbb797406b4
MD5 1306b3bd404e6461667badc67f18bfc3
BLAKE2b-256 5e0b73cb95acb8b5e37de0eefa0189e24aae3a7c485a86502ec1114f55fb2658

See more details on using hashes here.

File details

Details for the file repl_from_cli-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: repl_from_cli-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for repl_from_cli-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bee05cfbc71e5fd60b60765df91b1f2727e180b95f4dea5497fa2165d9dda7b3
MD5 5c6e492223dcc3d46bff191665a8c0f2
BLAKE2b-256 5dd51f483ce7e25be6ab736284cf9e9def9e56a8a0fb3a3cb586d0a866f9f665

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page