Type-safe Python API client for TypeScript
npm install @polyrpc/clientbash
npm install @polyrpc/client
`
Usage
`typescript
import { createClient } from '@polyrpc/client';
import type { PolyRPCRoutes } from './polyrpc.d';
const py = createClient({
baseUrl: 'http://localhost:8000',
});
// Fully typed!
const user = await py.users.get.query({ id: 1 });
``