Skip to main content

A Python package wrapping the WriteFreely / Write.as API

Project description

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('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


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)

Uploaded Source

Built Distribution

writefreely_py-1.1.0-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page