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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SpinRewritterPyt-1.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file SpinRewritterPyt-1.0.tar.gz.

File metadata

  • Download URL: SpinRewritterPyt-1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for SpinRewritterPyt-1.0.tar.gz
Algorithm Hash digest
SHA256 0c56e239f054bf848583ea3cf5ecc48c9b193f1087b9e0b861ba318006aa8962
MD5 6683dd01d10176080555cb5ab1bfd431
BLAKE2b-256 3f0aa36538b11208755a6a8f39bc0b1a021d06a567f8933131ee9ab0121a684e

See more details on using hashes here.

File details

Details for the file SpinRewritterPyt-1.0-py3-none-any.whl.

File metadata

  • Download URL: SpinRewritterPyt-1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for SpinRewritterPyt-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc5f84a5202e1215ca2dfdf9c8b6aad671538097c6b42fb61de8a374aee54860
MD5 6b540b57b260d9b2f165bad200ee5521
BLAKE2b-256 f0e3f8d264cbc42d5cfcd278208c860da926a44c12a41224f8721ecc5eb95322

See more details on using hashes here.

Supported by

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