Releases: Ananto30/zero
v0.8.0-beta
What's Changed
- Codegen now produce models by @Ananto30 in #57
- Update github actions versions by @Ananto30 in #58
- Fix codecov action to take token by @Ananto30 in #59
- Add python 3.11 and 3.12 in github action by @Ananto30 in #61
- Support thread workers by @Ananto30 in #60
Full Changelog: v0.7.0-beta...v0.8.0-beta
v0.7.0-beta
Improve client using asyncio event
Full Changelog: v0.6.0-beta...v0.7.0-beta
v0.6.0-beta
Now on server, the rpc functions args are converted to actual object as their type hints!
v0.5.2-beta
What's Changed
Full Changelog: v0.5.1-beta...v0.5.2-beta
v0.5.1-beta
What's Changed
Full Changelog: v0.5.0-beta...v0.5.1-beat
v0.5.0-beta
What's Changed
- Update rpc return type to return bool instead of None on README by @zakybilfagih in #45
- Fix http request handle issue by @Ananto30 in #42
- Make connection pool for each threads in client by @Ananto30 in #46
New Contributors
- @zakybilfagih made their first contribution in #45
Full Changelog: v0.4.0-beta...v0.5.0-beta
v0.4.0-beta
Msgspec as default serializer! π
Default serializer
Msgspec is the default serializer. So msgspec.Struct
(for high performance) or dataclass
or any supported types can be used easily to pass complex arguments, i.e.
from dataclasses import dataclass
from msgspec import Struct
from zero import ZeroServer
app = ZeroServer()
class Person(Struct):
name: str
age: int
dob: datetime
@dataclass
class Order:
id: int
amount: float
created_at: datetime
@app.register_rpc
def save_person(person: Person) -> None:
# save person to db
...
@app.register_rpc
def save_order(order: Order) -> None:
# save order to db
...
Return type
The return type of the RPC function can be any of the supported types. If return_type
is set in the client call
method, then the return type will be converted to that type.
@dataclass
class Order:
id: int
amount: float
created_at: datetime
def get_order(id: str) -> Order:
return zero_client.call("get_order", id, return_type=Order)
What's Changed
Full Changelog: v0.3.60-beta...v0.4.0-beta
v0.3.60-beta
Full Changelog: v0.3.6-beta...v0.3.60-beta
Fixed versioning π
v0.3.6-beta
What's Changed
- General code quality fixes by @bswck in #34
- Don't swallow server-side exceptions by @powellnorma in #35
- Add ctrl-c handling for windows by @Ananto30 in #32
- Add mypy and pytype by @Ananto30 in #37
New Contributors
- @bswck made their first contribution in #34
- @powellnorma made their first contribution in #35
Full Changelog: v0.3.51-beta...v0.3.6-beta
v0.3.51-beta
Now supports decorator to register rpc functions!
What's Changed
Full Changelog: v0.3.4-beta...v0.3.51-beta