Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Small utility to work with Python tokens

Project description

token-utils

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.1.8
Filename, size File type Python version Upload date Hashes
Filename, size token_utils-0.1.8-py3-none-any.whl (6.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size token-utils-0.1.8.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page