{"id":13688350,"url":"https://github.com/ljcooke/see","last_synced_at":"2025-04-04T16:12:49.906Z","repository":{"id":57465224,"uuid":"130445","full_name":"ljcooke/see","owner":"ljcooke","description":"Python's dir() for humans.","archived":false,"fork":false,"pushed_at":"2021-07-18T11:57:28.000Z","size":543,"stargazers_count":244,"open_issues_count":2,"forks_count":18,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-10-19T19:59:40.805Z","etag":null,"topics":["developer-tools","pypi","python","python-development","python-library"],"latest_commit_sha":null,"homepage":"https://ljcooke.github.io/see/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ljcooke.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-02-16T23:36:33.000Z","updated_at":"2024-10-11T05:18:38.000Z","dependencies_parsed_at":"2022-09-17T18:00:47.612Z","dependency_job_id":null,"html_url":"https://github.com/ljcooke/see","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljcooke%2Fsee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljcooke%2Fsee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljcooke%2Fsee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljcooke%2Fsee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ljcooke","download_url":"https://codeload.github.com/ljcooke/see/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208140,"owners_count":20901570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-tools","pypi","python","python-development","python-library"],"created_at":"2024-08-02T15:01:11.934Z","updated_at":"2025-04-04T16:12:49.879Z","avatar_url":"https://github.com/ljcooke.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# see: dir for humans\n\n[![](https://img.shields.io/pypi/v/see.svg)](https://pypi.org/project/see/)\n\n**see** is an alternative to `dir()`, for Python 2.7 and 3.4+.\n\nIt neatly summarises what you can do with an object.\nUse it to inspect your code or learn new APIs.\n\n\n## Example\n\n\u003c!-- For examples, use a 64-column terminal and set sys.ps1 = '\u003e\u003e\u003e ' --\u003e\n\nSay you have an object which you'd like to know more about:\n\n```\n\u003e\u003e\u003e from datetime import timedelta\n```\n\nTry inspecting the object with `see`:\n\n```\n\u003e\u003e\u003e see(timedelta)\n    isclass             +                   -\n    *                   /                   //\n    %                   +obj                -obj\n    \u003c                   \u003c=                  ==\n    !=                  \u003e                   \u003e=\n    abs()               bool()              dir()\n    divmod()            hash()              help()\n    repr()              str()               .days\n    .max                .microseconds       .min\n    .resolution         .seconds            .total_seconds()\n```\n\nHere we can discover some things about it, such as:\n\n- The object is a class.\n- You can add something to it with the `+` operator.\n- It has a `seconds` attribute.\n- It has a `total_seconds` attribute which is a function.\n\nCompare with the output of `dir`:\n\n```\n\u003e\u003e\u003e dir(timedelta)\n['__abs__', '__add__', '__bool__', '__class__', '__delattr__', '\n__dir__', '__divmod__', '__doc__', '__eq__', '__floordiv__', '__\nformat__', '__ge__', '__getattribute__', '__gt__', '__hash__', '\n__init__', '__init_subclass__', '__le__', '__lt__', '__mod__', '\n__mul__', '__ne__', '__neg__', '__new__', '__pos__', '__radd__',\n '__rdivmod__', '__reduce__', '__reduce_ex__', '__repr__', '__rf\nloordiv__', '__rmod__', '__rmul__', '__rsub__', '__rtruediv__',\n'__setattr__', '__sizeof__', '__str__', '__sub__', '__subclassho\nok__', '__truediv__', 'days', 'max', 'microseconds', 'min', 'res\nolution', 'seconds', 'total_seconds']\n```\n\nYou can filter the results of `see` using a wildcard pattern\nor a regular expression:\n\n```\n\u003e\u003e\u003e see(timedelta).filter('*sec*')\n    .microseconds       .seconds            .total_seconds()\n\n\u003e\u003e\u003e see(timedelta).filter('/^d/')\n    dir()       divmod()\n```\n\n\n## Documentation\n\nDocumentation is available at \u003chttps://ljcooke.github.io/see/\u003e.\n\n- [Installation](https://ljcooke.github.io/see/install.html)\n- [Usage](https://ljcooke.github.io/see/usage.html)\n- [Startup File](https://ljcooke.github.io/see/startup.html)\n- [Developer Reference](https://ljcooke.github.io/see/dev/index.html)\n\n\n## Contributing\n\nThe source code is available from [GitHub](https://github.com/ljcooke/see):\n\n```sh\ngit clone https://github.com/ljcooke/see.git\n```\n\nContributions are welcome.\n\n- [Change Log](https://github.com/ljcooke/see/blob/develop/CHANGELOG.rst)\n- [Code of Conduct](https://github.com/ljcooke/see/blob/develop/CODE_OF_CONDUCT.md)\n- [Authors](https://github.com/ljcooke/see/blob/develop/AUTHORS.rst)\n- [License](https://github.com/ljcooke/see/blob/develop/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljcooke%2Fsee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljcooke%2Fsee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljcooke%2Fsee/lists"}