objexp


Nameobjexp JSON
Version 1.0.3 PyPI version JSON
download
home_pageNone
SummaryList the members in a Object[also Class or Module].
upload_time2024-12-08 18:11:35
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords dir vars debug
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # objexp

a util for python beginner.

objexp is a util to check what members in a object or Class or module imported.


## Installation

You can install objexp from [PyPI](https://pypi.org/project/objexp/):

```bash
pip install objexp
```

Objexp is supported on Python 3.7 and above. 

## How to use

There is only 1 function: ox(), with 2 parameters, `savefile`, `ifprint`

savefile: "md", "json" or "both", the result str will be saved into "./objexp.md(.json)", defult value is `None`.

ifprint: if you dont want to output result on screen, you could give a `false` value to `ifprint`, which defult value is `true`.


```python

from objexp import ox

ox(print,savefile:str,ifprint:bool)

```
It will output the members of function `print` on the screen as below:

```bash
_________________________

<class 'builtin_function_or_method'>

<built-in function print>
_________________________

<class 'NoneType'>
__text_signature__,

<class 'builtin_function_or_method'>
__dir__, __format__, __init_subclass__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__,

<class 'method-wrapper'>
__call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __le__, __lt__, __ne__, __repr__, __setattr__, __str__,

<class 'module'>
__self__,

<class 'str'>
__doc__, __module__, __name__, __qualname__,

<class 'type'>
__class__,

"\n_________________________\n\n<class 'builtin_function_or_method'>\n\n<built-in function print>\n_________________________\n\n<class 'NoneType'>\n__text_signature__, \n\n<class 'builtin_function_or_method'>\n__dir__, __format__, __init_subclass__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__, \n\n<class 'method-wrapper'>\n__call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __le__, __lt__, __ne__, __repr__, __setattr__, __str__, \n\n<class 'module'>\n__self__, \n\n<class 'str'>\n__doc__, __module__, __name__, __qualname__, \n\n<class 'type'>\n__class__, \n"

```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "objexp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "dir, vars, debug",
    "author": null,
    "author_email": "Luke Lin <luke.l.lin@hotmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/8b/86/92f64f501f6397610aa3bf5db7efcd7f2a27dc83b1a29c73953eb196980f/objexp-1.0.3.tar.gz",
    "platform": null,
    "description": "# objexp\r\n\r\na util for python beginner.\r\n\r\nobjexp is a util to check what members in a object or Class or module imported.\r\n\r\n\r\n## Installation\r\n\r\nYou can install objexp from [PyPI](https://pypi.org/project/objexp/):\r\n\r\n```bash\r\npip install objexp\r\n```\r\n\r\nObjexp is supported on Python 3.7 and above. \r\n\r\n## How to use\r\n\r\nThere is only 1 function: ox(), with 2 parameters, `savefile`, `ifprint`\r\n\r\nsavefile: \"md\", \"json\" or \"both\", the result str will be saved into \"./objexp.md(.json)\", defult value is `None`.\r\n\r\nifprint:\u3000if you dont want to output result on screen, you could give a `false` value to `ifprint`, which defult value is `true`.\r\n\r\n\r\n```python\r\n\r\nfrom objexp import ox\r\n\r\nox(print,savefile:str,ifprint:bool)\r\n\r\n```\r\nIt will output the members of function `print` on the screen as below:\r\n\r\n```bash\r\n_________________________\r\n\r\n<class 'builtin_function_or_method'>\r\n\r\n<built-in function print>\r\n_________________________\r\n\r\n<class 'NoneType'>\r\n__text_signature__,\r\n\r\n<class 'builtin_function_or_method'>\r\n__dir__, __format__, __init_subclass__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__,\r\n\r\n<class 'method-wrapper'>\r\n__call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __le__, __lt__, __ne__, __repr__, __setattr__, __str__,\r\n\r\n<class 'module'>\r\n__self__,\r\n\r\n<class 'str'>\r\n__doc__, __module__, __name__, __qualname__,\r\n\r\n<class 'type'>\r\n__class__,\r\n\r\n\"\\n_________________________\\n\\n<class 'builtin_function_or_method'>\\n\\n<built-in function print>\\n_________________________\\n\\n<class 'NoneType'>\\n__text_signature__, \\n\\n<class 'builtin_function_or_method'>\\n__dir__, __format__, __init_subclass__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__, \\n\\n<class 'method-wrapper'>\\n__call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __le__, __lt__, __ne__, __repr__, __setattr__, __str__, \\n\\n<class 'module'>\\n__self__, \\n\\n<class 'str'>\\n__doc__, __module__, __name__, __qualname__, \\n\\n<class 'type'>\\n__class__, \\n\"\r\n\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "List the members in a Object[also Class or Module].",
    "version": "1.0.3",
    "project_urls": {
        "Homepage": "https://github.com/sunrenn/objexp"
    },
    "split_keywords": [
        "dir",
        " vars",
        " debug"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "792c9203a40acacf1ba14f56012acbb1bba490736f615a7988840268103ab90b",
                "md5": "ee3727d657e8d52ecbf0c9aa324ca830",
                "sha256": "cb89e76497ff6f083763a952b7c1981c12311f80ee711faf13c9184681c94d68"
            },
            "downloads": -1,
            "filename": "objexp-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ee3727d657e8d52ecbf0c9aa324ca830",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 5042,
            "upload_time": "2024-12-08T18:11:34",
            "upload_time_iso_8601": "2024-12-08T18:11:34.057595Z",
            "url": "https://files.pythonhosted.org/packages/79/2c/9203a40acacf1ba14f56012acbb1bba490736f615a7988840268103ab90b/objexp-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b8692f64f501f6397610aa3bf5db7efcd7f2a27dc83b1a29c73953eb196980f",
                "md5": "1467c3e21ce2c4c57d68ee26c4caf83c",
                "sha256": "0dd8fb8afdbf4c0909bd67d3ff39c57647cbbe7b07ea5a150dfc2e62b33135bb"
            },
            "downloads": -1,
            "filename": "objexp-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "1467c3e21ce2c4c57d68ee26c4caf83c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6014,
            "upload_time": "2024-12-08T18:11:35",
            "upload_time_iso_8601": "2024-12-08T18:11:35.832326Z",
            "url": "https://files.pythonhosted.org/packages/8b/86/92f64f501f6397610aa3bf5db7efcd7f2a27dc83b1a29c73953eb196980f/objexp-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-08 18:11:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sunrenn",
    "github_project": "objexp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "objexp"
}
        
Elapsed time: 0.74287s