Skip to main content

Python bindings for SpinRewriter API

Project description

Spin Rewriter is an online service for spinning text (synonym substitution) that creates unique version(s) of existing text. This package provides a way to easily interact with SpinRewriter API. Usage requires an account, get one here.

Install

Install into your Python path using pip or easy_install:

$ pip install SpinRewriterPyt
$ easy_install SpinRewriterPyt

Usage

After installing it, this is how you use it:

Initialize SpinRewriter.
>>> text = u"This is the text we want to spin."
>>> from spinrewriter import SpinRewriter
>>> rewriter = SpinRewriter('username', 'api_key')

Request processed spun text with spintax.
>>> rewriter.text_with_spintax(text)
u"{This is|This really is|That is|This can be} some text that we'd {like to
|prefer to|want to|love to} spin."

Request a unique variation of processed given text.
>>> rewriter.unique_variation(text)
u"This really is some text that we'd love to spin."

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SpinRewritterPyt-1.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

SpinRewritterPyt-1.0-py3-none-any.whl (14.1 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