Skip to content

Releases: Ananto30/zero

v0.8.0-beta

12 Jul 21:23
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.0-beta...v0.8.0-beta

v0.7.0-beta

28 Jun 22:05
Compare
Choose a tag to compare

v0.6.0-beta

28 Jun 21:56
Compare
Choose a tag to compare

Now on server, the rpc functions args are converted to actual object as their type hints!

Add schema validation

v0.5.2-beta

28 Jun 21:52
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5.1-beta...v0.5.2-beta

v0.5.1-beta

28 Jun 21:37
Compare
Choose a tag to compare

What's Changed

  • Run async functions in a separate thread by @Ananto30 in #52

Full Changelog: v0.5.0-beta...v0.5.1-beat

v0.5.0-beta

25 Oct 18:33
Compare
Choose a tag to compare

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

Full Changelog: v0.4.0-beta...v0.5.0-beta

v0.4.0-beta

10 Jun 07:18
Compare
Choose a tag to compare

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

08 Apr 11:10
Compare
Choose a tag to compare

Full Changelog: v0.3.6-beta...v0.3.60-beta

Fixed versioning πŸ˜“

v0.3.6-beta

08 Apr 09:25
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.51-beta...v0.3.6-beta

v0.3.51-beta

02 Apr 09:20
Compare
Choose a tag to compare

Now supports decorator to register rpc functions!

What's Changed

  • Add rpc decorator for registering function by @Ananto30 in #31

Full Changelog: v0.3.4-beta...v0.3.51-beta