Skip to main content

Small utility to work with Python tokens

Project description


This project consists of a single module which is extracted from the ideas package. Its purpose is to simplify manipulations of tokens from Python's tokenize module. One of its features is that, unlike Python's version, the following is always guaranteed:

from token_utils import tokenize, untokenize

source = "Arbitrary Python code here"

assert source == untokenize(tokenize(source))

See ideas documentation for more information

Project details

Download files

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

Files for token-utils, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size token_utils-0.0.10-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size token-utils-0.0.10.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page