{"id":21269802,"url":"https://github.com/prashantrahul141/python-package-structure","last_synced_at":"2025-10-12T21:54:41.190Z","repository":{"id":152169806,"uuid":"582951895","full_name":"prashantrahul141/Python-Package-Structure","owner":"prashantrahul141","description":"This contains a template for structuring python package.","archived":false,"fork":false,"pushed_at":"2022-12-28T10:42:29.000Z","size":1663,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T12:02:34.387Z","etag":null,"topics":["github-actions","package","python","python-package","python-package-template"],"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/prashantrahul141.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,"governance":null}},"created_at":"2022-12-28T10:27:24.000Z","updated_at":"2022-12-28T10:47:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"eadfb5fe-d649-491d-9167-fb4fbe899686","html_url":"https://github.com/prashantrahul141/Python-Package-Structure","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"0e3232f944d79f41fe4c7289422b7a74bff98852"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/prashantrahul141/Python-Package-Structure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashantrahul141%2FPython-Package-Structure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashantrahul141%2FPython-Package-Structure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashantrahul141%2FPython-Package-Structure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashantrahul141%2FPython-Package-Structure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prashantrahul141","download_url":"https://codeload.github.com/prashantrahul141/Python-Package-Structure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashantrahul141%2FPython-Package-Structure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013129,"owners_count":26085232,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["github-actions","package","python","python-package","python-package-template"],"created_at":"2024-11-21T08:12:01.486Z","updated_at":"2025-10-12T21:54:41.154Z","avatar_url":"https://github.com/prashantrahul141.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align='center'\u003ePython Package Structure\u003c/h1\u003e\n\n\u003ch6 align='center'\u003eThis contains a template for structuring python packages. \u003ca target='_blank' href='https://docs.python-guide.org/writing/structure/'\u003eLearn more.\u003c/a\u003e\u003c/h6\u003e\n\n![Tests](https://github.com/prashantrahul141/Python-Package-Structure/actions/workflows/tests.yaml/badge.svg)\n\n## This covers:\n\n- Structuring python packages\n- Using sub modules to separate code\n- Importing submodules\n- Importing resources like images\n- Testing (pytest, mypy)\n- Linting (flake8)\n- Github actions with tox\n\n\u003cbr\u003e\n\n## Some useful commands:\n\nBuilding package\n\n```sh\n# first make sure build is installed and updated\npip install --upgrade build\n\n# then run the build command\npython -m build\n```\n\nInstall user dependencies\n\n```sh\npip install -r requirements.txt\n```\n\nInstall dev dependencies\n\n```sh\npip install -r requirements_dev.txt\n```\n\nInstall the package locally in editable mode\n\n```sh\npip install -e .\n```\n\nrun pytest to run your tests\n\n```sh\npytest\n```\n\nrun flake8 to test linting\n\n```sh\nflake8\n```\n\nget a cool `test:status` badge on your readme :D\n\n```\n![Tests](https://github.com/\u003cOWNER\u003e/\u003cREPOSITORY\u003e/actions/workflows/\u003cWORKFLOW_FILE\u003e/badge.svg)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashantrahul141%2Fpython-package-structure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprashantrahul141%2Fpython-package-structure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashantrahul141%2Fpython-package-structure/lists"}