A Python package that wraps the WriteFreely API, for use in your Python projects.
pip install writefreely-py
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/
Check the examples folder for more code examples.