Giter Site home page Giter Site logo

timy-life / skylark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hit9/skylark

0.0 2.0 0.0 2.61 MB

A micro python orm for mysql and sqlite3.

Home Page: http://skylark.readthedocs.org/

License: BSD 2-Clause "Simplified" License

Python 100.00%

skylark's Introduction

Skylark

A micro python orm for mysql and sqlite3. (Original named CURD.py).

Latest version: v0.9.1

Development status: 4 - Beta

Testing status: Build Status

Sample Code

>>> from models import User
>>> user = User(name='Tom', email='[email protected]')
>>> user.save()  # insert
1
>>> user.email = '[email protected]'
>>> user.save()  # update
1
>>> [user.name for user in User.select()]  # select
[u'Tom']
>>> query = User.where(name='Tom').delete()
>>> query.execute()  # delete
1
>>> user = User.create(name='Kate', email='[email protected]')  # another insert
>>> user
{'email': '[email protected]', 'name': 'Kate', 'id': 2}
>>> user.destroy()  # another delete
1

More examples: sample/, snippets

Requirements

Install

$ pip install skylark

Documentation

Documentation: http://skylark.readthedocs.org/

Strongly recommend that you read Quick Start at first.

NOTE: skylark is not currently threading safe.

Sample App

Tests

Contributors

https://github.com/hit9/skylark/graphs/contributors

About

Many ideas are inspired by peewee, thanks a lot to @coleifer. (#34)

License

Changes

CHANGES](CHANGES)

skylark's People

Contributors

hit9 avatar xinming90 avatar 2shou avatar

Watchers

James Cloos avatar  avatar

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.