Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

User authentication with the ObjectRocket API.

Project Description
[![Circle CI](]( [![](]( [![Coverage Status](](

A Flask / Flask-RESTful extension implementing support for user authentication with the ObjectRocket API.

#### install
This package is distributed on pypi. You can install it via pip:
pip install flask-objectrocket

#### configuration & usage
Configure this extension as you would any other Flask extension:

from flask import Flask
from flask.ext.objectrocket import ObjectRocket

app = Flask(__name__)

# Initialize the extension with init_app.
objectrocket = ObjectRocket()

# Or initialize the extension directly.
objectrocket = ObjectRocket(app)

The following Flask configuration attributes are available for this extension:
# The ObjectRocket APIv2 URL (you should never have to change this).
# Bind the authenticated user object to flask.g.user for request duration.
# Cache the authenticated user's instances to flask.g.instances for request duration.

Now that the extension is initialized, use it with [Flask-RESTful](

from flask.ext.objectrocket import ObjectRocketResource

class MyResource(ObjectRocketResource):
"""All of this resource's handlers are now protected with ObjectRocket token authentication."""

def get(self):

def post(self):

If you are not using Flask-RESTful, you can also use the [objectrocket_authentication]( decorator and the [ObjectRocketUser]( class directly.

#### tests
`tox` should get you where you need to be. As of this writing, test coverage is at `100%`. It is a good idea to keep it that way.

#### license
Flask-ObjectRocket is distributed under MIT license, see `LICENSE` for more details.
Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Flask_ObjectRocket-0.2.1-py2.py3-none-any.whl (5.7 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Apr 6, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting