8000 GitHub - jaywink/shcli at v0.1.3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jaywink/shcli

Repository files navigation

Build Status codecov.io Dependency Status

PyPI version Documentation Status PyPI PyPI

chat on freenode Chat on Gitter chat on matrix

shcli

Python client for Socialhome.

Introduction

Interact with your Socialhome account using the shcli client. This library will provide a CLI utility and a Python API.

Installation

pip install shcli

Usage

Tool help:

shcli --help

Creating content

Tool

shcli create <domain.tld> <token> -t <text> -v <visibility>

For example:

shcli create socialhome.network 123456789abcdefg -t 'Hello, World!' \
    -v public

Python API

import shcli

shcli.create(<domain.tld>, <token>, <text>, <visibility>)

For example:

shcli.create(
    "socialhome.network", "123456789abcdefg", "Hello, World!", "public"
)

Visibility parameter can be one of public, limited, site or self.

Returns the created Content object as JSON or another response with possible error messages.

Development

Install for development

pip install -U -r dev-requirements.txt

Running tests

py.test

License

MIT

Author

Jason Robinson / https://jasonrobinson.me / https://github.com/jaywink

0