Git Product home page Git Product logo

twoxpy's Introduction

Twoxpy

A tiny Twitter REST API proxy with an unpronouncable name for Python 2 and Python 3.

Setup

pip install -r requirements.txt
vim .env
dotenv python app.py

Or to run the production env:

honcho start

(Or foreman if you prefer that over honcho.)

Example Environment

CONSUMER_KEY=my_key
CONSUMER_SECRET=my_secret
SECRET=cGLdIOw3ReC9WiZjHlOmiu7IbgmJoh9ab2yz+3HwTtMD6ebMqx3+20RsZD/HVum1Eg0=
DEBUG=True
DEFAULT_ORIGIN=http://localhost:9000
ACCOUNT_WHITELIST=horse_js,passy,sindresorhus

API

  • GET /login: Redirects to the user login
  • POST /logout
  • GET|POST /1.1/<path:endpoint>: Proxies the signed request

For more, just read the source, Luke. It's really not that much.

TODO

  • Get this working with Python3. OAuthlib seems to have one incorrect conversion to bytes. Sigh...

twoxpy's People

Contributors

passy avatar

Stargazers

Angus H. avatar Nazeeruddin Ikram avatar Marcos Sader avatar Jimmy Moon avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

twoxpy's Issues

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.