Skip to content

Feature Request: Instead of just exposing the crud endpoints, can it generate the actual methods in a file? #216

Closed

Description

@arun-pt

Idea is to utilize piccolo FastAPIWrapper to generate both router files and service/repository files for the basic crud actions on a table.
Reference: https://docs.nestjs.com/recipes/crud-generator

Advantages:

  1. It can then be easy to override logic based on one's use cases.
  2. The generated method can then be called from other services directly instead of relying only on a HTTP call
  3. Useful to scaffold a larger fastapi project with minimal effort.

BTW, I have been already enjoying working with piccolo with its many awesome features. Thanks a lot.

Activity

  1. dantownsend commented on Mar 4, 2023

    @dantownsend
    Member

    It's an interesting idea.

    We currently have some code scaffolding available via piccolo asgi new, but this is just for a new project.

    We also have piccolo app new which generates a new Piccolo app, but doesn't contain any endpoints.

    If we were to add more scaffolding, it would probably be augmenting these existing commands.

    For example piccolo asgi route.

  2. converted this issue into a discussion #314 on Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions