Giter Site home page Giter Site logo

koldakov / futuramaapi Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 11.45 MB

Futurama inspired REST and GraphQL API, blending characters exploration with real-time updates. Tech playground featuring FastAPI, Docker, and more!

Home Page: https://futuramaapi.com

License: Apache License 2.0

Makefile 0.28% Python 84.19% Mako 0.38% CSS 0.02% HTML 14.30% Shell 0.08% Dockerfile 0.76%
alembic async babel fastapi graphql http2 hypercorn python sqlalchemy sqlalchemy-python

futuramaapi's Introduction

GitHub Profile views GitHub followers GitHub Org's stars

GitHub stats Most Used Languages

Follow me:

img img img

futuramaapi's People

Contributors

koldakov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ciumabok

futuramaapi's Issues

relationship will copy column to column which conflicts with relationship(s)

sys:1: SAWarning: relationship 'Episode.characters' will copy column episodes.id to column episode_character_association.episode_id, which conflicts with relationship(s): 'EpisodeCharacterAssociation.episode' (copies episodes.id to episode_character_association.episode_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="episode"' to the 'Episode.characters' relationship. (Background on this warning at: https://sqlalche.me/e/20/qzyx) (This warning originated from the configure_mappers() process, which was invoked automatically in response to a user-initiated operation.)

As I understand this warning is useless, but anyway need to check deeply

Tokens infrastructure

Currently futuramaapi.routers.tokens.schemas.DecodedUserToken has only 2 types: access and refresh.

Shall activate/password change/other token have it's own type?

From the 1 hand with activate/password change token people can access users info, but from the other hand that's an access token itself. Not sure about the logic here

fastapi pagination improvement

When it's used it's not really limit the select, but retrieves all rows from DB and limits the result, which is not good.

    return await paginate(
        session,
        select(CharacterModel)
        .order_by(
            CharacterModel.get_order_by(
                field=order_by,
                direction=direction,
            )
        )
        .where(
            *get_characters_cond(
                gender=gender,
                character_status=character_status,
                species=species,
                query=query,
            )
        ),
    )

So this part of the code should be fixed, here should be a limit.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.