Giter VIP home page Giter VIP logo

bpython-gist's Introduction

bpython + clean code + gist integration

bpython-gist is a pastebin_helper extension for bpython

What you get:

  • Clean Code: the exported output can be run as a python script with no modification. Any output values and errors from the repl are preserved as comments.
  • Gist Integration: the export is uploaded to an anonymous gist, giving you the ability to star it, fork it, or embed it.

Screen-Shots

Your repl

bpython repl

The default behavior exports indentation guides and uses bpaste default behavior

The improved behavior removes indentation guides, comments out and annotates the output, then uploads the result as an anonymous gist

clean gist

Requirements

Installation

  1. Download gist.py, and add it to a location in your path.

  2. Open your bpython configuration file, or create one if it doesn't exist.

cd ~
mkdir .bpython; chdir .bpython
touch config
  1. Add the following entries to your config file
[general]
pastebin_helper=gist.py

You're done!

Additional Documentation

bpython-gist's People

Contributors

nnja avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

bpython-gist's Issues

XML-RPC protocol error

Hi! I'm getting an XML-RPC protocol error:
Pastebin error for URL 'gist.py': unsupported XML-RPC protocol
bpython -V 0.13.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.