Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suned/pfun
Functional, composable, asynchronous, type-safe Python.
https://github.com/suned/pfun
async asyncio curry currying effect-system effects functional-programming immutable immutable-collections immutable-datastructures immutable-objects mypy python-3 python3 static-code-analysis type-safety types zio
Last synced: 2 days ago
JSON representation
Functional, composable, asynchronous, type-safe Python.
- Host: GitHub
- URL: https://github.com/suned/pfun
- Owner: suned
- License: mit
- Created: 2019-08-04T21:32:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-20T20:33:53.000Z (about 1 year ago)
- Last Synced: 2024-12-10T08:10:17.078Z (12 days ago)
- Topics: async, asyncio, curry, currying, effect-system, effects, functional-programming, immutable, immutable-collections, immutable-datastructures, immutable-objects, mypy, python-3, python3, static-code-analysis, type-safety, types, zio
- Language: Python
- Homepage: https://pfun.dev/
- Size: 1.58 MB
- Stars: 150
- Watchers: 6
- Forks: 14
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
##
Functional, composable, asynchronous, type-safe Python.
- [Documentation](https://pfun.dev)
- [Known issues](https://github.com/suned/pfun/issues?q=is%3Aopen+is%3Aissue+label%3Abug)## Install
```console
$ pip install pfun
```Or with optional dependencies:
```console
$ pip install pfun[http,sql]
```## Resources
### Articles
- [Purely Functional Python With Static Types](https://dev.to/suned/purely-functional-python-with-static-types-41mf)
- [Be More Lazy, Become More Productive](https://dev.to/suned/be-more-lazy-become-more-productive-2cnb)
- [Completely Type-Safe Error Handling in Python](https://dev.to/suned/completely-type-safe-error-handling-in-python-3apg)
- [Completely Type-Safe Dependency Injection in Python](https://dev.to/suned/completely-type-safe-dependency-injection-in-python-48a5)
- [How To Make Functional Programming in Python Go Fast](https://dev.to/suned/how-to-make-functional-programming-in-python-go-fast-ad6)### Examples
- [Todo-Backend](https://github.com/suned/pfun-todo-backend/) (implementation of [todobackend.com](https://todobackend.com/))
## SupportOn [ko-fi](https://ko-fi.com/python_pfun)
## Development
Requires [poetry](https://poetry.eustace.io/)
- Install dependencies with `poetry run task install -E http -E sql`
- Build documentation with `poetry run task serve-docs`
- Run tests with `poetry run task test`
- Lint with `poetry run task lint`