Metadata-Version: 2.1
Name: cohen3
Version: 0.9.3
Summary: Cohen3 - DLNA/UPnP Media Server
Home-page: https://github.com/opacam/Cohen3/
License: MIT
Keywords: UPnP,DLNA,multimedia,gstreamer
Author: opacam
Author-email: canellestudi@gmail.com
Maintainer: opacam
Maintainer-email: canellestudi@gmail.com
Requires-Python: >=3.6,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Multimedia :: Sound/Audio
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Utilities
Provides-Extra: audio
Provides-Extra: dbus
Provides-Extra: dev
Provides-Extra: docs
Provides-Extra: elisa
Provides-Extra: feed
Provides-Extra: gstreamer
Provides-Extra: picasa
Provides-Extra: test
Provides-Extra: twitch
Provides-Extra: web
Provides-Extra: youtube
Requires-Dist: autobahn; extra == "web" or extra == "dev"
Requires-Dist: configobj (>=4.3)
Requires-Dist: dbus-python; extra == "dbus" or extra == "dev"
Requires-Dist: eventdispatcher (==1.9.4)
Requires-Dist: feedparser; extra == "feed"
Requires-Dist: flake8; extra == "test" or extra == "dev"
Requires-Dist: livestreamer; extra == "twitch"
Requires-Dist: lxml
Requires-Dist: nose-cov; extra == "test" or extra == "dev"
Requires-Dist: nose; extra == "test" or extra == "dev"
Requires-Dist: pycairo (>=1.17.1); extra == "gstreamer" or extra == "dev"
Requires-Dist: pygobject (>=3.30.0); extra == "gstreamer" or extra == "dev"
Requires-Dist: pylint (==2.1.1); extra == "test" or extra == "dev"
Requires-Dist: pyopenssl
Requires-Dist: python-coveralls (==2.9.1); extra == "test" or extra == "dev"
Requires-Dist: python-dateutil
Requires-Dist: recommonmark (>=0.4.0); extra == "docs" or extra == "dev"
Requires-Dist: service_identity (>=18.1.0,<19.0.0)
Requires-Dist: sphinx (>=1.3.5); extra == "docs" or extra == "dev"
Requires-Dist: sphinx-rtd-theme (>=0.1.9); extra == "docs" or extra == "dev"
Requires-Dist: sphinxcontrib-napoleon (>=0.4.4); extra == "docs" or extra == "dev"
Requires-Dist: twisted (>=20.3.0)
Requires-Dist: zope.interface
Project-URL: Bug Tracker, https://github.com/opacam/Cohen3/issues
Project-URL: Documentation, https://opacam.github.io/Cohen3/
Project-URL: Repository, https://github.com/opacam/Cohen3/
Description-Content-Type: text/x-rst

Cohen3
======

.. image:: https://travis-ci.com/opacam/Cohen3.svg?branch=master
        :target: https://travis-ci.com/opacam/Cohen3

.. image:: https://img.shields.io/pypi/status/Cohen3.svg
        :target: https://pypi.python.org/pypi/Cohen3/

.. image:: https://codecov.io/gh/opacam/Cohen3/branch/master/graph/badge.svg
        :target: https://codecov.io/gh/opacam/Cohen3
        :alt: PyPI version

.. image:: http://img.shields.io/pypi/v/Cohen3.svg?style=flat
        :target: https://pypi.python.org/pypi/Cohen3
        :alt: PyPI version

.. image:: https://img.shields.io/github/tag/opacam/Cohen3.svg
        :target: https://github.com/opacam/Cohen3/tags
        :alt: GitHub tag

.. image:: https://img.shields.io/github/release/opacam/Cohen3.svg
        :target: https://github.com/opacam/Cohen3/releases
        :alt: GitHub release

.. image:: http://hits.dwyl.io/opacam/Cohen3.svg
        :target: http://hits.dwyl.io/opacam/Cohen3

.. image:: https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat
        :target: https://github.com/opacam/Cohen3/issues

.. image:: https://img.shields.io/github/commits-since/opacam/Cohen3/latest.svg
        :target: https://github.com/opacam/Cohen3/commits/master
        :alt: Github commits (since latest release)

.. image:: https://img.shields.io/github/last-commit/opacam/Cohen3.svg
        :target: https://github.com/opacam/Cohen3/commits/master
        :alt: GitHub last commit

.. image:: https://img.shields.io/github/license/opacam/Cohen3.svg
        :target: https://github.com/opacam/Cohen3/blob/master/LICENSE

Overview
--------

**Dlna/UPnP framework**

|cohen-image|

**For the Digital Living**

Cohen3 Framework is a DLNA/UPnP Media Server for `Python 3`, based on the
`Python 2` version named `Cohen <https://github.com/unintended/Cohen>`_.
Provides several UPnP MediaServers and MediaRenderers to make simple publishing
and streaming different types of media content to your network.

Cohen3 is the Python 3's version of the
`Coherence Framework <https://github.com/coherence-project/Coherence>`_
project, originally created by
`Frank Scholz <mailto:dev@coherence-project.org>`_. If you ever used the
original Coherence project you could use Cohen3 like you do in the original
Coherence project.

- Documentation: https://opacam.github.io/Cohen3/
- GitHub: https://github.com/opacam/Cohen3
- Issue tracker: https://github.com/opacam/Cohen3/issues
- PyPI: https://pypi.python.org/pypi/cohen3
- Free software: MIT licence

.. |cohen-image| image:: coherence/web/static/images/coherence-icon.png
   :height: 12.5 em
   :width: 12.5 em

Features
--------
The original `Coherence Framework` were know to work with different kind of
dlna/UPnP clients and Cohen3 should also work for them:

    - Sony Playstation 3/4
    - XBox360/One
    - Denon AV Receivers
    - WD HD Live MediaPlayers
    - Samsung TVs
    - Sony Bravia TVs

And provides a lot of backends to fulfil your media streaming needs:

    - Local file storage
    - Apple Trailers
    - Lol Cats
    - ShoutCast Radio
    - and much more...

Project Status
--------------
Right now Cohen is in development mode. All the code has been refactored in
order to work for Python 3, moreover, some additions has been made to make
easier to create a custom Backend (check the
`coherence.backends.models <https://opacam.github.io/Cohen3/source/coherence.
backends.html#coherence-backends-models-package>`_ package documentation for
more information). The original Coherence project was unmaintained for a while
and some of the backends has become obsolete. You can see the backends status
in the below table.

.. list-table::
   :widths: 10 25 65
   :header-rows: 1

   * - Status
     - Backend Name
     - Description/Notes
   * - |question|
     - AmpacheStore
     -
   * - |success|
     - AppleTrailersStore
     -
   * - |question|
     - AudioCDStore
     -
   * - |question|
     - AxisCamStore
     -
   * - |question|
     - BansheeStore
     -
   * - |question|
     - BuzztardStore
     -
   * - |question|
     - DVBDStore
     -
   * - |question|
     - ElisaPlayer
     -
   * - |question|
     - ElisaMediaStore
     -
   * - |question|
     - FeedStore
     -
   * - |question|
     - FlickrStore
     -
   * - |success|
     - FSStore
     -
   * - |question|
     - Gallery2Store
     -
   * - |question|
     - GStreamerPlayer
     -
   * - |success|
     - IRadioStore (ShoutCast)
     -
   * - |question|
     - ITVStore
     -
   * - |fails|
     - LastFMStore
     - *service moved to new api...needs update*
   * - |success|
     - LolcatsStore
     -
   * - |question|
     - MediaStore
     -
   * - |fails|
     - MiroGuideStore
     - The miroguide's api is not working anymore :(
   * - |question|
     - PicasaStore
     - *Partially tested, may work until starting year 2019, where google will
       begin to shutdown this service, the source code should be rewrite using
       the api for the new service `Google Photos`*
   * - |success|
     - PlayListStore
     -
   * - |question|
     - RadiotimeStore
     -
   * - |question|
     - SWR3Store
     -
   * - |success|
     - TEDStore
     -
   * - |question|
     - TestStore
     -
   * - |question|
     - TrackerStore
     -
   * - |question|
     - TestStore
     -
   * - |fails|
     - TwitchStore
     - *Partially working, video play is not working*
   * - |question|
     - YamjStore
     -
   * - |fails|
     - YouTubeStore
     - *Google moved to new api...backend should be rewrite with new api in
       mind*

Notes:

    - Some of the listed backends it may be removed in a future releases...
      depending on if the target service is still available, dependencies of
      the backend, maintainability...keep in mind that the main goal of this
      project is to have a working media server/client capable of serve local
      files into a dlna/upnp network, all the backends are extra features which
      may be handy for some end-users and also may be useful as a reference of
      how to make your own backend using the Cohen3's modules.

.. |success| image:: misc/other-icons/checked.png
   :align: middle
   :height: 5
   :width: 5

.. |fails| image:: misc/other-icons/cross.png
   :align: middle
   :height: 5
   :width: 5

.. |question| image:: misc/other-icons/question.png
   :align: middle
   :height: 5
   :width: 5

Installation with pip
---------------------
If you want to install with pip, first make sure that the `pip` command
triggers the python3 version of python or use `pip3` instead. You can install
the `Cohen3` python package from `pypi` or github

To install from pypi:
^^^^^^^^^^^^^^^^^^^^^

  $ pip3 install --user Cohen3

To install from git:
^^^^^^^^^^^^^^^^^^^^

  $ pip3 install --user https://github.com/opacam/Cohen3/archive/master.zip

.. note::
    - An user install is recommended or use an virtualenv

.. tip::
      If you encounter problems while installing, caused by some dependency,
      you may try to bypass this error by installing the conflicting dependency
      before `Cohen3`, so if you face an error like this for `Twisted`:

        ERROR: Could not find a version that satisfies the requirement
        Twisted>=19.2.1 (from Cohen3) (from versions: none)

      You should be able to fix it installing Twisted before the install of
      `Cohen3`:

        pip3 install --upgrade --user Twisted

Install from source with `poetry`
---------------------------------
After downloading and extracting the archive or having done a git
clone, move into the freshly created 'Cohen3' folder and install
all dependencies (dev included) with `poetry`, but first upgrade `pip`::

  $ pip3 install pip --upgrade
  $ pip3 install poetry
  $ poetry install

Personalized install from source with `pip`
-------------------------------------------
Also, you can perform a personalized install using `pip`. This will allow you
to install only certain dependencies, if you want the basic dependencies to run
the project::

  $ pip install .

If you want to install Cohen3 with development dependencies::

  $ pip install .[dev]

Note: Here you have all supported install modes:

    - dev: all the dependencies will be installed except docs
    - test: used by travis builds (omits dbus and docs)
    - docs: install build dependencies to generate docs
    - dbus: install dependencies needed by tube service or dvbd storage
    - gstreamer: needed if you use GStreamerPlayer
    - picasa: needed by the picasa storage
    - youtube: needed by the youtube backend

Quickstart
----------
To just export some files on your hard-disk fire up Cohen with
an UPnP MediaServer with a file-system backend enabled::

  $ cohen3 --plugin=backend:FSStore,content:/path/to/your/media/files

You can also configure cohen via a config file. Feel free to check our example
``misc/cohen.conf.example``. The config file can be placed anywhere, cohen
looks by default for ``$HOME/.cohen``, but you can pass the path via the
command line option '-c' to it too::

  $ cohen3 -c /path/to/config/file

For developers
--------------
Starting from version 0.9.0 the event system has changed from louie/dispatcher
to EventDispatcher (external dependency). Here are the most important changes:

    - The new event system is not a global dispatcher anymore
    - All the signal/receivers are connected between them only if it is
      necessary.
    - We don't connect/disconnect anymore, instead we will bind/unbind.
    - The events has been renamed (this is necessary because the old event
      names contains dots in his names, and this could cause troubles with the
      new event system)

Please, check the documentation for further details at
`"The events system" <https://opacam.github.io/Cohen3/events.html>`_ section.

Contributing
------------
Report bugs at https://github.com/opacam/Cohen3/issues

Feel free to fetch the repo and send your
`pull requests! <https://github.com/opacam/Cohen3/pulls>`_

