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.1.tar.gz
(11.1 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.1-py3-none-any.whl
(11.0 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a844edef1c327a749627f7034e034d96b08167e5b6ad5044003715b42f81ff9f
|
|
| MD5 |
5f565f5e00b8643459034a87b50b8616
|
|
| BLAKE2b-256 |
41358eb994dda94932258d6df52fe58a38820065ada54859c3f64b60aa7dcb03
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a6cdf175df87be36ebac96225dd1e534c348caa5a27ddcca2a3bff85b270aaf
|
|
| MD5 |
e4f75c492e5833116f2e7de80b550931
|
|
| BLAKE2b-256 |
5f2d7f7c7fc6302eba7b8a4d7c2657e33f6ce3351261ef4657a61c995c866634
|