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.0.0.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for writefreely_py-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a911838f812fd770e8fbc3e0883b0e47a0a6680c1bdb5bae79c52e804620ba5d |
|
MD5 | 0408d4feb4505a045fb57535312ec14f |
|
BLAKE2b-256 | 0acb78a1ef5e043d6f709309b813adca9bf3b3e40beddcdc77352166a509f9fa |