{"id":18663715,"url":"https://github.com/cabbagedevelopment/chdir","last_synced_at":"2025-11-06T08:30:29.868Z","repository":{"id":62561809,"uuid":"264194728","full_name":"CabbageDevelopment/chdir","owner":"CabbageDevelopment","description":"Tiny Python library for setting the current working directory to the location of a Python script.","archived":false,"fork":false,"pushed_at":"2020-11-09T21:26:55.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T19:54:19.467Z","etag":null,"topics":["library"],"latest_commit_sha":null,"homepage":"","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/CabbageDevelopment.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-15T13:01:28.000Z","updated_at":"2020-12-27T16:51:05.000Z","dependencies_parsed_at":"2022-11-03T15:01:00.525Z","dependency_job_id":null,"html_url":"https://github.com/CabbageDevelopment/chdir","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CabbageDevelopment%2Fchdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CabbageDevelopment%2Fchdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CabbageDevelopment%2Fchdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CabbageDevelopment%2Fchdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CabbageDevelopment","download_url":"https://codeload.github.com/CabbageDevelopment/chdir/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239487837,"owners_count":19647076,"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":["library"],"created_at":"2024-11-07T08:19:24.606Z","updated_at":"2025-11-06T08:30:29.834Z","avatar_url":"https://github.com/CabbageDevelopment.png","language":"Python","readme":"# chdir\n\n`chdir` is a tiny Python library for setting the current working directory to the location of a Python script.\n\n## How to install\n\n```bash\npip install chdir\n```\n\n## Why? \n\nWhen writing Python scripts, you might be tired of doing this:\n\n```python\nimport os\n\nos.chdir(os.path.dirname(os.path.abspath(__file__)))\n```\n\nWith `chdir`, you can do this:\n\n```python\nimport chdir\n\nchdir.here(__file__)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcabbagedevelopment%2Fchdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcabbagedevelopment%2Fchdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcabbagedevelopment%2Fchdir/lists"}