Name | leetcode-local-runner JSON |
Version |
0.0.1
JSON |
| download |
home_page | None |
Summary | A python package with tools to let you try coding problems and check your code against your own test cases. |
upload_time | 2025-02-03 09:06:06 |
maintainer | None |
docs_url | None |
author | Anurag Shenoy |
requires_python | >=3.10 |
license | MIT License
Copyright (c) 2025 Anurag Shenoy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
keywords |
runner
helper
leetcode
project-euler
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Overview
[](https://pypi.org/project/leetcode-local-runner)
[](https://pypi.org/project/leetcode-local-runner)
A python package with tools to let you try coding problems and check your code against your own test cases.
Sites like LeetCode and Project Euler have great problems you can solve to improve your data-structures and algorithm knowledge.
But LeetCode's IDE isn't fun to code in, and harder to debug in.
Project Euler has no web IDE at all.
This tool allows you to quickly start solving those problems and add test-cases quickly.
# Installation
Install using pip:
```text
$ pip install leetcode-local-runner
```
or with [Poetry](https://python-poetry.org/):
```text
$ poetry add leetcode-local-runner
```
# Usage
1. Install the library.
2. Pick a problem to solve from either LeetCode or Project Euler.
3. Copy the code in the editor into a python file.
```py
class Solution:
def dailyTemperatures(self, temperatures: List[int]) -> List[int]:
pass
```
4. Create your own test-cases and pass them into the LeetCode class like so:
```py
test_cases = [
{"temperatures": [73, 74, 75, 71, 69, 72, 76, 73]},
{"temperatures": [30, 40, 50, 60]},
{"temperatures": [30, 60, 90]},
]
expected_outputs = [
[1, 1, 4, 2, 1, 1, 0, 0],
[1, 1, 1, 0],
[1, 1, 0],
]
lc = LeetCode(test_cases=test_cases, expected_outputs=expected_outputs, fn=Solution().isSameTree)
lc.run_test_cases()
```

# Requirements
- Python >= 3.10
Raw data
{
"_id": null,
"home_page": null,
"name": "leetcode-local-runner",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "runner, helper, leetcode, project-euler",
"author": "Anurag Shenoy",
"author_email": "anuragshenoy21@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/be/0c/8a207ab5abf2269e8b2fbe4f3d3b8ae2ff15ba512bad58d0957258cf0fa2/leetcode_local_runner-0.0.1.tar.gz",
"platform": null,
"description": "# Overview\n[](https://pypi.org/project/leetcode-local-runner)\n[](https://pypi.org/project/leetcode-local-runner)\n\nA python package with tools to let you try coding problems and check your code against your own test cases.\n\nSites like LeetCode and Project Euler have great problems you can solve to improve your data-structures and algorithm knowledge.\n\nBut LeetCode's IDE isn't fun to code in, and harder to debug in.\n\nProject Euler has no web IDE at all.\n\nThis tool allows you to quickly start solving those problems and add test-cases quickly.\n\n# Installation\n\nInstall using pip:\n\n```text\n$ pip install leetcode-local-runner\n```\n\nor with [Poetry](https://python-poetry.org/):\n\n```text\n$ poetry add leetcode-local-runner\n```\n\n# Usage\n\n1. Install the library.\n2. Pick a problem to solve from either LeetCode or Project Euler.\n3. Copy the code in the editor into a python file.\n ```py\n class Solution:\n def dailyTemperatures(self, temperatures: List[int]) -> List[int]:\n pass\n ```\n4. Create your own test-cases and pass them into the LeetCode class like so:\n```py\ntest_cases = [\n {\"temperatures\": [73, 74, 75, 71, 69, 72, 76, 73]},\n {\"temperatures\": [30, 40, 50, 60]},\n {\"temperatures\": [30, 60, 90]},\n]\nexpected_outputs = [\n [1, 1, 4, 2, 1, 1, 0, 0],\n [1, 1, 1, 0],\n [1, 1, 0],\n]\n\nlc = LeetCode(test_cases=test_cases, expected_outputs=expected_outputs, fn=Solution().isSameTree)\nlc.run_test_cases()\n```\n\n\n# Requirements\n- Python >= 3.10\n\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2025 Anurag Shenoy\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.",
"summary": "A python package with tools to let you try coding problems and check your code against your own test cases.",
"version": "0.0.1",
"project_urls": {
"Documentation": "https://github.com/shenoy-anurag/leetcode-runner",
"Funding": "https://buymeacoffee.com/anuragshenoy",
"Homepage": "https://github.com/shenoy-anurag/leetcode-runner",
"Issues": "https://github.com/shenoy-anurag/leetcode-runner/issues",
"Repository": "https://github.com/shenoy-anurag/leetcode-runner"
},
"split_keywords": [
"runner",
" helper",
" leetcode",
" project-euler"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "4404ccf003239e91b202316ef211372e1765eca362c426525dd8e0b2fd779ae8",
"md5": "9179ad356b3cf56d2df80399ea9996a4",
"sha256": "3d1e84cb0d34adf2737754309c029367a5f1be288bf452ecc01d630e7a3c7e4e"
},
"downloads": -1,
"filename": "leetcode_local_runner-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9179ad356b3cf56d2df80399ea9996a4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 6554,
"upload_time": "2025-02-03T09:06:01",
"upload_time_iso_8601": "2025-02-03T09:06:01.883446Z",
"url": "https://files.pythonhosted.org/packages/44/04/ccf003239e91b202316ef211372e1765eca362c426525dd8e0b2fd779ae8/leetcode_local_runner-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "be0c8a207ab5abf2269e8b2fbe4f3d3b8ae2ff15ba512bad58d0957258cf0fa2",
"md5": "3bf7383db8f9e8b87b16f4031362de17",
"sha256": "2a925063d1dc62237c3b8089377089e9d283d17b4db5dd75db3185abfbd1a697"
},
"downloads": -1,
"filename": "leetcode_local_runner-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "3bf7383db8f9e8b87b16f4031362de17",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 4284,
"upload_time": "2025-02-03T09:06:06",
"upload_time_iso_8601": "2025-02-03T09:06:06.081686Z",
"url": "https://files.pythonhosted.org/packages/be/0c/8a207ab5abf2269e8b2fbe4f3d3b8ae2ff15ba512bad58d0957258cf0fa2/leetcode_local_runner-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-03 09:06:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "shenoy-anurag",
"github_project": "leetcode-runner",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "leetcode-local-runner"
}