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
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)
Built Distribution
Close
Hashes for SpinRewritterPyt-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc5f84a5202e1215ca2dfdf9c8b6aad671538097c6b42fb61de8a374aee54860 |
|
MD5 | 6b540b57b260d9b2f165bad200ee5521 |
|
BLAKE2b-256 | f0e3f8d264cbc42d5cfcd278208c860da926a44c12a41224f8721ecc5eb95322 |