Skip to main content

A simple tool designed to automatically generate usable types, functions, and other useful server-side code from a list of [FastAPI](https://fastapi.tiangolo.com/) application to a given framework.

Reason this release was yanked:

Packaging error

Project description

fast2app package

Maintenance License: MIT coverage

FastAPI Nuxtjs

Description

A simple tool designed to automatically generate usable types, functions, and other useful server-side code from a list of FastAPI application to a given framework.

This is particularly helpful when working with FasttAPI backends applications and wanting to generate types and functions for the frontend.

Currently supported frameworks

Installation

#  Install fast2app
pip install fast2app

Requirements

This package is currently compatible with python 3.11 and above.

It requires that you have the quicktype CLI utility installed.

#  Install quicktype
npm install -g quicktype

Usage and examples

This package is used as a CLI tool.

# Nuxt3
# You must ammend your nuxt.config.ts file and environement variables in order to use the new generated files. See documentations below.

fast2nuxt --fast-api-app path/to/fastapi/app.py::app_name --export-path path/to/nuxt/app/root/folder -composables

For specific instructions, please see :

Helpdesk

Go here to report an issue

Current Features

Core

  • Command line interface with fast2app
  • Export FastAPI pydantic model as typescript interfaces in nuxt, including Enums
  • Export FastApi as Nuxt API Server
  • Export FastApi as Nuxt Composables

Tests

  • Base Tests
  • Utils Tests
  • Export Tests
  • CLI Tests
  • Integration tests :
    • Nuxt :
      • Api Server
      • Composables
  • Coverage as artifacts
  • Junit reports

Roadmap

Future releases

  • Create e more robust documentation in a website
  • make it compatible with older python versions
  • Refactor package to more easily add support for more frameworks.
  • Refactor testing in order to use the same parameters and edge cases for all frameworks.
  • Add python framework support.

Ambitions

  • Add support for more frameworks (React, Vue, Angular, etc.) with contributions from the community.

Contributing

I've launched into this project as a side task of a bigger endeavor.

Considerig the growing popularity of FastAPI, I think that this tool could be a great addition to the ecosystem and I have decided to make it open source.

I'm new to open source and am open to any ideas, contribution or constructive feedback.

Go here to contact me

Retrieve the repository

cd existing_repo
git remote add origin https://git.mydh.io/shared/fast2app.git
git branch -M main
git pull origin main

License

This project is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fast2app-1.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

fast2app-1.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file fast2app-1.2.tar.gz.

File metadata

  • Download URL: fast2app-1.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for fast2app-1.2.tar.gz
Algorithm Hash digest
SHA256 543360b2b37098f032bb4f951d3f63282b08052906629884f419c1c7a536fee1
MD5 c14176871fe16b948817030a90257ba2
BLAKE2b-256 f0ccb659cf1ad1f60fbf3bf58615c301eadeb1eeb169a0103ac1b34985567b66

See more details on using hashes here.

File details

Details for the file fast2app-1.2-py3-none-any.whl.

File metadata

  • Download URL: fast2app-1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for fast2app-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 760ec18e8d7f7c81e27a38e83e86274195585871ecc0eedbc2a4695f727f6c98
MD5 12c5443f7499baf04bc75a179de5695d
BLAKE2b-256 d684c7be376d83abb40ee91429a50e0ed8c1a5b8ac2028b9d88891e5c2acc011

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page