<commit_before>===============================
Clarify Brightcove Sync Tool
===============================

Automatically send your Brightcove data to Clarify.

This is a simple tool for sending the content of a Brightcove (http://www.brightcove.com) video library to Clarify (http://clarify.io), including the media and metadata.

The Clarify API analyzes media for words spoken and makes it searchable. It can also automatically generate extra metadata such as keywords and topics.

Running the sync tool will compare the contents of your Brightcove library and your Clarify account app. Any new videos will be added as a new bundle in Clarify, with the media and metadata from Brightcove. Videos that have been updated in Brightcove since the last sync will have their corresponding bundle metadata updated in Clarify. Any bundles that no longer have a corresponding video will be deleted (after prompting the user to confirm the delete.)

This script does not modify content in Brightcove so does NOT require Brightcove API write access.

* If you have a very large or rapidly changing video library, see `Limitations`_ below.
* Free software: MIT license

Installing
----------

This script requires Python 3.4 or above. Make sure the pip you are running corresponds to Python 3.x and not Python 2.x.

.. code-block:: bash

   $ pip install clarify_brightcove_sync

You may need to use sudo if you don't have permission to install. If you are upgrading from an older version, use the --upgrade flag.


Quickstart Guide
----------------

You must configure the authentication credentials for your Brightcove and Clarify accounts.

Brightcove Credentials
^^^^^^^^^^^^^^^^^^^^^^

To get Brightcove API credentials:

* Log in to https://studio.brightcove.com
* In the ``ADMIN`` menu, choose ``API Authentication``
* Click ``Register New Application`` button<commit_msg>Added travis build status to readme.<commit_after>.. image:: https://travis-ci.org/Clarify/clarify_brightcove_sync.svg
   :target: https://travis-ci.org/Clarify/clarify_brightcove_sync

===============================
Clarify Brightcove Sync Tool
===============================

Automatically send your Brightcove data to Clarify.

This is a simple tool for sending the content of a Brightcove (http://www.brightcove.com) video library to Clarify (http://clarify.io), including the media and metadata.

The Clarify API analyzes media for words spoken and makes it searchable. It can also automatically generate extra metadata such as keywords and topics.

Running the sync tool will compare the contents of your Brightcove library and your Clarify account app. Any new videos will be added as a new bundle in Clarify, with the media and metadata from Brightcove. Videos that have been updated in Brightcove since the last sync will have their corresponding bundle metadata updated in Clarify. Any bundles that no longer have a corresponding video will be deleted (after prompting the user to confirm the delete.)

This script does not modify content in Brightcove so does NOT require Brightcove API write access.

* Requires Python 3 (yeah!)
* If you have a very large or rapidly changing video library, see `Limitations`_ below.
* Free software: MIT license

Installing
----------

This script requires Python 3.4 or above. Make sure the pip you are running corresponds to Python 3.x and not Python 2.x.

.. code-block:: bash

   $ pip install clarify_brightcove_sync

You may need to use sudo if you don't have permission to install. If you are upgrading from an older version, use the --upgrade flag.


Quickstart Guide
----------------

You must configure the authentication credentials for your Brightcove and Clarify accounts.

Brightcove Credentials
^^^^^^^^^^^^^^^^^^^^^^

To get Brightcove API credentials:

* Log in to https://studio.brightcove.com
* In the ``ADMIN`` menu, choose ``API Authentication``
* Click ``Register New Application`` button
{'fraction_non_alphanumeric': 0.10129804021379486, 'fraction_numerical': 0.0022906592008144567, 'mean_word_length': 4.354223433242507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1612805', 'n_tokens_mistral': 1005, 'n_tokens_neox': 959, 'n_words': 530}