neocurl 2.0.5

A command line tool to test servers
Documentation

Crates.io Docs.rs License

[!tip] Hosted on Forgejo and mirrored on GitLab for people without local accounts. Issues and MRs are welcome everywhere. Visit https://lovie.dev/code for more info.

NeoCurl

A command line tool to test servers.

Read the book for quick start and guide.

Features

  • Sending requests
  • Asserts
  • Logs
  • Third-party libs
  • Async requests

Example

import neocurl as nc

@nc.define
def get(client):
    response = client.get("https://httpbin.org/get")
    nc.info(f"Response status: {response.status}, finished in {response.duration:.2f}ms")
    assert response.status_code == 200, f"Expected status code 200, but got {response.status_code} ({response.status})"
    response.print()