root/alpine313/: pytokens-0.4.1 metadata and description
A Fast, spec compliant Python 3.14+ tokenizer that runs on older Pythons.
| author_email | Tushar Sadhwani <tushar.sadhwani000@gmail.com> |
| classifiers |
|
| description_content_type | text/markdown |
| dynamic |
|
| license | MIT License Copyright (c) 2024 Tushar Sadhwani Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| license_file |
|
| metadata_version | 2.4 |
| project_urls |
|
| provides_extras |
|
| requires_dist |
|
| requires_python | >=3.8 |
| File | Tox results | History |
|---|---|---|
pytokens-0.4.1-cp313-cp313-musllinux_1_2_x86_64.whl
|
|
|
pytokens-0.4.1-py3-none-any.whl
|
|
pytokens
A Fast, spec compliant Python 3.14+ tokenizer that runs on older Pythons.
Installation
pip install pytokens
Usage
python -m pytokens path/to/file.py
Local Development / Testing
- Create and activate a virtual environment
- Run
PYTOKENS_USE_MYPYC=0 pip install -e '.[dev]'to do an editable install - Run
pytestto run tests
Type Checking
Run mypy .
Compilation with mypyc
By default, we compile with mypyc.
Use the PYTOKENS_USE_MYPYC environment variable to control this.
To check if you are using a compiled version, see whether the output of this is .py or .so:
python -c "import pytokens; print(pytokens.__file__)"
Create and upload a package to PyPI
- Make sure to bump the version in
pyproject.toml. - Push to Github so CI can build the wheels and sdist.
- Download the artifacts from the CI run.
- Find the "Build wheels" job, click "Summary", scroll down to the bottom to see "Artifacts"
and download the
cibw-wheelsartifact.
- Unzip the artifact.
- Upload the contents of the artifact to PyPI
- e.g. via
twine upload cibw-wheels/*