Python client for Socialhome.
Interact with your Socialhome account using the shcli
client. This library will provide a CLI utility and a Python API.
pip install shcli
# For example on Ubuntu. See https://snapcraft.io/ for support on other OS's.
sudo snap install shcli
Tool help:
shcli --help
shcli create <domain.tld> <token> -t <text> -v <visibility>
For example:
shcli create socialhome.network 123456789abcdefg -t 'Hello, World!' \
-v public
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.
pip install -U -r dev-requirements.txt
py.test
Jason Robinson / https://jasonrobinson.me / @jaywink:federator.dev