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.8.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.8-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytokens-0.1.8.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.8.tar.gz
Algorithm Hash digest
SHA256 69cdc938d078d2eeec0407b155c7d5f5c2b694a793c62aa2fb4765c24fef5744
MD5 393e60c78cb221d1c7391581f8240db2
BLAKE2b-256 f20239c8e6121588245676273b03b5a63f35028573cc474e746c4be5c45dd5df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytokens-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 56bc603d631793bfb6e2bc1cea5209569ac3bdbfe09bd3457e44b23670a84b73
MD5 76e1c556c046edd7eaa50cb1c659d1f5
BLAKE2b-256 f7b6feeb0515fd6c91549d1f975166db266690916c3c627176cae9b1679d611a

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