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.1.tar.gz (27.7 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.1-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fixthis-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e39c779b6287e0abcbf2992d86e6fd0f22cc9dee76646066c3b698a3a3a6bb52
MD5 9d3894d61acb8764107ef84a7a472f9c
BLAKE2b-256 9320cc3473774ab893d96d70b48dc6694bda7e26f34f508a9e630edd8feefae9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fixthis-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0922a59493aed2504cadf1b586270fa0920ef13c4f94784c3203b200b37b6703
MD5 b349c838ce92d2576eb95811faf6dfc1
BLAKE2b-256 7961f350b4ea90f98862508cf63c13bc876cd95f0934cf8f08b0a607f3417fcf

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