File: cli.rst

package info (click to toggle)
python-ssdpy 0.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 272 kB
  • sloc: python: 844; makefile: 29
file content (20 lines) | stat: -rw-r--r-- 505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.. currentmodule:: ssdpy

======================
Command Line Interface
======================

SSDPy bundles two scripts - ``ssdpy-server`` and ``ssdpy-discover``. These can be used
to interact with SSDP without writing a single line of code.

SSDP Discovery
==============

The ``ssdpy-discover`` command sends SSDP ``DISCOVER`` packets, listens for responses,
and prints the result.

To search for all available services, use the ``ssdp:all`` target:

.. code-block:: sh

    $ ssdpy-discover ssdp:all