semvec/pypi-packages huggingface dataset:
pipefun 0.0.7
A lightweight package that contains pipe operators and functional tools
License: MIT
Requires Python: >=3.8

# Pipefun

A simple, lightweighted, zero dependency python piping package.

## Install
```bash
pip install pipefun
```

## Usage
```python
from pipefun import Pipable, out
from pipefun.Functionals import square

add_to = lambda a: lambda b: a + b # a curried **add** function

output = ~(x >> add_to(3) >> square)

print(output) # 36
```

The `>>` operator pushes a `Pipable` into a function and return a new `Pipable` with the return value of the function.
The `~` operator pulls the value in a `Pipable`

**Note that `Pipable` is *immutable*, so the returned `Pipable` doesn't equal the input and is a new one**
```python
x_out = x >> add_to(3) >> square

print(x_out == x) # False
print(~x_out == ~x) # False
```

### Pipe merging
In daily use case, it's very possible that functions take more than 1 arg. To handle this, `Pipable` can store more than 1 values and plug them into a function when needed.

We use the `|` operator to merge `Pipable`s. In Python, it has lower priority than `>>`. 

```python
x = Pipable(3)
y = Pipable(5)

out = x >> square # Pipable(9)

# merge two Pipables together
out = out | y # Pipable(9, 5)

# plug the pipes into a two args function
out = out >> add # Pipable(14)

print(~out) # 14
```

Alternatively, in one line.
```python
out = ( x >> square | y) >> add # Pipable(14)
print(~out) # 14
```

### Let's discard the `~` operator
There is a special function in Pipable package that do nothing. If a Pipable is piped into it, same thing will happen with what the `~` operator do.
```python
from pipefun import Pipable, out

x = Pipable(2)

y = x >> square >> out
print(y) # 4
```
fastapi-sqlalchemy-async 0.0.1
FastAPI-Sqlalchemy integration with async support
License: MIT

# Fastapi Sqlalchemy Async

![PyPI](https://img.shields.io/pypi/v/fastapi-sqlalchemy-async)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/fastapi-sqlalchemy-async)
![PyPI - License](https://img.shields.io/pypi/l/fastapi-sqlalchemy-async)

![GitHub last commit](https://img.shields.io/github/last-commit/uselessscat/fastapi-sqlalchemy-async)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/uselessscat/fastapi-sqlalchemy-async)
![GitHub issues](https://img.shields.io/github/issues/uselessscat/fastapi-sqlalchemy-async)
![GitHub pull requests](https://img.shields.io/github/issues-pr/uselessscat/fastapi-sqlalchemy-async)


### Notice

**Under inital development. This can not be ready-for-production library.**

This can means:

- Breaking changes may be introduced
- Poor documentation and changeslogs
- Not totally tested
- Be forced to navigate through the source code to find out how it works

Wait to a version > 0.1.0 for usage in production environments.

## Installation

You can install this library with:

    pip3 install fastapi-sqlalchemy-async

## Usage

**TODO**

# License

This software is distributed under [MIT license](LICENSE).