项目作者: epiphan-video

项目描述 :
AV Studio API
高级语言: JavaScript
项目地址: git://github.com/epiphan-video/avstudio_api.git
创建时间: 2018-10-15T20:59:38Z
项目社区:https://github.com/epiphan-video/avstudio_api

开源协议:

下载


AV Studio API

This repo contains:

  • /avstudio: Python wrapper for AV Studio API
  • /docs: API reference
  • /device_api.ipynb: Python notebook with API tutorial
  • /device_api.html: static version of the tutorial (link)

Installation

  1. $ git clone https://github.com/epiphan-video/avstudio_api.git
  2. $ cd avstudio_api
  3. $ pip install -r requirements.txt

Running the interactive tutorial

Jupyter has to be installed.

  1. $ cd avstudio_api
  2. $ python -m notebook

Documentation

API documentation is available via Github Pages: https://epiphan-video.github.io/avstudio_api

How to update docs

Documentation source is stored in docs-source-slate folder.

1) Build a slate builder container (once):

  1. $ cd slate
  2. $ docker build -t slate-builder .

2) (optional) Start doc server:

  1. docker run -it --rm \
  2. -v $(pwd)/docs-source-slate/:/slate/source \
  3. -v $(pwd)/docs:/slate/build \
  4. -p 4567:4567 \
  5. slate-builder bundle exec middleman server

…and open http://localhost:4567/ in your browser.

3) When editing is done, use the container to build static docs:

  1. docker run -it --rm -v $(pwd)/docs-source-slate/:/slate/source -v $(pwd)/docs:/slate/build slate-builder

This command will update files in docs folder, if necessary.

3) git commit and push

Exporting notebook tutorial:

  1. jupyter nbconvert --to html --execute device_api.ipynb --ExecutePreprocessor.timeout=-1