Giter Club home page Giter Club logo

chromecast-api's Introduction

Chromecast API

HitCount Python application GitHub stars GitHub forks GitHub contributors GitHub license Open Source Love

📺 Chromecast API within your local network

API Endpoint | API Documentation | Swagger UI


Animation


Motivation

The idea of this project was to play a bit with the awesome PyChromecast Python library and move its functionalities to a the black box concept of an API.

Currently the implemented API, at port 8321, is able to list all the available devices within the local network and cast a source given the device name and a URL with some media. Optionally, you can set source_url=random for being surprised with one of the gallery videos.

http://localhost:8321/play?source=CHROMECAST_NAME&source_url=random

Apart from its functionality, an API documentation (using ReDoc) and the typical Swagger UI are available at the following URLs.


API Documentation Swagger UI


Requirements

  1. Python 3.7+

Recommendations

Usage of virtualenv is recommended for package library / runtime isolation.

Usage

To run the API, please execute the following commands from the root directory:

  1. Setup virtual environment

  2. Install dependencies

    pip3 install -r requirements.lock
  3. Run the server as a uWSGI server with the given bash script

    ./run.sh

    or as a Python module

    python3 -m src

Authors

License

MIT © Chromecast API

chromecast-api's People

Contributors

albertsuarez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

oromanos vicantec

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.