Skip to content

Add asyncly#117

Open
andy-takker wants to merge 1 commit into
timofurrer:mainfrom
andy-takker:add-asyncly
Open

Add asyncly#117
andy-takker wants to merge 1 commit into
timofurrer:mainfrom
andy-takker:add-asyncly

Conversation

@andy-takker

Copy link
Copy Markdown

What is this project?

asyncly has two halves that fit together. A thin, typed client base class that cuts per-endpoint boilerplate when building async HTTP clients, and srvmocker — helpers that start a real aiohttp test server in the same event loop so you can test those clients against scripted responses, real latency and timeouts, and assert what they sent.

https://github.com/andy-takker/asyncly

Why is it awesome?

  • A small client base class to drop boilerplate per endpoint, plus a real aiohttp mock server to test it — both in one library.
  • The mock server runs in the test's own loop — real sockets and real timeouts, not a patched transport like aioresponses.
  • Scriptable responses: sequences for retries, latency for timeouts, raw bytes for broken payloads.
  • Lets you assert exactly what the client sent (json / headers / query).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant