Skip to main content

Screenly OSE API Client

image image

Library to enable control of Screenly OSE digital signage via REST API.

  • Free software: MIT license

Sample Usage

import asyncio
import aiohttp
import screenly_ose

async def run():
    async with aiohttp.ClientSession() as session:
        screenly = screenly_ose.Screenly(session, '192.168.1.112')
        asset = await screenly.get_current_asset()
        print(asset)

asyncio.run(run())

API

Constructor

  • Screenly(websession, hostname, port=80, encryption=False, timeout=None)

    Creates a new connection to a Screenly OSE instance running on the given hostname and port.

Methods

All instance methods return False in the event of a request error.

  • get_current_asset()

    Returns a dict containing the following info about the asset currently being displayed:

    • id The asset ID
    • name The asset name
    • type The asset type
  • next_asset()

    Requests Screenly to display the next asset in the sequence.

  • previous_asset()

    Requests Screenly to display the previous asset in the sequence.

  • switch_asset(asset_id)

    Requests Screenly to display the asset with the given ID string.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Metadata

Release files for screenly-ose 0.0.4

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

Source distribution (sdist)

Source distribution for screenly-ose 0.0.4
File Size Uploaded Provenance
screenly_ose-0.0.4.tar.gz 6.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for screenly-ose 0.0.4
File Interpreter ABI Platform
screenly_ose-0.0.4-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 11.5 kB

Release files / screenly_ose-0.0.4.tar.gz

Download URL screenly_ose-0.0.4.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4e276aaa6b5ff48ae5033367f8ed0d1d90fe9fc3b92ca63d269d5661113e501f
BLAKE2b-256 checksum
How to use checksums
585b36dc4fa5739197561703ece53dbf893a9508bac939313018c66f77d4ba71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1

Release files / screenly_ose-0.0.4-py2.py3-none-any.whl

Download URL screenly_ose-0.0.4-py2.py3-none-any.whl
Size 5.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0d1381e2e8ad89404f943e8e690bfd20157636c77cc15aecbb3faae2da149da4
BLAKE2b-256 checksum
How to use checksums
7fd80ef26919a67f72bb84ec3e43d8c6124fbcbb9c5e32bac5bd643d7cdc601c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1

Security for screenly-ose 0.0.4

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