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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytokens-0.1.10.tar.gz
  • Upload date:
  • Size: 12.2 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.10.tar.gz
Algorithm Hash digest
SHA256 c9a4bfa0be1d26aebce03e6884ba454e842f186a59ea43a6d3b25af58223c044
MD5 ed4ad1cba72805609f54c3614a6a04d7
BLAKE2b-256 305fe959a442435e24f6fb5a01aec6c657079ceaca1b3baf18561c3728d681da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytokens-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 12.0 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 db7b72284e480e69fb085d9f251f66b3d2df8b7166059261258ff35f50fb711b
MD5 86d40ebc95fe8eb5baf16db35b9ac3a1
BLAKE2b-256 60e563bed382f6a7a5ba70e7e132b8b7b8abbcf4888ffa6be4877698dcfbed7d

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