Ubuntu Store API thin wrapper.
Project description
surl
Ubuntu Store API thin wrapper
Installing
Use snap
:
$ snap install surl [--edge]
Usage
Verifying credentials:
$ surl -e celso.providelo@canonical.com -s staging
Password for celso.providelo@canonical.com:
2FA (if enabled): ******
{"account": ..., "allowed": true, "permissions": ["package_access"], "channels": ["edge"]}
Storing authorization:
$ surl -e celso.providelo@canonical.com -s staging \
-p package_access -p package_register -a stg-reg
Password for celso.providelo@canonical.com: ****
Second-factor auth for staging: ****
...
Using stored authorizations:
$ surl -a stg-reg | jq .
{
"account": {
"openid": "******",
"verified": true,
"displayname": "Celso Providelo",
"email": "celso.providelo@canonical.com"
},
"last_auth": "2016-08-11T19:12:42.034584",
"refresh_required": false,
"allowed": true,
"permissions": [
"package_access",
"package_register"
]
}
Registering a snap name in staging:
$ surl -a stg-reg -d'{"snap_name": "surl"}' \
https://dashboard.staging.snapcraft.io/dev/api/register-name/
{"snap_id": "wKFeK2U7Y2CB53vRJwg9MeR9bqfPvtZK"}
Happy hacking!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
surl-0.7-py3-none-any.whl
(9.6 kB
view details)
File details
Details for the file surl-0.7-py3-none-any.whl
.
File metadata
- Download URL: surl-0.7-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9641c717320cae869be7aa08f4db025d596d9198f77507b7523079bf57d35bf5 |
|
MD5 | 960bc3fe8f02d17e4ddd821a956271c3 |
|
BLAKE2b-256 | 4347b680bc30e8070a644bbea95fd975544513c1428cdaa61df2389951201bce |