{"id":17138762,"url":"https://github.com/gsllchb/dotdot","last_synced_at":"2025-07-25T14:30:57.527Z","repository":{"id":46314306,"uuid":"168644636","full_name":"Gsllchb/DotDot","owner":"Gsllchb","description":"Make it easy to import the modules in parent directories","archived":false,"fork":false,"pushed_at":"2021-10-31T09:19:59.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-14T20:10:55.331Z","etag":null,"topics":["importation","library","python","utility"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gsllchb.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-01T04:57:53.000Z","updated_at":"2024-03-20T16:14:26.000Z","dependencies_parsed_at":"2022-08-29T23:40:35.337Z","dependency_job_id":null,"html_url":"https://github.com/Gsllchb/DotDot","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gsllchb%2FDotDot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gsllchb%2FDotDot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gsllchb%2FDotDot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gsllchb%2FDotDot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gsllchb","download_url":"https://codeload.github.com/Gsllchb/DotDot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227583967,"owners_count":17789626,"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":["importation","library","python","utility"],"created_at":"2024-10-14T20:10:32.347Z","updated_at":"2024-12-01T15:25:50.217Z","avatar_url":"https://github.com/Gsllchb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DotDot\n___Make it easy to import the modules in parent directories___\n\n[![released version](https://img.shields.io/pypi/v/DotDot.svg)](https://pypi.org/project/dotdot)\n[![license](https://img.shields.io/github/license/Gsllchb/DotDot.svg)](https://github.com/Gsllchb/DotDot/blob/master/LICENSE.txt)\n\nIf you want to solve `ValueError: attempted relative import beyond top-level package`, **DotDot** may be helpful for you.\n\n## Installation\nIf it can be installed and imported successfully, it should work correctly.\n\nInstall via **pip**:\n```console\npip install dotdot\n```\n\n## Example\n```\nroot dir\n    ├── apple.py *****************\n    │   * import dot             *\n    │   * import dir.boy         *\n    │   * import dir.subdir.cat  *\n    │   * script code ...        *\n    │   **************************\n    │\n    └── dir\n         ├── boy.py *******************\n         │   * import dotdot          *\n         │   * import apple           *\n         │   * import dir.subdir.cat  *\n         │   * script code ...        *\n         │   **************************\n         │    \n         └── subdir\n                └── cat.py *******************\n                    * import dotdotdot       *\n                    * import apple           *\n                    * import dir.boy         *\n                    * script code ...        *\n                    **************************\n```\n\n\n## How It Works\nDotDot does this magic by changing `sys.path[0]` in __import time__.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsllchb%2Fdotdot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsllchb%2Fdotdot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsllchb%2Fdotdot/lists"}