__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
********************
Command-line scripts
********************
Launchpad includes one command-line script to make Launchpad
integration easier for third-party libraries that aren't written in
Python.
This file tests the workflow underlying the command-line script as
best it can.
RequestTokenApp
===============
This class is called by the command-line script
launchpad-request-token. It creates a request token on a given
Launchpad installation, and returns a JSON description of the request
token and the available access levels.
>>> import json
>>> from launchpadlib.apps import RequestTokenApp
>>> web_root = "http://launchpad.test:8085/"
>>> consumer_name = "consumer"
>>> token_app = RequestTokenApp(web_root, consumer_name, "context")
>>> token_json = json.loads(token_app.run())
>>> for param in sorted(token_json.keys()):
... print(param)
access_levels
lp.context
oauth_token
oauth_token_consumer
oauth_token_secret
>>> print(token_json['lp.context'])
context
>>> print(token_json['oauth_token_consumer'])
consumer
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| files | Folder | 0755 |
|
|
| CONTRIBUTING.rst | File | 1.27 KB | 0644 |
|
| Makefile | File | 609 B | 0644 |
|
| command-line.rst | File | 1.08 KB | 0644 |
|
| conf.py.gz | File | 2.12 KB | 0644 |
|
| hosted-files.rst | File | 2.9 KB | 0644 |
|
| index.rst | File | 917 B | 0644 |
|
| introduction.rst.gz | File | 3.57 KB | 0644 |
|
| operations.rst | File | 858 B | 0644 |
|
| people.rst.gz | File | 2.01 KB | 0644 |
|
| toplevel.rst | File | 3.28 KB | 0644 |
|