surl

Ubuntu Store API thin wrapper
Installing
Or simply use the snap CLI:
$ 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!
Metadata
Release files for surl 0.7.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| surl-0.7.2.tar.gz | 11.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| surl-0.7.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.7 kB
Release files / surl-0.7.2.tar.gz
| Download URL | surl-0.7.2.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1418b8caa7ab2bc676723218ca3aa03f3015aa1963ed8fbab263b53c4c02ac6
|
|
BLAKE2b-256 checksum How to use checksums |
2e14d3d8314b6ff22e61f75f5086b43cadf4e25848fa8e16272f97df65d9eaad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.9
|
Release files / surl-0.7.2-py3-none-any.whl
| Download URL | surl-0.7.2-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e980de34f4ef4a5b9b3d008361d5c08a2bdd01abffaf98f588bc90692188302
|
|
BLAKE2b-256 checksum How to use checksums |
d42bd2230c61d3af56762c4601c606ecd999b4fc52c6070b1c084e32db1b66d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.9
|