Skip to main content

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.

Source Distribution

token-utils-0.1.8.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

token_utils-0.1.8-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file token-utils-0.1.8.tar.gz.

File metadata

  • Download URL: token-utils-0.1.8.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.4

File hashes

Hashes for token-utils-0.1.8.tar.gz
Algorithm Hash digest
SHA256 7f4e2ff973822ce1e1829ba70e17d00b315a570c5be625b01a3f361933c2f86a
MD5 603724732d60050af0383b779a047d2a
BLAKE2b-256 e58fae5cb90e22d0b431b0de7696a2a1ce9db786d76cdd1a4fce1d19392074d2

See more details on using hashes here.

File details

Details for the file token_utils-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: token_utils-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.4

File hashes

Hashes for token_utils-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8bdca11ae8aacab3e47dacbb21165c2d118167d2a0a59b93e61aa8af03f62481
MD5 97080a798adbf85013aa2dc751e52b45
BLAKE2b-256 b3e9d4eead56411a4cc003b817d5bb427af609aac7bc3793ec871fbf29ef8d0e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page