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


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 details)

Uploaded Source

Built Distribution

writefreely_py-1.2.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file writefreely-py-1.2.0.tar.gz.

File metadata

  • Download URL: writefreely-py-1.2.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for writefreely-py-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e30c8cf7dbc7b12f753ffa81c62e77e4d82f1fc9d5f76b599d05364b26cacb16
MD5 71b28eb5475c8b2890f6833bfaade510
BLAKE2b-256 761564fed5aeec46d06b0de2d269e4f31a3057c84ca04651e56c6c31cd5625d3

See more details on using hashes here.

File details

Details for the file writefreely_py-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: writefreely_py-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for writefreely_py-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec4c07385edccbca3628e9430a5667eded2b6ef7d3541a07e1f621adfb613590
MD5 f08e1ef5979d36914b81d6f54b7a82b7
BLAKE2b-256 9b1ec62407b8a412ca5a6b3b6eefe9e5741e13dc42c0db1bf17db21c1d2a53dd

See more details on using hashes here.

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