A small Python library that provides some 'QOL' features
Project description
PYTHON-FIXTHIS
This is a small Python library that adds a simple AST-based name fixer/interpreter for Python scripts.
Implemented Features
Currently, only english numbers(use a variable name like five_hundred_eight
and have it contain the value 508), and a fallback where undefined variables just
have their own name as a string value
import fixthis
print(Hello == 'Hello') # True
print(forty_seven_million) # 47000000
Testing
To run the test:
make test
The Makefile's test target prepends venv/bin to your PATH so it will use the Python in venv/bin/python if you have a local virtualenv named venv.
Or directly:
PYTHONPATH=src python tests/basic_test.py
If it exits with a non-zero exit code, and no exception is printed, the Tests should have passed. If not, good luck!
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
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
File details
Details for the file fixthis-0.1.5.tar.gz.
File metadata
- Download URL: fixthis-0.1.5.tar.gz
- Upload date:
- Size: 28.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acd763c96286588a28a112ca41968844c664096012c79dfc8a2151b2dc2736dd
|
|
| MD5 |
00405803ac8ec454f241c672b8420c9f
|
|
| BLAKE2b-256 |
34a879f894ea4f14d10ae1e320fd6cfbe420490051ba7556d7e2c89f01c46291
|
File details
Details for the file fixthis-0.1.5-py3-none-any.whl.
File metadata
- Download URL: fixthis-0.1.5-py3-none-any.whl
- Upload date:
- Size: 30.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba1a34364e089f406c3e663d15278a5c3566bfcae71d2a8b5e9cb8defed00be6
|
|
| MD5 |
a61062fdddd73e9edf8fe77a6acbd56e
|
|
| BLAKE2b-256 |
3f1b8f75378726415ffe30a02e1d3fd2540ef86eec499bc788f35fe79b273064
|