Python bindings for TheBestSpinner API
Project description
The Best Spinner 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 The Best Spinner API.
Install from package to virtualenv
$ virtualenv --no-site-packages foo
$ cd foo
$ bin/pip install thebestspinner
Install within virtualenv
$ virtualenv --no-site-packages foo
$ cd foo
$ git clone git://github.com/niteoweb/thebestspinner.git
$ bin/pip install thebestspinner/
# running tests:
$ bin/pip install unittest2 mock
$ bin/test
Buildout
$ git clone git://github.com/niteoweb/thebestspinner.git
$ virtualenv --no-site-packages thebestspinner
$ cd thebestspinner
$ bin/python bootstrap.py
$ bin/buildout
# running tests:
$ bin/test
# check code for imperfections
$ source bin/activate
$ vvv src/tbs
Usage
>>> original_text = "This is the text we want to spin"
>>> import tbs
>>> thebestspinner = tbs.Api('your_username', 'your_password')
>>> spin_text = thebestspinner.identifySynonyms(original_text)
>>> print spin_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"
>>> thebestspinner.randomSpin(spin_text)
u"This really is some text that we'd love to spin"
Changelog
1.0 (2012-11-06)
Code changed to use phpserialize from pypi instead of xml parser. [Matej Cotman]
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
thebestspinner-1.0.1.zip
(24.7 kB
view details)
File details
Details for the file thebestspinner-1.0.1.zip
.
File metadata
- Download URL: thebestspinner-1.0.1.zip
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8532884d4c7be1586928fe0b2a8b6301b3a579e8315af77e9ac62896ac2b987 |
|
MD5 | a6ab5ad49957d42ccc1f919733b6ccc7 |
|
BLAKE2b-256 | b0aa3689add21fc776cc4d1432b9fed9cfc1005f6d39e992013cc8f51349830a |