Skip to content

adbenitez/writefreely-py

Repository files navigation

WriteFreely

Latest Release Supported Versions Downloads License CI Code style: black

A Python package that wraps the WriteFreely API, for use in your Python projects.

Install

pip install writefreely-py

Quick Start

import writefreely as wf

# default WriteFreely instance is "https://write.as"
c = wf.client(user="foo", password="bar")

# create a post
post = c.create_post(title="Hello World!", body="Hello from **Python**")

print(f"See your post at: {c.host}/{post['slug']}")

# discard current session
c.logout()

Too see what extra parameters some functions accept and response structure, check: https://developers.write.as/docs/api/

Examples

Check the examples folder for more code examples.