Name | pyiter JSON |
Version |
0.13.9
JSON |
| download |
home_page | None |
Summary | PyIter is a Python package for iterative operations inspired by the Kotlin、CSharp(linq)、TypeSrcipt and Rust. Enables strong typing and type inference for iterative operations. |
upload_time | 2025-07-23 04:38:45 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# PyIter
[](https://pypi.org/project/pyiter/)
PyIter is a Python package for iterative operations inspired by the Kotlin、CSharp(linq)、TypeSrcipt and Rust .
Enables strong **typing** and type inference for iterative operations.
- Chain operations like map, reduce, filter, map
- Lazy evaluation
- parallel execution
- strong **typing**
## Install
```bash
pip install pyiter
```
## Quickstart
```python
from pyiter import it
from tqdm import tqdm
text = ["hello", "world"]
it(text).map(str.upper).to_list()
# ['HELLO', 'WORLD']
words = 'I dont want to believe I want to know'.split()
it(words).group_by(lambda x: x).map(lambda g: (g.key, g.values.count())).to_list()
# [('I', 2), ('dont', 1), ('want', 2), ('to', 2), ('believe', 1), ('know', 1)]
# use tqdm
it(range(10)).map(lambda x: str(x)).progress(lambda x: tqdm(x, total=x.len)).parallel_map(lambda x: x, max_workers=5).to_list()
```
**Type inference**

## API
See [API](https://pyiter.yish.org/pyiter/sequence.html) documention.
- You no need to read API documention. all functions are listed by the code completion as follows.

- All documentions are showed as follows.

## Similar libraries
Note that none of the following libraries are providing full strong typing for code completion.
- [Pyterator](https://github.com/remykarem/pyterator)
- [PyFunctional](https://github.com/EntilZha/PyFunctional)
- [fluent](https://github.com/dwt/fluent)
- [Simple Smart Pipe](https://github.com/sspipe/sspipe)
- [pyxtension](https://github.com/asuiu/pyxtension)
## License
Licensed under either of
- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <https://www.apache.org/licenses/LICENSE-2.0>)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/licenses/MIT>)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in the work by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.
Raw data
{
"_id": null,
"home_page": null,
"name": "pyiter",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "YISH <mokeyish@hotmail.com>",
"download_url": "https://files.pythonhosted.org/packages/8c/a2/0d280ead82f1b2f9dd3b369a5f4b7e18affb693190f26ec58f9c60c55788/pyiter-0.13.9.tar.gz",
"platform": null,
"description": "# PyIter\n\n[](https://pypi.org/project/pyiter/)\n\nPyIter is a Python package for iterative operations inspired by the Kotlin\u3001CSharp(linq)\u3001TypeSrcipt and Rust .\nEnables strong **typing** and type inference for iterative operations.\n\n- Chain operations like map, reduce, filter, map\n- Lazy evaluation\n- parallel execution\n- strong **typing**\n\n## Install\n\n```bash\npip install pyiter\n```\n\n## Quickstart\n\n```python\nfrom pyiter import it\nfrom tqdm import tqdm\n\n\ntext = [\"hello\", \"world\"]\nit(text).map(str.upper).to_list()\n# ['HELLO', 'WORLD']\n\n\nwords = 'I dont want to believe I want to know'.split()\nit(words).group_by(lambda x: x).map(lambda g: (g.key, g.values.count())).to_list()\n# [('I', 2), ('dont', 1), ('want', 2), ('to', 2), ('believe', 1), ('know', 1)]\n\n\n# use tqdm\nit(range(10)).map(lambda x: str(x)).progress(lambda x: tqdm(x, total=x.len)).parallel_map(lambda x: x, max_workers=5).to_list()\n\n```\n\n\n**Type inference**\n\n\n## API\n\nSee [API](https://pyiter.yish.org/pyiter/sequence.html) documention.\n\n- You no need to read API documention. all functions are listed by the code completion as follows.\n \n \n\n- All documentions are showed as follows.\n\n \n\n## Similar libraries\n\nNote that none of the following libraries are providing full strong typing for code completion.\n\n- [Pyterator](https://github.com/remykarem/pyterator)\n- [PyFunctional](https://github.com/EntilZha/PyFunctional)\n- [fluent](https://github.com/dwt/fluent)\n- [Simple Smart Pipe](https://github.com/sspipe/sspipe)\n- [pyxtension](https://github.com/asuiu/pyxtension)\n\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <https://www.apache.org/licenses/LICENSE-2.0>)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/licenses/MIT>)\n\nat your option.\n\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n",
"bugtrack_url": null,
"license": null,
"summary": "PyIter is a Python package for iterative operations inspired by the Kotlin\u3001CSharp(linq)\u3001TypeSrcipt and Rust. Enables strong typing and type inference for iterative operations.",
"version": "0.13.9",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "b381b5176a13770217fb5e0ea18c8a7c1ffcf9a17a9c74fd0f9b1fc8028fa59c",
"md5": "76c4b71fa3727b1285b6429c6496d0a0",
"sha256": "d0232bcf7c877e367221456a8417d0691f1705ded4c15ab4ea4fcdfb48267339"
},
"downloads": -1,
"filename": "pyiter-0.13.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "76c4b71fa3727b1285b6429c6496d0a0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 51641,
"upload_time": "2025-07-23T04:38:44",
"upload_time_iso_8601": "2025-07-23T04:38:44.234457Z",
"url": "https://files.pythonhosted.org/packages/b3/81/b5176a13770217fb5e0ea18c8a7c1ffcf9a17a9c74fd0f9b1fc8028fa59c/pyiter-0.13.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8ca20d280ead82f1b2f9dd3b369a5f4b7e18affb693190f26ec58f9c60c55788",
"md5": "3ff2c33c7b1f9941d18b9ec1ed94265e",
"sha256": "293f8b3535d956ab63bb7f3120ced573782022a1e195aa61b062d247f5fcc1b7"
},
"downloads": -1,
"filename": "pyiter-0.13.9.tar.gz",
"has_sig": false,
"md5_digest": "3ff2c33c7b1f9941d18b9ec1ed94265e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 38121,
"upload_time": "2025-07-23T04:38:45",
"upload_time_iso_8601": "2025-07-23T04:38:45.728255Z",
"url": "https://files.pythonhosted.org/packages/8c/a2/0d280ead82f1b2f9dd3b369a5f4b7e18affb693190f26ec58f9c60c55788/pyiter-0.13.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-23 04:38:45",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pyiter"
}