Skip to main content

Python API for interacting with devices from Samsung.

Project description

Python API for interacting with printers from Samsung. Mainly to get the details about the different media levels.

Installation

The module is available from the Python Package Index.

$ pip3 install samsung_print

Usage

import asyncio

import aiohttp

from samsung_print import Printer

IP_PRINTER = '192.168.1.200'


@asyncio.coroutine
def main():
    with aiohttp.ClientSession() as session:
        printer = Printer(IP_PRINTER, loop, session)
        yield from printer.async_get_data()

        print("Printer status:", printer.status('hrDeviceStatus'))


loop = asyncio.get_event_loop()
loop.run_until_complete(main())

The file example.py contains further options about how to use this module.

Supported printer

samsung_print was tested with the following printer:

  • C410W

Development

For development is recommended to use a venv.

$ python3.6 -m venv .
$ source bin/activate
$ python3 setup.py develop

License

samsung_print is licensed under MIT, for more details check LICENSE.

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

samsung_print-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file samsung_print-0.0.1.tar.gz.

File metadata

File hashes

Hashes for samsung_print-0.0.1.tar.gz
Algorithm Hash digest
SHA256 831da4d2ec0d340020a46dcf55ef77eee07533d6fb9ce265597e662286e009fc
MD5 51787245072a7e2c98d20aff39edf801
BLAKE2b-256 b48f4be54da1cacd307519fea6f7173f0221d93517eb34b212bd013dce013c9e

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