Giter VIP home page Giter VIP logo

custom_sqla_init's Introduction

Custom SQL Alchemy init

Purpose

This project is an SQL Alchemy init file with some improvements. It intends to be :

  • A starter for using SQL Alchemy.
  • Workarounds to improve or bypass some SQL Alchemy behaviours
  • Used in an independant database management python module
  • Used with Flask, but can easily be modified to be used without

Features

  • Nearly out of the box init.py file for a dedicated DB python module
  • Automatic call to tables mirroring (automap)
  • Automatic call to relationships mirroring (reflection)
  • Custom automatic naming functions for mirrored relationships, avoiding collisions
  • Use of flask sqlachem session module for automatic connections keep-alive
  • Helper function for garanted unique object getter
  • Helper function for safe properties recording in an object
  • Manually table python objects definition

Note : Use 'SQLALCHEMY_DATABASE_URI' in your config file in order to define the database for SQL Alchemy. In case of doubt, check SQL Alchemy documentation.

Dependencies

Python 2.7

Installed with pip

  • Flask 0.10.1
  • SQLAlchemy 1.0.8
  • Flask-SQLAlchemy-Session 1.1

Note : These modules are evolving pretty fast. It is recommended to quickly check compatibility before updating it.

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.