{"id":25281940,"url":"https://github.com/pnstack/template-python","last_synced_at":"2026-05-09T14:32:24.528Z","repository":{"id":254993686,"uuid":"848194262","full_name":"pnstack/template-python","owner":"pnstack","description":"Template python project","archived":false,"fork":false,"pushed_at":"2025-02-22T03:54:51.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-22T04:18:42.323Z","etag":null,"topics":["docker","github-actions","python","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/pnstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["nvp2k1"]}},"created_at":"2024-08-27T10:04:36.000Z","updated_at":"2025-02-22T03:54:55.000Z","dependencies_parsed_at":"2024-08-27T11:44:10.742Z","dependency_job_id":null,"html_url":"https://github.com/pnstack/template-python","commit_stats":null,"previous_names":["pnstack/template-python"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnstack%2Ftemplate-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnstack%2Ftemplate-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnstack%2Ftemplate-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnstack%2Ftemplate-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pnstack","download_url":"https://codeload.github.com/pnstack/template-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485290,"owners_count":20946398,"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":["docker","github-actions","python","template"],"created_at":"2025-02-12T19:08:57.848Z","updated_at":"2026-05-09T14:32:24.460Z","avatar_url":"https://github.com/pnstack.png","language":"Python","funding_links":["https://github.com/sponsors/nvp2k1"],"categories":[],"sub_categories":[],"readme":"---\ntitle: Python Project Template\nemoji: 🟧\ncolorFrom: yellow\ncolorTo: purple\nsdk: docker\ntags:\n- Python\nfullwidth: true\nlicense: mit\napp_port: 8080\n---\n\n# Python Project Template\n\nA modern Python project template with best practices for development, testing, and deployment.\n\n## Features\n\n- Modern Python (3.11+) project structure\n- Development tools configuration (pytest, black, isort, mypy, ruff)\n- Docker support\n- GitHub Actions ready\n- Comprehensive documentation structure\n- Jupyter notebook support\n\n## Project Structure\n\n```\n.\n├── docs/               # Documentation files\n├── notebooks/         # Jupyter notebooks\n├── src/               # Source code\n│   ├── common/        # Common utilities and shared code\n│   ├── modules/       # Feature modules\n│   │   └── api/       # API related code\n│   ├── shared/        # Shared resources\n│   └── utils/         # Utility functions\n└── tests/             # Test files\n```\n\n## Getting Started\n\n### Prerequisites\n\n- Python 3.11 or higher\n- [uv](https://github.com/astral-sh/uv) for dependency management\n\n### Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/yourusername/template-python.git\ncd template-python\n```\n\n2. Create a virtual environment and install dependencies:\n```bash\nuv venv\nsource .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\nuv pip install -e \".[dev]\"\n```\n\n3. Copy the environment file and adjust as needed:\n```bash\ncp .env.example .env\n```\n\n### Development\n\nThis project uses several development tools:\n\n- **pytest**: Testing framework\n- **black**: Code formatting\n- **isort**: Import sorting\n- **mypy**: Static type checking\n- **ruff**: Fast Python linter\n\nRun tests:\n```bash\npytest\n```\n\nFormat code:\n```bash\nblack .\nisort .\n```\n\nRun type checking:\n```bash\nmypy src tests\n```\n\nRun linting:\n```bash\nruff check .\n```\n\n### Docker\n\nBuild the Docker image:\n```bash\nmake build\n```\n\nRun the container:\n```bash\nmake run\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnstack%2Ftemplate-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpnstack%2Ftemplate-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnstack%2Ftemplate-python/lists"}