semvec/pypi-packages huggingface dataset:
complicated 1.1.0
Complicated python api. Control Apple Watch Complications with WebHooks
License: MIT

# Complicated

## What is Complicated?

Complicated is a simple app that lets you update your Apple Watch face 
complications with WebHooks. You can also use IFTTT and Zapier to update the WebHooks.

[![Complicated Watch Your Text Here](https://mikelyons.org/images/complicated/watch_your_message_250.png)](https://mikelyons.org/complicated?utm_source=github-python)

[https://mikelyons.org/complicated](https://mikelyons.org/complicated?utm_source=github-python)

[![Complicated Download App](https://mikelyons.org/images/complicated/download.png)](https://itunes.apple.com/us/app/complicated/id1444561091?ls=1&mt=8)

## How to install `complicated-python`

```
pip install complicated
```

## How to use the Complicated CLI tool

It's easy to update your Apple Watch Complications using the command line. The
command is just `complicated`, and you pass in API key, Complication type and
your new value in parenthesis

```
Usage: complicated <Complicated API Key> <complication type> "<New Value>"
Example:
complciated abcd1234 modularLarge "Hello World\nCan you see me"
```

Arguments:
 - `API Key`: You can get this from the settings page in the Complicated app
 - `Complication Type`: The complication that you want to update to the new value.
Here is a list of the available types: [ circularSmall, extraLarge, graphicBezel, graphicCorner, graphicRectangular, modularLarge, modularSmall, utilitarianLarge, utilitarianSmall ]
 - `New Value`: The new value to change the complciation to. Surround it with quotes if you want to include spaces. Use \n for new lines.


## How to use the Python Library

The python library is also dirt simple to use:

```python
from complicated import changeComplication

# Usage: changeComplication( '<api key>', '<complication type>', '<new value>' )
changeComplication( 'abcd1234', 'utilitarianSmall', 'new value' )
```
topicaxis-opengraph 0.5
A module to parse the Open Graph Protocol
License: MIT
Keywords: opengraph protocol facebook

Topicaxis-opengraph is a fork of https://github.com/erikriver/opengraph that adds support for Python 3.

OpenGraph is a module of python for parsing the Open Graph Protocol, you can read more about the specification at http://ogp.me/

Installation
=============

.. code-block:: console

   $ pip install topicaxis-opengraph

Features
=============

* Use it as a python dict
* Input and parsing from a specific url
* Input and parsung from html previous extracted
* HTML output
* JSON output

Usage
==============

**From an URL**

.. code-block:: pycon

   >>> import opengraph
   >>> video = opengraph.OpenGraph(url="http://www.youtube.com/watch?v=q3ixBmDzylQ")
   >>> video.is_valid()
   True
   >>> for x,y in video.items():
   ...     print "%-15s => %s" % (x, y)
   ...
   site_name       => YouTube
   description     => Eric Clapton and Paul McCartney perform George Harrison's "While My Guitar Gently Weeps" at the...
   title           => While My Guitar Gently Weeps
   url             => http://www.youtube.com/watch?v=q3ixBmDzylQ
   image           => http://i2.ytimg.com/vi/q3ixBmDzylQ/default.jpg
   video:type      => application/x-shockwave-flash
   video:height    => 224
   video           => http://www.youtube.com/v/q3ixBmDzylQ?version=3&autohide=1
   video:width     => 398
   type            => video

**From HTML**

.. code-block:: pycon

   >>> HTML = """
   ... <html xmlns:og="http://ogp.me/ns#">
   ... <head>
   ... <title>The Rock (1996)</title>
   ... <meta property="og:title" content="The Rock" />
   ... <meta property="og:type" content="movie" />
   ... <meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
   ... <meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
   ... </head>
   ... </html>
   ... """
   >>> movie = opengraph.OpenGraph() # or you can instantiate as follows: opengraph.OpenGraph(html=HTML)
   >>> movie.parser(HTML)
   >>> video.is_valid()
   True

**Generate JSON or HTML**

.. code-block:: pycon

   >>> ogp = opengraph.OpenGraph("http://ogp.me/")
   >>> print ogp.to_json()
   {"image:type": "image/png", "title": "Open Graph protocol", "url": "http://ogp.me/", "image": "http://ogp.me/logo.png", "scrape": false, "_url": "http://ogp.me/", "image:height": "300", "type": "website", "image:width": "300", "description": "The Open Graph protocol enables any web page to become a rich object in a social graph."}
   >>> print ogp.to_html()

   <meta property="og:image:type" content="image/png" />
   <meta property="og:title" content="Open Graph protocol" />
   <meta property="og:url" content="http://ogp.me/" />
   <meta property="og:image" content="http://ogp.me/logo.png" />
   <meta property="og:scrape" content="False" />
   <meta property="og:_url" content="http://ogp.me/" />
   <meta property="og:image:height" content="300" />
   <meta property="og:type" content="website" />
   <meta property="og:image:width" content="300" />
   <meta property="og:description" content="The Open Graph protocol enables any web page to become a rich object in a social graph." />