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.7.tar.gz (11.6 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.7-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytokens-0.1.7.tar.gz
  • Upload date:
  • Size: 11.6 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.7.tar.gz
Algorithm Hash digest
SHA256 eae4ce549c4f6b45449b9ae791e4b18b1b5bba19bd324f53511f00774c156231
MD5 7853cdc986fbd39b1f0c831d6a48c60b
BLAKE2b-256 d7a0caaff8acc995d8f282719b251faeeba3a9a926f7b1a8ec509a7a31637afc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytokens-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 11.6 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e8ecfc227e34d2a21affd71d715bb2e6cf3eb134740edfec74eb77386e793e73
MD5 7a91ccdefd2e6a90d5a8cfeb68e12e76
BLAKE2b-256 8b9fe58089be5cc2e3409a621cdf753e2884c2d14d4af5f89c54a41cf85c5830

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