@polyrpc/client
v0.4.0
Published
Type-safe Python API client for TypeScript
Downloads
23
Maintainers
Readme
@polyrpc/client
Type-safe Python API client for TypeScript.
Installation
npm install @polyrpc/clientUsage
import { createClient } from '@polyrpc/client';
import type { PolyRPCRoutes } from './polyrpc.d';
const py = createClient<PolyRPCRoutes>({
baseUrl: 'http://localhost:8000',
});
// Fully typed!
const user = await py.users.get.query({ id: 1 });Documentation
See polyrpc.dev for full documentation.
License
MIT
