Skip to content

Commit 7d83188

Browse files
committed
add docs
1 parent 3936503 commit 7d83188

File tree

4 files changed

+102
-0
lines changed

4 files changed

+102
-0
lines changed

docs/getstarted.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Get Started
2+
===========
3+
4+
Flask-OAuthlib contains two parts, the client and the provider.
5+
At this moment, only the client part is finished.
6+
7+
8+
Client
9+
------
10+
11+
Client part is the same as Flask-OAuth, examples tells more.
12+
13+
Find the examples at https://github.com/lepture/flask-oauthlib/tree/master/example
14+
15+
16+
Provider
17+
--------
18+
19+
**NOT FINISHED**

docs/index.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ The client part of Flask-OAuthlib share the same API as Flask-OAuth,
1313
which is pretty and simple.
1414

1515

16+
Features
17+
--------
18+
19+
- Support for OAuth 1.0a, OAuth2
20+
- Friendly API (same with Flask-OAuth)
21+
- Direct integration with Flask
22+
- Basic support for remote method invocation of RESTful APIs
23+
- Client part finished
24+
25+
1626
User's Guide
1727
------------
1828

@@ -24,6 +34,8 @@ instructions for getting the most out of Flask-OAuthlib
2434
:maxdepth: 2
2535

2636
intro
37+
install
38+
getstarted
2739

2840

2941
API Documentation

docs/install.rst

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
.. _install:
2+
3+
Installation
4+
============
5+
6+
This part of the documentation covers the installation of Flask-OAuthlib.
7+
The first step to using any software package is getting it properly installed.
8+
9+
10+
Distribute & Pip
11+
----------------
12+
13+
Installing Flask-OAuthlib is simple with `pip <http://www.pip-installer.org/>`_::
14+
15+
$ pip install Flask-OAuthlib
16+
17+
or, with `easy_install <http://pypi.python.org/pypi/setuptools>`_::
18+
19+
$ easy_install Flask-OAuthlib
20+
21+
But, you really `shouldn't do that <http://www.pip-installer.org/en/latest/other-tools.html#pip-compared-to-easy-install>`_.
22+
23+
24+
25+
Cheeseshop Mirror
26+
-----------------
27+
28+
If the Cheeseshop is down, you can also install Flask-OAuthlib from one of the
29+
mirrors. `Crate.io <http://crate.io>`_ is one of them::
30+
31+
$ pip install -i http://simple.crate.io/ Flask-OAuthlib
32+
33+
34+
Get the Code
35+
------------
36+
37+
Flask-OAuthlib is actively developed on GitHub, where the code is
38+
`always available <https://github.com/lepture/flask-oauthlib>`_.
39+
40+
You can either clone the public repository::
41+
42+
git clone git://github.com/lepture/flask-oauthlib.git
43+
44+
Download the `tarball <https://github.com/lepture/flask-oauthlib/tarball/master>`_::
45+
46+
$ curl -OL https://github.com/lepture/flask-oauthlib/tarball/master
47+
48+
Or, download the `zipball <https://github.com/lepture/flask-oauthlib/zipball/master>`_::
49+
50+
$ curl -OL https://github.com/lepture/flask-oauthlib/zipball/master
51+
52+
53+
Once you have a copy of the source, you can embed it in your Python package,
54+
or install it into your site-packages easily::
55+
56+
$ python setup.py install

docs/intro.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@ Flask-OAuthlib is designed as a replacement for Flask-OAuth. It depends on
77
the oauthlib module.
88

99

10+
Why
11+
---
12+
13+
The original `Flask-OAuth`_ is lack of maintenance, and oauthlib_ is a
14+
promising replacement for oauth2.
15+
16+
.. _`Flask-OAuth`: http://pythonhosted.org/Flask-OAuth/
17+
.. _oauthlib: https://github.com/idan/oauthlib
18+
19+
There are lots of non-standard services that claim themself as oauth providers,
20+
but the API are always broken. When rewrite a oauth extension for flask,
21+
I do take them into consideration, Flask-OAuthlib does support those
22+
non-standard services.
23+
24+
1025
import this
1126
-----------
1227

0 commit comments

Comments
 (0)