File: install.rst

package info (click to toggle)
python-authlib 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,016 kB
  • sloc: python: 26,998; makefile: 53; sh: 14
file content (79 lines) | stat: -rw-r--r-- 1,849 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.. _install:

Installation
============

.. meta::
    :description: How to install Authlib with pip, source code, etc.

This part of the documentation covers the installation of Authlib, just
like any other software package needs to be installed first.


$ pip install Authlib
---------------------


Installing Authlib is simple with `pip <http://www.pip-installer.org/>`_::

    $ pip install Authlib

It will also install the dependencies:

- cryptography

.. note::
    You may enter problems when installing cryptography, check its official
    document at https://cryptography.io/en/latest/installation/

Using Authlib with requests::

    $ pip install Authlib requests

Using Authlib with httpx::

    $ pip install Authlib httpx

Using Authlib with Flask::

    $ pip install Authlib Flask

Using Authlib with Django::

    $ pip install Authlib Django

Using Authlib with Starlette::

    $ pip install Authlib httpx Starlette

.. versionchanged:: v0.12

    "requests" is an optional dependency since v0.12. If you want to use
    Authlib client, you have to install "requests" by yourself::

    $ pip install Authlib requests

Get the Source Code
-------------------

Authlib is actively developed on GitHub, where the code is
`always available <https://github.com/authlib/authlib>`_.

You can either clone the public repository::

    $ git clone git://github.com/authlib/authlib.git

Download the `tarball <https://github.com/authlib/authlib/tarball/main>`_::

    $ curl -OL https://github.com/authlib/authlib/tarball/main

Or, download the `zipball <https://github.com/authlib/authlib/zipball/main>`_::

    $ curl -OL https://github.com/authlib/authlib/zipball/main


Once you have a copy of the source, you can embed it in your Python package,
or install it into your site-packages easily::

    $ cd authlib
    $ pip install .