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.4.tar.gz
(11.3 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.4-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file pytokens-0.1.4.tar.gz.
File metadata
- Download URL: pytokens-0.1.4.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb03ff5b682232c49ac5a87615625ccc9d5a1112205c406ce43213bb16b1e31b
|
|
| MD5 |
8ee5969a7b25ac1f691049a2047d43dd
|
|
| BLAKE2b-256 |
7f9642a81d59fa821245992fca203982555eaa759d2fbc314b09325c188231f2
|
File details
Details for the file pytokens-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pytokens-0.1.4-py3-none-any.whl
- Upload date:
- Size: 11.2 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 |
a62f308dfbc3fc36a1140d82d7f6482f3c06d58532cf070c90c2d629f2cb4992
|
|
| MD5 |
69d1c4204c669b7dfe779ddb121dce53
|
|
| BLAKE2b-256 |
79dcc571bc300a6eb4879d591ce5d425a9a0d20c5bb83178d3e771d0f3385f6d
|