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

Uploaded Source

File details

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

File metadata

  • Download URL: fixthis-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 137186cdeb81fb36fe11837ca672fdc3c121419600a98d4177cdadc13a0c444b
MD5 7926e34b8fa17438608fb3bc9251b05c
BLAKE2b-256 6aa7f862e350c807d68353a25f7ffbad1c87aebec9305ead03212f11cdb846b8

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