Skip to main content

vovk_hello_world v0.0.89 Checked with mypy Vovk.ts

A "Hello World!" app built with Next.js, Vovk.ts and Zod. For details, visit https://vovk.dev/hello-world

License: MIT

# Install the package
pip install vovk_hello_world

UserRPC

UserRPC.update_user

Update user

Update user by ID

POST https://hello-world.vovk.dev/api/users/{id}

from vovk_hello_world import UserRPC

response = UserRPC.update_user(
    body={
        # -----
        # User data object
        # -----
        # User email
        "email": "john@example.com",
        # User profile object
        "profile": {
            # User full name
            "name": "John Doe",
            # User age
            "age": 25
        }
    },
    query={
        # -----
        # Query parameters
        # -----
        # Notification type
        "notify": "email"
    },
    params={
        # -----
        # Path parameters
        # -----
        # User ID
        "id": "123e4567-e89b-12d3-a456-426614174000"
    },
)

print(response)
# {
#     # -----
#     # Response object
#     # -----
#     # Success status
#     "success": True,
#     # User ID
#     "id": "00000000-0000-0000-0000-000000000000",
#     # Notification type
#     "notify": "email"
# }

StreamRPC

StreamRPC.stream_tokens

Stream tokens

Stream tokens to the client

GET https://hello-world.vovk.dev/api/streams/tokens

from vovk_hello_world import StreamRPC

response = StreamRPC.stream_tokens()

for i, item in enumerate(response):
    print(f"iteration #{i}:\n {item}")
    # iteration #0:
    # {
    #     # -----
    #     # Streamed token object
    #     # -----
    #     # Message from the token
    #     "message": "string"
    # }

OpenApiRPC

OpenApiRPC.get_spec

OpenAPI spec

Get the OpenAPI spec for the "Hello World" app API

GET https://hello-world.vovk.dev/api/static/openapi.json

from vovk_hello_world import OpenApiRPC

response = OpenApiRPC.get_spec()

Metadata

Release files for vovk-hello-world 0.0.89

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vovk-hello-world 0.0.89
File Size Uploaded
vovk_hello_world-0.0.89.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vovk-hello-world 0.0.89
File Interpreter ABI Platform
vovk_hello_world-0.0.89-py3-none-any.whl Python 3 none any Details

Total release size: 21.8 kB

Release files / vovk_hello_world-0.0.89.tar.gz

Download URL vovk_hello_world-0.0.89.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
00dcd947290929e48844df4b890e0a292bb2122c9ab57a74879d64a406799e66
BLAKE2b-256 checksum
How to use checksums
7ec3b6f1f5b4936471ae4d6352aa7fc024b919a9de98e8a688382b4ee9e0d4b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / vovk_hello_world-0.0.89-py3-none-any.whl

Download URL vovk_hello_world-0.0.89-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
336d786167e5149188a6c249f4c37e457354c0958c53148c9706c40d2ea9a6d0
BLAKE2b-256 checksum
How to use checksums
efeb37491b2f1a4ab59e122d1af80bee5fcf5371871f1a5901d7d3f9a147f067
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.0.89 This release

2 release files

0.0.88

2 release files

0.0.87

2 release files

0.0.86

2 release files

0.0.85

2 release files

0.0.84

2 release files

0.0.81

2 release files

0.0.79

2 release files

0.0.78

2 release files

0.0.77

2 release files

0.0.76

2 release files

0.0.75

2 release files

0.0.74

2 release files

0.0.73

2 release files

0.0.72

2 release files

0.0.70

2 release files

0.0.69

2 release files

0.0.68

2 release files

0.0.66

2 release files

0.0.47

2 release files

0.0.46

2 release files

0.0.45

2 release files

0.0.44

2 release files

0.0.29

2 release files

0.0.28

2 release files

0.0.27

2 release files

0.0.26

2 release files

0.0.25

2 release files

0.0.24

2 release files

0.0.23

2 release files

0.0.22

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page