Skip to main content

snap-python

snap-python provides an API client to interact with snapd

Click here to read the documentation

Installation

To install snap-python, you can use pip:

pip install snap-python

Usage

Here is a simple example of how to use snap-python:

# uses asyncio, must be run in an event loop
>>> import asyncio
>>> from snap_python.client import SnapClient
>>> sc = SnapClient()
>>> installed_snaps = asyncio.run(sc.snaps.list_installed_snaps())
>>> [snap.name for snap in installed_snaps.result]
[..., 'vlc', 'snapcraft', 'firefox', 'store-tui', 'gtk-common-themes', 'thunderbird', ...]

Get details for installed snap vlc

# uses asyncio, must be run in an event loop
>>> import asyncio
>>> from snap_python.client import SnapClient
>>> sc = SnapClient()
>>> vlc_snap = asyncio.run(sc.snaps.get_snap_info("vlc"))
>>> vlc_snap.result.version
'3.0.20-1-g2617de71b6'

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Metadata

Release files for snap-python 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snap-python 0.2.0
File Size Uploaded Provenance Actions
snap_python-0.2.0.tar.gz 36.6 kB Without provenance Details for snap_python-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for snap-python 0.2.0
File Interpreter ABI Platform Actions
snap_python-0.2.0-py3-none-any.whl Python 3 none any Details for snap_python-0.2.0-py3-none-any.whl

Total release size: 85.1 kB

Release files / snap_python-0.2.0.tar.gz

Download URL snap_python-0.2.0.tar.gz
Size 36.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7afd058256fff01bc24f8a8e3a5e2e8cc7e155d9a85acef10ac4a37f02fc2eff
BLAKE2b-256 checksum
How to use checksums
99a1b0a4ee28e1c2499497d7b235349d7bc3dc33fb9aaf3fdfe8add87f8e34ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.4 Linux/7.0.0-1019-azure

Release files / snap_python-0.2.0-py3-none-any.whl

Download URL snap_python-0.2.0-py3-none-any.whl
Size 48.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3877200e9681eae2f0295267ba1ef39ae7a67ef74c6d071f754c6b027796b24c
BLAKE2b-256 checksum
How to use checksums
e383c75badf97742e7567b6861e445e10bc67954d7261c57e6076a7a243b4f16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.4 Linux/7.0.0-1019-azure

Security for snap-python 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page