Skip to main content

A basic module to work with memory addresses and references.

Project description

WtfPy

This module is created to:

  • Track variables
  • Search in variables
  • Help unit testing
  • Modify variables and log modifications
  • Make the memory management easier
  • Gather information about your memory usage (vhl)

Version 0.0.2

Functions

	import wtf 

	wtf.vhl # Variable handler class

	wtf.vhl.CrtNewDB(variable, storedname) # Create new data block

	wtf.vhl.GetAllDB() # Get all data blockS

	wtf.vhl.SrcSingleDB(storedname) # Select single data block

	wtf.vhl.DelSingleDB(storedname) # Delete single data block

	# Displayname is always optional
	wtf.RuntmVal(variable, displayname) # Get runtime data value
	wtf.SetRuntmVal(variable, newvalue, displayname) # Set runtime data value
	wtf.MemAddr(variable) # Get memory address of a variable
	wtf.RefCheck(first_variable, second_variable) # Check if two variable are referencing to the same memory address
	wtf.GetSize(variable) # Get size of a variable
	wtf.GetMemoryUsage() # Get the memory usage of your program. Displaying in % and MB
	wtf.EchoTurnOff() # Turn off comfirmation messages from VHL
	wtf.DeRef(variable) # De-reference a variable
	wtf.GetType(var) # Get type of variable

Data blocks

Data blocks are stored in a 2D array with their size, name(Set by user) and memory address. I implemented a standard data block just to check that it's working. You can remove it if you want. This data block is 'STD'. You can search inside this data block array, you can delete blocks and add blocks.

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

WtfPy-0.0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

WtfPy-0.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file WtfPy-0.0.2.tar.gz.

File metadata

  • Download URL: WtfPy-0.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for WtfPy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 720b561679a94b83d601bc8cedbf79b51eb24747ba4609402c646812d3deeba7
MD5 e5231438a3cb9bd08189faa6053cfb54
BLAKE2b-256 cbe3fab69a4e469c86c9d8560efd3e687b3006bcab79669a3b05dc39faa32b28

See more details on using hashes here.

File details

Details for the file WtfPy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: WtfPy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for WtfPy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1e75ab87428c3cec1241ab49dcd6feb62959697609cf91f8538f34bbf342512c
MD5 4f75be4a071ad09c6314807308252afd
BLAKE2b-256 a360903aaed7fa329933b03cb2ca436b751f713d5fa235d36c7f8f021aa19005

See more details on using hashes here.

Supported by

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