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.txtto do an editable install - Run
pytestto 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
Release history Release notifications | RSS feed
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.0.tar.gz
(10.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pytokens-0.1.0-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file pytokens-0.1.0.tar.gz.
File metadata
- Download URL: pytokens-0.1.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
830b55413d979d7d39fe2770c9dce24ce724ecfbfcd6affcd845ea8ebeef113f
|
|
| MD5 |
03a7d038b0e522d79c23d94813b4ec88
|
|
| BLAKE2b-256 |
b83230c77a21cf0a516b10de87412ec491260b40849ff7e442015434def6aa95
|
File details
Details for the file pytokens-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pytokens-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ac4166145e4277b6c0827667ca34da452337e7d2cc87018ebbf2e3f626dc86c
|
|
| MD5 |
2e087c49261e07df386aa2cc72b74f94
|
|
| BLAKE2b-256 |
83156e337a62cb21a7acd106818c07c9219685818e9225c582b2d4b5853b509b
|