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!

Sentiment analysis, as easy as copy-and-paste

Project Description

tbpaste is a command-line utility that runs sentiment analysis on the contents of your clipboard.


  1. Copy some text to your clipboard.
  2. Run tbpaste in your shell for the magic.

More magic

tbpaste sentiment
Run sentiment analysis. This is the default behavior (same as running tbpaste). The sentiment score is within the range [-1.0, 1.0]. The subjectivity score is within the range [0.0, 1.0].
tbpaste chunks
Extract noun phrases.
tbpaste --sentences=t
Process each sentence in the copied text. This is the default behavior. Set --sentences=f to suppress tokenization.
tbpaste lang
Detect language. Language code reference.
tbpaste lang --from en --to fr
Translate between languages. If --from is omitted, tbpaste will try to detect the source language. Language code reference.
tbpaste tag
Output part-of-speech tags for each word in the copied text.


  • Sentiment analysis
  • Noun phrase extraction
  • Translation
  • Part-of-speech tagging
  • Colored output
  • Cross-platform

Get it now

$ pip install -U tbpaste
$ curl | python

You should now be able to run the tbpaste command.


  • Python >= 2.7 or >= 3.3


MIT Licensed.

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
tbpaste-0.2.1-py2.py3-none-any.whl (5.6 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Dec 22, 2013
tbpaste-0.2.1.tar.gz (3.9 kB) Copy SHA256 Checksum SHA256 Source Dec 22, 2013

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting