{"id":50425040,"url":"https://github.com/mr-ndi/ai-experts-assignment","last_synced_at":"2026-05-31T10:01:34.836Z","repository":{"id":339136012,"uuid":"1160527390","full_name":"Mr-Ndi/ai-experts-assignment","owner":"Mr-Ndi","description":"Minimal Python HTTP client with OAuth2 token refresh, reproducible tests, and Dockerized CI-ready setup","archived":false,"fork":false,"pushed_at":"2026-02-18T06:55:33.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-18T11:28:01.548Z","etag":null,"topics":["http","pytest","python3","venv"],"latest_commit_sha":null,"homepage":" https://hub.docker.com/r/ninshuti/ai-expert-assignment","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/Mr-Ndi.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":"2026-02-18T03:43:20.000Z","updated_at":"2026-02-18T06:58:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Mr-Ndi/ai-experts-assignment","commit_stats":null,"previous_names":["mr-ndi/ai-experts-assignment"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Mr-Ndi/ai-experts-assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-Ndi%2Fai-experts-assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-Ndi%2Fai-experts-assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-Ndi%2Fai-experts-assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-Ndi%2Fai-experts-assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mr-Ndi","download_url":"https://codeload.github.com/Mr-Ndi/ai-experts-assignment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mr-Ndi%2Fai-experts-assignment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33726719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":["http","pytest","python3","venv"],"created_at":"2026-05-31T10:01:34.085Z","updated_at":"2026-05-31T10:01:34.831Z","avatar_url":"https://github.com/Mr-Ndi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI Experts Assignment (Python)\n\nThis assignment evaluates your ability to:\n\n- set up a small Python project to run reliably (locally + in Docker),\n- pin dependencies for reproducible installs,\n- write focused tests to reproduce a bug,\n- implement a minimal, reviewable fix.\n\n## What you will do\n\n### 1) Dockerfile (required)\n\nCreate a `Dockerfile` so the project can run the test suite in a non-interactive, CI-style environment.\n\nRequirements:\n\n- requirements.txt exists and is used during build (pip install -r requirements.txt)\n- pytest must be included/pinned in requirements.txt\n- The image must run tests by default (use: `CMD [\"python\", \"-m\", \"pytest\", \"-v\"]`).\n- The build must install dependencies from `requirements.txt`.\n\n### 2) requirements.txt (required)\n\nCreate a `requirements.txt` with pinned versions, using this format:\n\n- `package==x.y.z`\n\n### 3) README updates (required)\n\nUpdate this README to include:\n\n- how to run the tests locally,\n- how to build and run tests with Docker.\n\n### 4) Find + fix a bug (required)\n\nThere is a bug somewhere in this repository.\n\nYour tasks:\n\n- Identify the bug.\n- Apply the smallest possible fix to make the tests pass.\n- Keep the change minimal and reviewable (no refactors).\n\n## Constraints\n\n- Keep changes minimal and reviewable.\n- Do not refactor unrelated code.\n- Do not introduce extra tooling unless required.\n- You may add tests and the smallest code change needed to fix the bug.\n\n## Running tests\n\n### Local\n\n1. Install dependencies: `python -m pip install -r requirements.txt`\n2. Run tests: `python -m pytest -v`\n\n### Docker\n\n1. Build the image: `docker build -t ai-experts .`\n2. Run tests: `docker run --rm ai-experts`\n3. Docker Hub image: https://hub.docker.com/r/ninshuti/ai-expert-assignment\n\n### 5) EXPLANATION.md (required)\n\nCreate `EXPLANATION.md` (max 250 words) containing:\n\n- **What was the bug?**\n- **Why did it happen?**\n- **Why does your fix solve it?**\n- **One realistic case / edge case your tests still don’t cover**\n\n## Submission\n\n- done\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-ndi%2Fai-experts-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmr-ndi%2Fai-experts-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-ndi%2Fai-experts-assignment/lists"}