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

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.4.tar.gz (27.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for fixthis-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5f78c9b866c9a666ef0467ef87c7ea81fde1f919c30e9cca1f63ae90039b2225
MD5 69fc87c5f12563addaf52327fd3e9315
BLAKE2b-256 b9c7c68c49d5b45eb2507a8cc5303cc98cfe6052d127fc5af3174e1f96bec6bb

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