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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytokens-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0f434b4896ae4945e19168d6636b6fd1f57b791cc8bd2076c5898bd80b7078a0
MD5 ea036ffdd30093b1f4cd4e6753d71a82
BLAKE2b-256 72a359c6f28bace8593ab147941d007771b961dbd99f234fb1729721b8480b9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytokens-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8cc2a23bb8c9d064bd85104b109748b63613d8a891b98958867a1f6f24e8404d
MD5 794fd707c782b9b8ddf96fc813c3d225
BLAKE2b-256 abfa193ed5c3b93884935d4e42d9a1e24613621cc2c5a666c967a6dc0821665c

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