https://github.com/passy/twoxpy
A super limited Twitter API OAuth signing proxy
https://github.com/passy/twoxpy
Last synced: about 1 year ago
JSON representation
A super limited Twitter API OAuth signing proxy
- Host: GitHub
- URL: https://github.com/passy/twoxpy
- Owner: passy
- License: bsd-3-clause
- Created: 2014-01-19T15:34:07.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-01T20:31:30.000Z (about 12 years ago)
- Last Synced: 2025-03-30T13:04:59.312Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 275 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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/`: 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...