objxp 1__tar.gz → 1.0.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: objxp
3
- Version: 1
3
+ Version: 1.0.4
4
4
  Summary: List the members in a Object[also Class or Module].
5
5
  Author-email: lukelin <hongfoo@foxmail.com>
6
6
  License: Mozilla Public License Version 2.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "objxp"
7
- version = "1"
7
+ version = "1.0.4"
8
8
  description = "List the members in a Object[also Class or Module]."
9
9
  readme = "README.md"
10
10
  authors = [{ name = "lukelin", email = "hongfoo@foxmail.com" }]
@@ -1,5 +1,6 @@
1
1
  import os
2
2
  import json
3
+ import sys
3
4
  import shutil
4
5
  from typing import Literal, Optional, Union
5
6
 
@@ -69,6 +70,7 @@ def title_case(content: str, level: int = 1, outputType: str = "screen") -> str:
69
70
  else:
70
71
  # For markdown output
71
72
  return "\n "+typename+" mmembers:\n"
73
+
72
74
  def ox(
73
75
  theobj: object="test",
74
76
  ifprint = True,
@@ -217,10 +219,8 @@ def ox(
217
219
 
218
220
  return result_content_text_md
219
221
 
220
-
221
222
  # vars() is alternative to dirs(), or locals()
222
223
 
223
-
224
224
  def what_is_vars():
225
225
  locals = vars().copy()
226
226
  for kk,vv in locals.items():
@@ -255,6 +255,16 @@ def what_is_vars():
255
255
 
256
256
 
257
257
  """
258
+
259
+
260
+ def hlp(objtgt,mdff=""):
261
+ mdff = "./tmp.md" if mdff == "" else mdff
262
+ out = sys.stdout
263
+ sys.stdout = open(mdff, 'w')
264
+ help(objtgt)
265
+ sys.stdout.close()
266
+ sys.stdout = out
267
+
258
268
 
259
269
  if __name__=="__main__":
260
- ox(100)
270
+ help(100)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: objxp
3
- Version: 1
3
+ Version: 1.0.4
4
4
  Summary: List the members in a Object[also Class or Module].
5
5
  Author-email: lukelin <hongfoo@foxmail.com>
6
6
  License: Mozilla Public License Version 2.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes