A Python package wrapping the WriteFreely / Write.as API
Project description
WriteFreely
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
writefreely-py-1.2.0.tar.gz
(10.1 kB
view hashes)
Built Distribution
Close
Hashes for writefreely_py-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec4c07385edccbca3628e9430a5667eded2b6ef7d3541a07e1f621adfb613590 |
|
MD5 | f08e1ef5979d36914b81d6f54b7a82b7 |
|
BLAKE2b-256 | 9b1ec62407b8a412ca5a6b3b6eefe9e5741e13dc42c0db1bf17db21c1d2a53dd |