Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A simple spin-syntax parser for Python

Project Description

pyspinner is simple library for parsing text that uses spin-syntax.


To install pyspinner, simply:

$ pip install pyspinner

or download the source code and do:

$ python install

How to use it

>>> import spinning
>>> spinning.unique('The {quick|fast} {brown|gray|red} fox jumped over the lazy dog.')
'The quick gray fox jumped over the lazy dog.'

Running tests

$ python
Ran 2 tests in 0.000s



  • Supports nested syntax.
  • Supports custom opening, closing and separator characters by using the override_params function.


  • Allow optional phrases: The quick{ red|} fox...
  • Allow special characters {,|,} inside text by escaping them.
  • Write more tests

Release History

This version
History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.4 kB) Copy SHA256 Hash SHA256
Source None May 18, 2014
(4.8 kB) Copy SHA256 Hash SHA256
Source None May 18, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting