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('See your post at: {}/{}'.format(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.1.0.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for writefreely_py-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e1a1af2662e3e3cc26170a0a2a6fefeef158e2a5165f29faf0bc3a8eed6aa43 |
|
MD5 | 844e0a60e3d686ae965575e4e595185e |
|
BLAKE2b-256 | c7704a2ad3ba3a8a5d9968ad3930cac9fb957ba24f11350fa2947a86b57c4acc |