{"id":24087204,"url":"https://github.com/nuuner/jira-work-hours","last_synced_at":"2026-04-14T07:32:54.254Z","repository":{"id":271265187,"uuid":"910801400","full_name":"nuuner/jira-work-hours","owner":"nuuner","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-08T09:39:50.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-08T11:27:56.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nuuner.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-01T13:24:57.000Z","updated_at":"2026-04-08T09:39:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"e98b30e1-4e33-449e-b0f5-52ed1833e2d3","html_url":"https://github.com/nuuner/jira-work-hours","commit_stats":null,"previous_names":["nuuner/jira-work-hours"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nuuner/jira-work-hours","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuuner%2Fjira-work-hours","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuuner%2Fjira-work-hours/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuuner%2Fjira-work-hours/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuuner%2Fjira-work-hours/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuuner","download_url":"https://codeload.github.com/nuuner/jira-work-hours/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuuner%2Fjira-work-hours/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31786854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-01-10T03:02:58.367Z","updated_at":"2026-04-14T07:32:54.246Z","avatar_url":"https://github.com/nuuner.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Work Hours Calendar\n\nA FastAPI service that generates SVG calendars visualizing work hours logged in Jira. The calendar shows daily work hours, running totals, and statistics for the month.\n\n## Features\n\n- Monthly calendar view with daily work hours\n- Color-coded work hour indicators\n- Running total calculations\n- Statistics including average hours and required hours to balance\n- Support for annual leave tracking\n- Secure access using HMAC authentication\n\n## Requirements\n\n- Python 3.12+\n- Docker (optional)\n\n## Installation\n\n1. Clone the repository\n2. Create a `.env` file with:\n```\nJIRA_API_TOKEN=your_jira_token\nHASH_SECRET_KEY=your_secret_key\nJIRA_URL=https://jira.example.com\n```\n\n## Running the Service\n\n### Using Docker\n\n```bash\ndocker compose up\n```\n\n### Without Docker\n\n```bash\n# Install dependencies\nuv install\n\n# Run the service\nuv run fastapi run hello.py\n```\n\n## Usage\n\nGenerate a calendar by making a GET request to `/calendar` with the following parameters:\n- `year`: Year (2000-2100)\n- `month`: Month (1-12)\n- `username`: Jira username\n- `hash`: HMAC authentication hash\n\nTo generate the required hash, use:\n```python\npython3 -c 'import hmac, hashlib; year=2024; month=3; username=\"your_username\"; secret=\"your_secret_key\"; print(hmac.new(secret.encode(\"utf-8\"), f\"{year}-{month}-{username}\".encode(\"utf-8\"), hashlib.sha256).hexdigest())'\n```\n\nExample URL:\n```\nhttp://localhost:4012/calendar?year=2024\u0026month=3\u0026username=john.doe\u0026hash=generated_hash\n```\n\nThe service will return an SVG image showing the work hours calendar for the specified month.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuuner%2Fjira-work-hours","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuuner%2Fjira-work-hours","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuuner%2Fjira-work-hours/lists"}