Skip to content

Commit

Permalink
Renaming the project to borkpipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed Apr 27, 2024
1 parent cb18218 commit 2d64f2b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PyPipeline
# BorkPipeline

[![Tests](https://github.com/borkweb/pypipeline/workflows/Tests/badge.svg)](https://github.com/borkweb/pypipeline/actions?query=branch%3Amain)
[![Tests](https://github.com/borkweb/borkpipeline/workflows/Tests/badge.svg)](https://github.com/borkweb/borkpipeline/actions?query=branch%3Amain)

A Pipeline / [Chain of Responsibility](https://refactoring.guru/design-patterns/chain-of-responsibility) design pattern implementation based on [Laravel's Pipeline implementation](https://github.com/illuminate/pipeline/blob/master/Pipeline.python).

Expand Down Expand Up @@ -58,7 +58,7 @@ flowchart LR
Install PyPipeline via pip:

```bash
pip install borkweb/pypipeline
pip install borkweb/borkpipeline
```

## Getting started
Expand Down Expand Up @@ -90,7 +90,7 @@ flowchart LR
```

```python
from pypipeline.pipeline import Pipeline
from borkpipeline.pipeline import Pipeline

# Create a new pipeline instance.
pipeline = Pipeline()
Expand Down Expand Up @@ -126,7 +126,7 @@ flowchart LR
```

```python
from pypipeline.pipeline import Pipeline
from borkpipeline.pipeline import Pipeline

# Create a new pipeline instance.
pipeline = Pipeline()
Expand Down Expand Up @@ -169,7 +169,7 @@ flowchart LR
```

```python
from pypipeline.pipeline import Pipeline
from borkpipeline.pipeline import Pipeline

pipeline = Pipeline()

Expand Down Expand Up @@ -226,7 +226,7 @@ flowchart LR
```

```python
from pypipeline.pipeline import Pipeline
from borkpipeline.pipeline import Pipeline

pipeline = Pipeline().through([TitlePipe(), StripPipe()])
result = pipeline.send(' hello world ').then_return()
Expand Down Expand Up @@ -272,7 +272,7 @@ flowchart LR
```

```python
from pypipeline.pipeline import Pipeline
from borkpipeline.pipeline import Pipeline

pipeline = Pipeline().via('execute').through([StripPipe(), ReversePipe()])
result = pipeline.send(' hello ').then_return()
Expand All @@ -288,7 +288,7 @@ can do this with a `return` statement!
#### Example pipeline

```python
from pypipeline.pipeline import Pipeline
from borkpipeline.pipeline import Pipeline

def check_content(passable, next_pipe):
if 'stop' in passable:
Expand Down Expand Up @@ -326,7 +326,7 @@ flowchart LR
```

```python
from pypipeline.pipeline import Pipeline
from borkpipeline.pipeline import Pipeline

pipeline = Pipeline().through([str.strip, str.upper])
result = pipeline.send(' hello world ').then(lambda x: len(x))
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 2d64f2b

Please sign in to comment.