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.2.tar.gz (27.8 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.2-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fixthis-0.1.2.tar.gz
  • Upload date:
  • Size: 27.8 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.2.tar.gz
Algorithm Hash digest
SHA256 a87621477c56abf2309e0f0f99f4bdd0afc757fa021dbd9d907fa4fd58ffdda2
MD5 00ea99ae3e544b0000b2ec4763bc721f
BLAKE2b-256 fe0c12ef0527fd79c02d912b850092ceb79cabad91e749fdb1a9428edfb8abc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fixthis-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 29.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6be884fb49b12f6b2a453450002f0b9fd764ce0cede3b09d5a0b90855a1ae7b3
MD5 f945e8442c4f6bce80d756b5efd34151
BLAKE2b-256 4cc47d6ce6f108aba63051690414e398939c2c760c7523bf56815a1124a90d10

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