vovk_hello_world v0.0.89

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)
| File | Size | Uploaded | |
|---|---|---|---|
| vovk_hello_world-0.0.89.tar.gz | 10.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|