{"id":43306672,"url":"https://github.com/kaashmonee/cp-upsolve-helper","last_synced_at":"2026-02-01T20:38:00.472Z","repository":{"id":215307283,"uuid":"738618347","full_name":"kaashmonee/cp-upsolve-helper","owner":"kaashmonee","description":"easily run your solution + unit tests for upsolving competitive programming/leetcode problems","archived":false,"fork":false,"pushed_at":"2024-01-04T20:51:48.000Z","size":12,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-27T03:17:29.733Z","etag":null,"topics":["algorithms","algorithms-and-data-structures","competition","competitive-programming","dsa","dsa-algorithm","leet","leetcode","leetcode-python","leetcode-solutions","python3","upsolving-coding-contests"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/cp-upsolve-helper/0.0.1/","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/kaashmonee.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,"roadmap":null,"authors":null}},"created_at":"2024-01-03T16:38:06.000Z","updated_at":"2024-05-16T01:05:11.000Z","dependencies_parsed_at":"2024-01-24T12:04:45.307Z","dependency_job_id":"7fe2d804-8dd9-49e0-b6cf-184970b58464","html_url":"https://github.com/kaashmonee/cp-upsolve-helper","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"b0ac96ececb2ae4b3d8169c898e56725e4645a1d"},"previous_names":["kaashmonee/cp-upsolve-helper"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kaashmonee/cp-upsolve-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaashmonee%2Fcp-upsolve-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaashmonee%2Fcp-upsolve-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaashmonee%2Fcp-upsolve-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaashmonee%2Fcp-upsolve-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaashmonee","download_url":"https://codeload.github.com/kaashmonee/cp-upsolve-helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaashmonee%2Fcp-upsolve-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28989557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T20:36:14.625Z","status":"ssl_error","status_checked_at":"2026-02-01T20:36:11.271Z","response_time":56,"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":["algorithms","algorithms-and-data-structures","competition","competitive-programming","dsa","dsa-algorithm","leet","leetcode","leetcode-python","leetcode-solutions","python3","upsolving-coding-contests"],"created_at":"2026-02-01T20:37:59.981Z","updated_at":"2026-02-01T20:38:00.468Z","avatar_url":"https://github.com/kaashmonee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cp-upsolve-helper\n\nhttps://pypi.org/project/cp-upsolve-helper/0.0.2/\n\n## Usage\nif on local\n```bash\npip install .\n```\n\nfrom pypi\n```bash\npip install cp-upsolve-helper==0.0.2\n```\n\n```python\nimport uthelper.helpers as helper\nimport unittest\n\n@helper.run\nclass TestClass(unittest.TestCase):\n    def test_example(self):\n        self.assertEqual(True, True)\n\nclass TestClassDoesntRun(unittest.TestCase):\n    def test_example_doesnt_run(self):\n        self.assertEqual(True, False)\n```\n\n### defining custom solution function and testing\n\n```python\nimport cphelper.helpers as cphelper\n\ninp_str = \"\"\"\n8\n2 3\n1 2\n3 11\n1 5\n5 10\n4 6\n3 9\n250000000 500000000\n\"\"\"\n\nexpected_output = \"\"\"\n6\n4\n33\n25\n20\n12\n27\n1000000000\n\"\"\"\n\nr = cphelper.Runner(inp_str, [cphelper.MUL])\n\n\ndef solution(a, b):\n    if a == 2 and b == 3:\n        return 6\n    return 0\n\nr.test_solution(solution, expected_output)\n\n```\n\noutput: note, passes the first case, fails on the others\n```\nF\n======================================================================\nFAIL: test_function (cphelper.helpers.Runner.test_solution.\u003clocals\u003e._.test_function)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"/opt/homebrew/anaconda3/lib/python3.11/site-packages/cphelper/helpers.py\", line 67, in test_function\n    sself.assertEqual(result, expected)\nAssertionError: '0' != '4'\n- 0\n+ 4\n\n\n----------------------------------------------------------------------\nRan 1 test in 0.001s\n\nFAILED (failures=1)\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaashmonee%2Fcp-upsolve-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaashmonee%2Fcp-upsolve-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaashmonee%2Fcp-upsolve-helper/lists"}