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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytokens-0.1.1.tar.gz
  • Upload date:
  • Size: 11.1 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.1.tar.gz
Algorithm Hash digest
SHA256 a844edef1c327a749627f7034e034d96b08167e5b6ad5044003715b42f81ff9f
MD5 5f565f5e00b8643459034a87b50b8616
BLAKE2b-256 41358eb994dda94932258d6df52fe58a38820065ada54859c3f64b60aa7dcb03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytokens-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a6cdf175df87be36ebac96225dd1e534c348caa5a27ddcca2a3bff85b270aaf
MD5 e4f75c492e5833116f2e7de80b550931
BLAKE2b-256 5f2d7f7c7fc6302eba7b8a4d7c2657e33f6ce3351261ef4657a61c995c866634

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