Skip to main content

Ubuntu Store API thin wrapper.

Project description

surl Build Status Snap Status

Ubuntu Store API thin wrapper

Installing

Get it from the Snap Store

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

surl-0.7.2.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

surl-0.7.2-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file surl-0.7.2.tar.gz.

File metadata

  • Download URL: surl-0.7.2.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for surl-0.7.2.tar.gz
Algorithm Hash digest
SHA256 d1418b8caa7ab2bc676723218ca3aa03f3015aa1963ed8fbab263b53c4c02ac6
MD5 8baf191cdde3e064dd618d4b5dcf1283
BLAKE2b-256 2e14d3d8314b6ff22e61f75f5086b43cadf4e25848fa8e16272f97df65d9eaad

See more details on using hashes here.

File details

Details for the file surl-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: surl-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for surl-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e980de34f4ef4a5b9b3d008361d5c08a2bdd01abffaf98f588bc90692188302
MD5 d95eff33bb398fc6933ae4b8dc35c620
BLAKE2b-256 d42bd2230c61d3af56762c4601c606ecd999b4fc52c6070b1c084e32db1b66d3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page