Skip to main content

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
print(LATIN_SMALL_LETTER_E_WITH_ACUTE) # é Named unicode, all caps
# Or compounds, separated by __
print(The_equation__COLON__SPACE__four__PLUS__seven__IS__nineteen___IS_INCORRECT)
# The equation: 4+7=11 IS INCORRECT

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

fixthis-0.1.6.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fixthis-0.1.6-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file fixthis-0.1.6.tar.gz.

File metadata

  • Download URL: fixthis-0.1.6.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for fixthis-0.1.6.tar.gz
Algorithm Hash digest
SHA256 371df6502227aaded41c016137306e18720caaec5361052d4e88daca7a797298
MD5 92e94fbf3195a219f76e863649e995ea
BLAKE2b-256 686c877a537a169ca5f82ad3a801aaa13e4af42a3804aac1c16806d66afaa4a5

See more details on using hashes here.

File details

Details for the file fixthis-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: fixthis-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for fixthis-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b3cabe858093adf2d6140f76e7fda624e3f0d1608c42bb98ce837ff679fcb0f1
MD5 d9c84e7026d8870e717bc127616f0b02
BLAKE2b-256 73f6426d687c10f42de4007898b1e1bfae5cc19a2bbd9f86fe04adc267c278f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page