File: examples.rst

package info (click to toggle)
python-oslo.context 5.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 416 kB
  • sloc: python: 1,098; makefile: 21; sh: 2
file content (37 lines) | stat: -rw-r--r-- 721 bytes parent folder | download | duplicates (4)
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
==========
 Examples
==========

.. _examples:

These files can be found in the doc/source/examples directory of
the git source of this project.  They can also be found at the
`online git repository`_ of this project.

.. _online git repository: https://opendev.org/openstack/oslo.context/src/branch/master/doc/source/user/examples


.. _example_usage_simple.py:

usage_simple.py
---------------

.. highlight:: python
.. literalinclude:: examples/usage_simple.py
   :linenos:

.. _example_usage.py:

usage.py
--------

.. literalinclude:: examples/usage.py
   :linenos:

.. _example_usage_user_identity.py:

usage_user_identity.py
----------------------

.. literalinclude:: examples/usage_user_identity.py
   :linenos: