並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 8 件 / 8件

新着順 人気順

sqlalchemy python postgresql exampleの検索結果1 - 8 件 / 8件

  • GitHub - modelcontextprotocol/servers: Model Context Protocol Servers

    Official integrations are maintained by companies building production ready MCP servers for their platforms. 21st.dev Magic - Create crafted UI components inspired by the best 21st.dev design engineers. ActionKit by Paragon - Connect to 130+ SaaS integrations (e.g. Slack, Salesforce, Gmail) with Paragon’s ActionKit API. Adfin - The only platform you need to get paid - all payments in one place, in

      GitHub - modelcontextprotocol/servers: Model Context Protocol Servers
    • Python: Just write SQL

      I have been writing a lot more Go this past year. For those not familiar, Go favours a non-ORM, non-query-builder approach to interacting with databases. This comes naturally due to the sql package: A common interface to be used alongside database drivers. It’s very common to see actual SQL in Go, even in large projects. On the other hand, Python does not have anything in the standard library that

      • [Python]SQLAlchemyのよくやる使い方まとめ

        最近では、PythonのWebアプリのバックエンドで使うことが多く、 そのRDBのDriverとして、SQLAlchemyを採用することが多いです。 (使っているDBはpostgreqlです。) 今回は、SQLAlchemyの実際によく使う使い方をまとめてみました。 どうやって実装したっけ?とよく昔のプロジェクトのソースコードを参照することが多かったので、自分向けのメモとしても残しておきます。 Model編 Base Class 以下のような基底クラスを定義しておき、それを継承させると便利です。 from sqlalchemy.ext.declarative import as_declarative, declared_attr @as_declarative() class Base: @declared_attr def __tablename__(cls): return cls.

          [Python]SQLAlchemyのよくやる使い方まとめ
        • TerraformとCloud RunとCloud Load BalancingでCI/CDを突き詰めた

          こんにちは。 ピリカ開発チームの伊藤です。 ピリカでは6月1日より、ピリカサポーターズクラブを開始しました。 まだご覧になっていない方はこちらをご覧ください。 corp.pirika.org ピリカサポーターズクラブをはじめるにあたって新しいシステムを構築しました。 ピリカの開発チームのリソースは潤沢ではない中、全く新しいシステムを作るのはとても大きなチャレンジです。 社内からも「開発のリソースが潤沢でないならSNSピリカに注力すべき」という意見はありましたが、開発チームでは単に新しいシステムを作るだけではなく、この開発を「SNSピリカの開発を今後少ないリソースで効率的に進めるために必要な基盤の実験」としても位置付けていました。 この開発を通じて得たことのまとめとして、ピリカサポーターズクラブの構成やデプロイの仕組みをご紹介したいと思います。 SNSピリカの開発で抱えている問題 SNSピリ

            TerraformとCloud RunとCloud Load BalancingでCI/CDを突き詰めた
          • SQL (Relational) Databases - FastAPI

            Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing. FastAPI doesn't require you to use a SQL (relational) database. But you can use any database that you want. Here we'll see an example using SQLModel. SQLModel is built on top of SQLAlchemy and Pydantic. It was made by the same author of FastAPI to be the perfect match for Fas

              SQL (Relational) Databases - FastAPI
            • PythonとFlaskの魔法:Webアプリ開発を効率化するFlaskとの連携 - Python転職初心者向けエンジニアリングブログ

              ### PythonのWebアプリケーションフレームワークとして広く利用されているFlaskは、シンプルで柔軟な構造により、開発者に優れた自由度を提供しています。この記事では、PythonとFlaskの連携に焦点を当て、具体的なコード例を交えつつ、Flaskを使用したWebアプリケーションの開発手法や豆知識を掘り下げていきます。 Flaskとは何か FlaskはPythonの軽量なWebアプリケーションフレームワークで、マイクロフレームワークの一種です。シンプルながらも強力で、必要最低限の機能を提供しつつ、拡張機能を導入することで柔軟に機能を拡張できます。これにより、小規模なプロジェクトから大規模なアプリケーションまで、幅広い開発ニーズに対応できます。 Flaskの基本的な機能 Flaskが提供する基本的な機能を理解することで、開発の初めての一歩を踏み出すことができます。以下に、Flask

                PythonとFlaskの魔法:Webアプリ開発を効率化するFlaskとの連携 - Python転職初心者向けエンジニアリングブログ
              • Cloud SQL Auth Proxyを使用してCloud RunからCloud SQLに接続する - G-gen Tech Blog

                G-gen の佐々木です。当記事では、Google Cloud (旧称 GCP) のサーバーレスコンテナサービスである Cloud Run から、マネージドなリレーショナルデータベースサービスの Cloud SQL に安全に接続する方法を紹介します。 使用するサービス Cloud Run Cloud SQL Cloud Run から Cloud SQL に接続する方法 サーバーレス VPC アクセスコネクタ の使用 Cloud SQL Auth Proxy の使用 Cloud SQL の作成と設定 Cloud SQL インスタンスを作成する データベースを作成する ユーザーを作成する Cloud SQL に接続する Cloud Run サービスを作成 Cloud Run サービスに紐付けるサービスアカウントを作成する サンプルアプリケーションを Cloud Run にデプロイする サンプル

                  Cloud SQL Auth Proxyを使用してCloud RunからCloud SQLに接続する - G-gen Tech Blog
                • The ultimate async setup: FastAPI, SQLModel, Alembic, Pytest

                  FastAPI is a popular topic nowadays and I have decided to share my setup for an async web-server using this framework. Here is a short description of python packages used in the article (just to make a whole picture to save your time): Poetry (https://python-poetry.org) — is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and

                    The ultimate async setup: FastAPI, SQLModel, Alembic, Pytest
                  1