Skip to main content

A cute Python utility to open an interactive console with stack inspection.

Project description

pyCony

pyCone is a small utility package for python projects debugging, reverse engineering and tracing

Installation

pip install pyCony  
#    OR 
pip install pip install git+https://github.com/rzbhatti/pyCony.git

Usage

from pycony import *

Functions

  • open_console()
  • print_stack(depth=None)
  • pickle_args(n, pkl_sufix=None, file_path=None)
  • print_stack(depth=None)
  • load_pickled_args(file_path)
  • open_console_print_stack(depth=None)
  • [Optional] set_trace() --> https://docs.python.org/3/library/pdb.html

Example

from pycony import open_console_show_stack_depth

def my_function(arg):
    value = arg * 5
    print(f"Inside my_function with value: {value}")
    open_console_print_stack(depth=2)
    print("Back in my_function")

my_function(10)

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

pycony-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycony-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pycony-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for pycony-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b1f1143302f03a58b0e25eefdb65c7af0b8732e03a9f8e488837e9d44ddd0cab
MD5 84d2b08586a4a8e08dd75c4e62911eb5
BLAKE2b-256 4405f5ec9a43da8aa2f2b9b62ecb83301611bf62553ad150e15114e7b034edb3

See more details on using hashes here.

File details

Details for the file pycony-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pycony-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pycony-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c7ec152c3b7cc6e6bf612e676c6af0e8620275a8802e9f82a7509ad8d0c0921
MD5 fdaf9410c6e4739c2f8ffe2b996e5d64
BLAKE2b-256 3e7a914a302cb9c8d8fdb473f52af1be9c50cd32f6505df6ad9a0b688615a315

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