Package: zapy-sdk
The pythonic REST client and testing tool.Zapy REST Client - SDKZapy REST Client is an extension for VSCode that serves as a tool for testing APIs. The accompanying Zapy SDK, a Python library, is an integral component that enables the utilization of Zapy request files, empowering the client and Python scripts to perform API operations. The primary goal is to streamline the process of API testing.Documentation:https://docs.zapy.devGithub repo:https://github.com/ZapyLabs/zapy-sdkFAQ:https://zapy.dev/faqKey features❤️Python/Jinja2 expressions: Utilize 🐍 Python and Jinja2 expressions for variable declaration and string templating.🗔Visual interface: Enjoy the VSCode extension for rapid development, enhancing productivity and ease of use.⚡️Async operations: Support async functions, hooks and stores for handling requests and responses.📝File based and git sync: Manage your requests with file-based local storage and optional Git for collaboration 👨‍👩‍👧‍👦.🐍Python scripting and tests. Leverage Python scripting capabilities and conduct tests within the client. Import packages and use snippets for enhanced functionality and customization.🚀CI/CD Ready: Import and execute request files directly within your integration tests.♻️Request reusability and invocation: Reuse requests and integrate seamlessly with your favorite tools such as pytest, Playwright, or Robot Framework, enhancing interoperability and extensibility.🔗Chaining: Chain requests using Jupyter notebooks and/or stores, facilitating interactive exploration and collaboration.RequirementsPython 3.11+For using the VSCode extension:Python virtual environmentZapy SDKVSCodeUsageInstallZapy VSCode Extension.Install the python library under a virtual environment.pipinstallzapy-sdkCreate a.zapyfile, for examplemy_first_request.zapy.Start the Zapy server.Send your request 🚀.RequestsCreate requests visually using theZapy VSCode Extension.StoresStores enable the persistence and inspection of Python data for use in multiple requests, including the creation and management ofenvironment variables.HooksHooks can be global or request-specific, allowing interception and modification of requests, such as forauthentication.fromzapy.requestsimporthooks,HttpxArguments@hooks.pre_requestasyncdefon_each_request(httpx_args:HttpxArguments):httpx_args['auth']=('alice','ecila123')print(httpx_args)ChainingChainingruns a sequence of requests with one click, using responses from one request in the next. It also offers the ability to use conditionals or to resume from a failed step.Integration testRequests and their tests can be invoked directly on yourintegration tests.importpytestfromzapyimportrequests@pytest.mark.asyncioasyncdeftest_single():request=requests.from_path("request1.zapy")# if raise_assert is enabled, it will perform all assertions defined in the request file_=awaitrequest.send(raise_assert=True)PrivacyData for authentication is collected when using Zapy VSCode Extension. No personal or request data is collected.LicenseZapy REST Client - SDK (a.k.a. Zapy SDK) is licensed under the terms of the Business Source License 1.1 (BSL).
Zapy REST Client (a.k.a. Zapy VSCode Extension) is under End User Service Agreement.By installing or running this software you expressly agree with the terms of use.