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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytokens-0.1.9.tar.gz
  • Upload date:
  • Size: 11.7 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.9.tar.gz
Algorithm Hash digest
SHA256 821f5bcb19de9cc1166c051e0e5928c2925c3eadd7a6f1a489156fe57d082c3d
MD5 84905842fd535ed801127a9a7b42ba05
BLAKE2b-256 4801b08ecdca8911b7296552deeb04aacb3c2acbb2f3f13cdb16d0b45d0c69ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytokens-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 11.5 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b9b7b0211a17cf5b815bb01075f24d9c45295c566a558ab0784a5075683076aa
MD5 db036aa4f25b8a09717144839801920e
BLAKE2b-256 df03669a2bdc8beb31836395d3697e72d27dc38aa544fb62256bcc8c9c528d15

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