Skip to main content

A Fast, spec compliant Python 3.12+ tokenizer that runs on older Pythons.

Project description

pytokens

A Fast, spec compliant Python 3.12+ tokenizer that runs on older Pythons.

Installation

pip install pytokens

Usage

pytokens path/to/file.py

Local Development / Testing

  • Create and activate a virtual environment
  • Run pip install -r requirements-dev.txt to do an editable install
  • Run pytest to run tests

Type Checking

Run mypy .

Create and upload a package to PyPI

Make sure to bump the version in setup.cfg.

Then run the following commands:

rm -rf dist
python -m build

Then upload it to PyPI using twine:

twine upload dist/*

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

pytokens-0.1.4.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytokens-0.1.4-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file pytokens-0.1.4.tar.gz.

File metadata

  • Download URL: pytokens-0.1.4.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pytokens-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cb03ff5b682232c49ac5a87615625ccc9d5a1112205c406ce43213bb16b1e31b
MD5 8ee5969a7b25ac1f691049a2047d43dd
BLAKE2b-256 7f9642a81d59fa821245992fca203982555eaa759d2fbc314b09325c188231f2

See more details on using hashes here.

File details

Details for the file pytokens-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pytokens-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for pytokens-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a62f308dfbc3fc36a1140d82d7f6482f3c06d58532cf070c90c2d629f2cb4992
MD5 69d1c4204c669b7dfe779ddb121dce53
BLAKE2b-256 79dcc571bc300a6eb4879d591ce5d425a9a0d20c5bb83178d3e771d0f3385f6d

See more details on using hashes here.

Supported by

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