pycodeit-tracer 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.4
2
+ Name: pycodeit-tracer
3
+ Version: 1.0.0
4
+ Summary: A Python code execution trace helper for interview preparation
5
+ License: MIT
6
+ Project-URL: Homepage, https://www.pycodeit.com
7
+ Project-URL: Practice Platform, https://www.pycodeit.com
8
+ Project-URL: Source Code, https://github.com/RichieDatalyst/python-code-tracing-resources
9
+ Project-URL: Bug Tracker, https://github.com/RichieDatalyst/python-code-tracing-resources/issues
10
+ Keywords: python,code-tracing,dry-run,interview-prep,output-prediction,debugging
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Topic :: Education
13
+ Classifier: Topic :: Software Development :: Libraries
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Dynamic: license-file
17
+
18
+ # pycodeit-tracer
19
+
20
+ A lightweight Python code execution trace decorator for developers
21
+ practicing dry-run output prediction and interview preparation.
22
+
23
+ ## Install
24
+ pip install pycodeit-tracer
25
+
26
+ ## Usage
27
+ from pycodeit_tracer import trace_steps
28
+
29
+ @trace_steps
30
+ def add(a, b):
31
+ return a + b
32
+
33
+ add(3, 4)
34
+ # [trace] Calling add with args=(3, 4)
35
+ # [trace] add returned: 7
36
+
37
+ ## Practice More
38
+ Practice unlimited interactive tracing challenges at
39
+ **[PyCodeIt](https://www.pycodeit.com)** It is free, no install required.
@@ -0,0 +1,22 @@
1
+ # pycodeit-tracer
2
+
3
+ A lightweight Python code execution trace decorator for developers
4
+ practicing dry-run output prediction and interview preparation.
5
+
6
+ ## Install
7
+ pip install pycodeit-tracer
8
+
9
+ ## Usage
10
+ from pycodeit_tracer import trace_steps
11
+
12
+ @trace_steps
13
+ def add(a, b):
14
+ return a + b
15
+
16
+ add(3, 4)
17
+ # [trace] Calling add with args=(3, 4)
18
+ # [trace] add returned: 7
19
+
20
+ ## Practice More
21
+ Practice unlimited interactive tracing challenges at
22
+ **[PyCodeIt](https://www.pycodeit.com)** It is free, no install required.
@@ -0,0 +1,20 @@
1
+ # pycodeit_tracer/__init__.py
2
+
3
+ """
4
+ pycodeit-tracer: A lightweight Python code execution trace helper.
5
+ Practice more interactive tracing challenges at https://www.pycodeit.com
6
+ """
7
+
8
+ def trace_steps(func):
9
+ """
10
+ Decorator that prints each return value and call info.
11
+ Useful for manually verifying trace table results.
12
+ """
13
+ import functools
14
+ @functools.wraps(func)
15
+ def wrapper(*args, **kwargs):
16
+ print(f"[trace] Calling {func.__name__} with args={args}")
17
+ result = func(*args, **kwargs)
18
+ print(f"[trace] {func.__name__} returned: {result}")
19
+ return result
20
+ return wrapper
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.4
2
+ Name: pycodeit-tracer
3
+ Version: 1.0.0
4
+ Summary: A Python code execution trace helper for interview preparation
5
+ License: MIT
6
+ Project-URL: Homepage, https://www.pycodeit.com
7
+ Project-URL: Practice Platform, https://www.pycodeit.com
8
+ Project-URL: Source Code, https://github.com/RichieDatalyst/python-code-tracing-resources
9
+ Project-URL: Bug Tracker, https://github.com/RichieDatalyst/python-code-tracing-resources/issues
10
+ Keywords: python,code-tracing,dry-run,interview-prep,output-prediction,debugging
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Topic :: Education
13
+ Classifier: Topic :: Software Development :: Libraries
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Dynamic: license-file
17
+
18
+ # pycodeit-tracer
19
+
20
+ A lightweight Python code execution trace decorator for developers
21
+ practicing dry-run output prediction and interview preparation.
22
+
23
+ ## Install
24
+ pip install pycodeit-tracer
25
+
26
+ ## Usage
27
+ from pycodeit_tracer import trace_steps
28
+
29
+ @trace_steps
30
+ def add(a, b):
31
+ return a + b
32
+
33
+ add(3, 4)
34
+ # [trace] Calling add with args=(3, 4)
35
+ # [trace] add returned: 7
36
+
37
+ ## Practice More
38
+ Practice unlimited interactive tracing challenges at
39
+ **[PyCodeIt](https://www.pycodeit.com)** It is free, no install required.
@@ -0,0 +1,8 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ pycodeit_tracer/init.py
5
+ pycodeit_tracer.egg-info/PKG-INFO
6
+ pycodeit_tracer.egg-info/SOURCES.txt
7
+ pycodeit_tracer.egg-info/dependency_links.txt
8
+ pycodeit_tracer.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ pycodeit_tracer
@@ -0,0 +1,25 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "pycodeit-tracer"
7
+ version = "1.0.0"
8
+ description = "A Python code execution trace helper for interview preparation"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ keywords = [
12
+ "python", "code-tracing", "dry-run", "interview-prep",
13
+ "output-prediction", "debugging"
14
+ ]
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "Topic :: Education",
18
+ "Topic :: Software Development :: Libraries"
19
+ ]
20
+
21
+ [project.urls]
22
+ Homepage = "https://www.pycodeit.com"
23
+ "Practice Platform" = "https://www.pycodeit.com"
24
+ "Source Code" = "https://github.com/RichieDatalyst/python-code-tracing-resources"
25
+ "Bug Tracker" = "https://github.com/RichieDatalyst/python-code-tracing-resources/issues"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+