Skip to content

update URLs from stealthrocket to dispatchrun #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<p align="center">
<img src="https://github.com/stealthrocket/dispatch-proto/assets/865510/87162355-e184-4058-a733-650eee53f333" width="160"/>
<img src="https://github.com/dispatchrun/dispatch-proto/assets/865510/87162355-e184-4058-a733-650eee53f333" width="160"/>
</p>

# dispatch-py

[![Docs](https://github.com/stealthrocket/dispatch-py/actions/workflows/docs.yml/badge.svg?branch=)](https://github.com/stealthrocket/dispatch-py/actions/workflows/docs.yml)
[![PyPI](https://github.com/stealthrocket/dispatch-py/actions/workflows/pypi.yml/badge.svg?branch=)](https://github.com/stealthrocket/dispatch-py/actions/workflows/pypi.yml)
[![Test](https://github.com/stealthrocket/dispatch-py/actions/workflows/test.yml/badge.svg?branch=)](https://github.com/stealthrocket/dispatch-py/actions/workflows/test.yml)
[![Docs](https://github.com/dispatchrun/dispatch-py/actions/workflows/docs.yml/badge.svg?branch=)](https://github.com/dispatchrun/dispatch-py/actions/workflows/docs.yml)
[![PyPI](https://github.com/dispatchrun/dispatch-py/actions/workflows/pypi.yml/badge.svg?branch=)](https://github.com/dispatchrun/dispatch-py/actions/workflows/pypi.yml)
[![Test](https://github.com/dispatchrun/dispatch-py/actions/workflows/test.yml/badge.svg?branch=)](https://github.com/dispatchrun/dispatch-py/actions/workflows/test.yml)
[![PyPI version](https://badge.fury.io/py/dispatch-py.svg)](https://badge.fury.io/py/dispatch-py)
[![Reference](https://img.shields.io/badge/API-Reference-lightblue.svg)](https://python.dispatch.run/main/reference/dispatch/)

Expand Down Expand Up @@ -45,12 +45,12 @@ configuration and execution of applications that use Dispatch. On macOS, this
can be done easily using [Homebrew](https://docs.brew.sh/):

```console
brew tap stealthrocket/dispatch
brew tap dispatchrun/dispatch
brew install dispatch
```

Alternatively, you can download the latest `dispatch` binary from the
[Releases](https://github.com/stealthrocket/dispatch/releases) page.
[Releases](https://github.com/dispatchrun/dispatch/releases) page.

*Note that this step is optional, applications that use Dispatch can run without
the CLI, passing configuration through environment variables or directly in the
Expand Down Expand Up @@ -156,7 +156,7 @@ async def transform(msg):
Dispatch converts Python coroutines to *Distributed Coroutines*, which can be
suspended and resumed on any instance of a service across a fleet. For a deep
dive on these concepts, read our blog post on
[*Distributed Coroutines with a Native Python Extension and Dispatch*](https://stealthrocket.tech/blog/distributed-coroutines-in-python).
[*Distributed Coroutines with a Native Python Extension and Dispatch*](https://dispatch.run/blog/distributed-coroutines-in-python).

### Integration with FastAPI

Expand Down Expand Up @@ -231,7 +231,7 @@ the pickle library attempts serialization.

For help with a serialization issues, please submit a [GitHub issue][issues].

[issues]: https://github.com/stealthrocket/dispatch-py/issues
[issues]: https://github.com/dispatchrun/dispatch-py/issues

## Examples

Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
This is the API reference for the Python SDK of Dispatch.

- Tutorials and guides: [docs.dispatch.run][docs].
- Source: [stealthrocket/dispatch-py][github].
- Source: [dispatchrun/dispatch-py][github].


[docs]: https://docs.dispatch.run
[github]: https://github.com/stealthrocket/dispatch-py
[github]: https://github.com/dispatchrun/dispatch-py
6 changes: 3 additions & 3 deletions examples/fanout/fanout.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ async def reduce_stargazers(repos):
async def fanout():
# Using gather, we fan-out the four following requests.
repos = await gather(
get_repo("stealthrocket", "coroutine"),
get_repo("stealthrocket", "dispatch-py"),
get_repo("stealthrocket", "wzprof"),
get_repo("dispatchrun", "coroutine"),
get_repo("dispatchrun", "dispatch-py"),
get_repo("dispatchrun", "wzprof"),
)

stars = await reduce_stargazers(repos)
Expand Down
2 changes: 1 addition & 1 deletion examples/github_stats/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def get_contributors(repo_info: dict):

@dispatch.function
async def main():
repo_info = await get_repo_info("stealthrocket", "coroutine")
repo_info = await get_repo_info("dispatchrun", "coroutine")
print(
f"""Repository: {repo_info['full_name']}
Stars: {repo_info['stargazers_count']}
Expand Down