Snapd.Snap¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Apps this snap contains |
||
r/w/co |
Base snap this snap uses |
||
r/w/co |
Error string if snap is broken |
||
r/w/co |
Categories this snap belongs to |
||
r/w/co |
Channel the snap is from |
||
r/w/co |
Channels this snap is available on |
||
[ |
r/w/co |
Common IDs |
|
r/w/co |
Confinement requested by the snap |
||
r/w/co |
Method of contacting developer |
||
r/w/co |
Description of the snap |
||
d/r/w/co |
Developer who created the snap |
||
r/w/co |
|
||
r/w/co |
Download size in bytes |
||
r/w/co |
Date this snap will re-enable automatic refreshing |
||
r/w/co |
URL to the snap icon |
||
r/w/co |
Unique ID for this snap |
||
r/w/co |
Date this snap was installed |
||
r/w/co |
Installed size in bytes |
||
r/w/co |
|
||
r/w/co |
The snap license as an SPDX expression |
||
r/w/co |
Media associated with this snap |
||
r/w/co |
Path snap is mounted from |
||
r/w/co |
The snap name |
||
r/w/co |
Prices this snap can be purchased for |
||
r/w/co |
|
||
r/w/co |
Display name for snap publisher |
||
r/w/co |
ID for snap publisher |
||
r/w/co |
Username for snap publisher |
||
r/w/co |
Validation for snap publisher |
||
r/w/co |
Revision of this snap |
||
r/w/co |
Screenshots of this snap |
||
r/w/co |
Snap type |
||
r/w/co |
State of this snap |
||
r/w/co |
Web store URL |
||
r/w/co |
One line description |
||
r/w/co |
The snap title |
||
r/w/co |
Channel the snap is currently tracking |
||
[ |
r/w/co |
Track names |
|
r/w/co |
|
||
r/w/co |
Snap version |
||
r/w/co |
Website of developer |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Snapd.Snap(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Snapd.Snap
contains Snap metadata.New in version 1.0.
- get_apps()¶
-
Get the apps this snap provides.
New in version 1.0.
- get_base()¶
-
Get the base snap this snap uses.
New in version 1.45.
- get_broken()¶
-
Get the reason this snap is broken.
New in version 1.25.
- get_categories()¶
- Returns:
an array of
Snapd.Category
.- Return type:
Gets the categories this snap belongs to.
New in version 1.64.
- get_channel()¶
- Returns:
a channel name.
- Return type:
Get the channel this snap is from, e.g. “stable”.
New in version 1.0.
- get_channels()¶
- Returns:
an array of
Snapd.Channel
.- Return type:
Gets the available channels for this snap.
New in version 1.22.
- get_common_ids()¶
- Returns:
an array of common ids.
- Return type:
[
str
]
Get common IDs associated with this snap.
New in version 1.41.
- get_confinement()¶
- Returns:
- Return type:
Get the confinement this snap is using, e.g.
Snapd.Confinement.STRICT
.New in version 1.0.
- get_contact()¶
- Returns:
a contact URL.
- Return type:
Get the means of contacting the snap developer, e.g. “mailto:developer`example`.com”.
New in version 1.13.
- get_description()¶
- Returns:
description text.
- Return type:
Get a multi-line description of this snap. The description is formatted using a subset of Markdown. To parse this use a
Snapd.MarkdownParser
.New in version 1.0.
- get_developer()¶
- Returns:
a developer name.
- Return type:
Get the developer who created this snap.
New in version 1.0.
Deprecated since version 1.42: Use
Snapd.Snap.get_publisher_username
()
- get_devmode()¶
-
Get if this snap is running in developer mode.
New in version 1.0.
- get_download_size()¶
- Returns:
a byte count.
- Return type:
Get the download size of this snap or 0 if unknown.
New in version 1.0.
- get_hold()¶
- Returns:
a
GLib.DateTime
orNone
.- Return type:
Get the date this snap will re-enable automatic refreshing or
None
if no hold is present.New in version 1.64.
- get_icon()¶
- Returns:
a URL or path.
- Return type:
Get the icon for this Snap, either a URL or an absolute path to retrieve it from snapd directly.
New in version 1.0.
- get_install_date()¶
- Returns:
a
GLib.DateTime
orNone
.- Return type:
Get the date this snap was installed or
None
if unknown.New in version 1.0.
- get_installed_size()¶
- Returns:
a byte count.
- Return type:
Get the installed size of this snap or 0 if unknown.
New in version 1.0.
- get_jailmode()¶
-
Get if this snap is running in enforced confinement (jail) mode.
New in version 1.8.
- get_license()¶
-
Gets the SPDX license expression for this snap, e.g. “GPL-3.0+”.
New in version 1.19.
- get_media()¶
- Returns:
an array of
Snapd.Media
.- Return type:
Get media that is associated with this snap.
New in version 1.45.
- get_mounted_from()¶
-
Gets the path this snap is mounted from, which is a .snap file for installed snaps and a directory for snaps in try mode.
New in version 1.45.
- get_name()¶
- Returns:
a name.
- Return type:
Get the name of this snap. This is used to reference this snap, e.g. for installing / removing.
New in version 1.0.
- get_prices()¶
- Returns:
an array of
Snapd.Price
.- Return type:
Get the prices that this snap can be purchased at.
New in version 1.0.
- get_private()¶
-
Get if this snap is only available to the developer.
New in version 1.0.
- get_publisher_display_name()¶
- Returns:
a publisher display name.
- Return type:
Get the display name of the publisher who created this snap.
New in version 1.42.
- get_publisher_id()¶
- Returns:
a publisher ID.
- Return type:
Get the ID of the publisher who created this snap.
New in version 1.42.
- get_publisher_username()¶
- Returns:
a publisher username.
- Return type:
Get the username of the publisher who created this snap.
New in version 1.42.
- get_publisher_validation()¶
- Returns:
- Return type:
Get the validation for the snap publisher, e.g.
Snapd.PublisherValidation.VERIFIED
New in version 1.42.
- get_revision()¶
- Returns:
a revision string.
- Return type:
Get the revision for this snap. The format of the string is undefined. See also
Snapd.Snap.get_version
().New in version 1.0.
- get_screenshots()¶
- Returns:
an array of
Snapd.Screenshot
.- Return type:
Get the screenshots that are available for this snap.
New in version 1.0.
Deprecated since version 1.45: Use
Snapd.Snap.get_media
()
- get_snap_type()¶
- Returns:
- Return type:
Get the type of snap, e.g.
Snapd.SnapType.APP
New in version 1.0.
- get_status()¶
- Returns:
- Return type:
Get the current status of this snap, e.g.
Snapd.SnapStatus.INSTALLED
.New in version 1.0.
- get_store_url()¶
-
Get a URL to the web snap store, e.g. “https://snapcraft.io/example”
New in version 1.60.
- get_summary()¶
- Returns:
a summary string.
- Return type:
Get a single line summary for this snap, e.g. “Best app ever!”.
New in version 1.0.
- get_title()¶
-
Get the title for this snap. If not available use the snap name instead.
New in version 1.14.
- get_tracking_channel()¶
- Returns:
a channel name.
- Return type:
Get the channel that updates will be installed from, e.g. “stable”.
New in version 1.7.
- get_tracks()¶
- Returns:
an ordered array of track names.
- Return type:
[
str
]
Get the tracks that are available.
New in version 1.22.
- get_trymode()¶
-
Get if this snap is running in try mode (installed locally and able to be directly modified).
New in version 1.0.
- get_version()¶
- Returns:
a version string.
- Return type:
Get the version for this snap. The format of the string is undefined. See also
Snapd.Snap.get_revision
().New in version 1.0.
- get_website()¶
- Returns:
a website URL.
- Return type:
Get the website of the snap developer, e.g. “http://example.com”.
New in version 1.50.
- match_channel(name)¶
- Parameters:
name (
str
) – a channel name.- Returns:
an
Snapd.Channel
orNone
.- Return type:
Finds the available channel that best matches the given name. If none matches
None
is returned.New in version 1.22.
Property Details¶
- Snapd.Snap.props.apps¶
- Name:
apps
- Type:
- Default Value:
- Flags:
Apps this snap contains
- Snapd.Snap.props.base¶
- Name:
base
- Type:
- Default Value:
- Flags:
Base snap this snap uses
- Snapd.Snap.props.broken¶
- Name:
broken
- Type:
- Default Value:
- Flags:
Error string if snap is broken
- Snapd.Snap.props.categories¶
- Name:
categories
- Type:
- Default Value:
- Flags:
Categories this snap belongs to
- Snapd.Snap.props.channel¶
- Name:
channel
- Type:
- Default Value:
- Flags:
Channel the snap is from
- Snapd.Snap.props.channels¶
- Name:
channels
- Type:
- Default Value:
- Flags:
Channels this snap is available on
- Snapd.Snap.props.confinement¶
- Name:
confinement
- Type:
- Default Value:
- Flags:
Confinement requested by the snap
- Snapd.Snap.props.contact¶
- Name:
contact
- Type:
- Default Value:
- Flags:
Method of contacting developer
- Snapd.Snap.props.description¶
- Name:
description
- Type:
- Default Value:
- Flags:
Description of the snap
- Snapd.Snap.props.developer¶
- Name:
developer
- Type:
- Default Value:
- Flags:
Developer who created the snap
Deprecated since version ???.
- Snapd.Snap.props.devmode¶
- Name:
devmode
- Type:
- Default Value:
- Flags:
True
if the snap is currently installed in devmode
- Snapd.Snap.props.download_size¶
- Name:
download-size
- Type:
- Default Value:
0
- Flags:
Download size in bytes
- Snapd.Snap.props.hold¶
- Name:
hold
- Type:
- Default Value:
- Flags:
Date this snap will re-enable automatic refreshing
- Snapd.Snap.props.icon¶
- Name:
icon
- Type:
- Default Value:
- Flags:
URL to the snap icon
- Snapd.Snap.props.id¶
- Name:
id
- Type:
- Default Value:
- Flags:
Unique ID for this snap
- Snapd.Snap.props.install_date¶
- Name:
install-date
- Type:
- Default Value:
- Flags:
Date this snap was installed
- Snapd.Snap.props.installed_size¶
- Name:
installed-size
- Type:
- Default Value:
0
- Flags:
Installed size in bytes
- Snapd.Snap.props.jailmode¶
- Name:
jailmode
- Type:
- Default Value:
- Flags:
True
if the snap is currently installed in jailmode
- Snapd.Snap.props.license¶
- Name:
license
- Type:
- Default Value:
- Flags:
The snap license as an SPDX expression
- Snapd.Snap.props.media¶
- Name:
media
- Type:
- Default Value:
- Flags:
Media associated with this snap
- Snapd.Snap.props.mounted_from¶
- Name:
mounted-from
- Type:
- Default Value:
- Flags:
Path snap is mounted from
- Snapd.Snap.props.name¶
- Name:
name
- Type:
- Default Value:
- Flags:
The snap name
- Snapd.Snap.props.prices¶
- Name:
prices
- Type:
- Default Value:
- Flags:
Prices this snap can be purchased for
- Snapd.Snap.props.private¶
- Name:
private
- Type:
- Default Value:
- Flags:
True
if this snap is only available to its author
- Snapd.Snap.props.publisher_display_name¶
- Name:
publisher-display-name
- Type:
- Default Value:
- Flags:
Display name for snap publisher
- Snapd.Snap.props.publisher_id¶
- Name:
publisher-id
- Type:
- Default Value:
- Flags:
ID for snap publisher
- Snapd.Snap.props.publisher_username¶
- Name:
publisher-username
- Type:
- Default Value:
- Flags:
Username for snap publisher
- Snapd.Snap.props.publisher_validation¶
- Name:
publisher-validation
- Type:
- Default Value:
- Flags:
Validation for snap publisher
- Snapd.Snap.props.revision¶
- Name:
revision
- Type:
- Default Value:
- Flags:
Revision of this snap
- Snapd.Snap.props.screenshots¶
- Name:
screenshots
- Type:
- Default Value:
- Flags:
Screenshots of this snap
- Snapd.Snap.props.snap_type¶
- Name:
snap-type
- Type:
- Default Value:
- Flags:
Snap type
- Snapd.Snap.props.status¶
- Name:
status
- Type:
- Default Value:
- Flags:
State of this snap
- Snapd.Snap.props.store_url¶
- Name:
store-url
- Type:
- Default Value:
- Flags:
Web store URL
- Snapd.Snap.props.summary¶
- Name:
summary
- Type:
- Default Value:
- Flags:
One line description
- Snapd.Snap.props.title¶
- Name:
title
- Type:
- Default Value:
- Flags:
The snap title
- Snapd.Snap.props.tracking_channel¶
- Name:
tracking-channel
- Type:
- Default Value:
- Flags:
Channel the snap is currently tracking
- Snapd.Snap.props.trymode¶
- Name:
trymode
- Type:
- Default Value:
- Flags:
True
if this snap is installed in try mode
- Snapd.Snap.props.version¶
- Name:
version
- Type:
- Default Value:
- Flags:
Snap version