forked from hit9/skylark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (59 loc) · 1.71 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- coding: utf-8 -*-
"""
skylark
-------
A micro python orm for mysql and sqlite.
Sample Usage
````````````
.. code:: python
>>> from models import User
>>> user = User(name='Tom', email='tom@gmail.com')
>>> user.save() # insert
1
>>> user.email = 'tom@github.com'
>>> 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='kate@gmail.com') # another insert
>>> user.data
{'email': 'kate@gmail.com', 'name': 'Kate', 'id': 2}
>>> user.destroy() # another delete
1
Installation
````````````
.. code:: bash
$ pip install skylark
Links
`````
* `Documentation <http://skylark.readthedocs.org/>`_
* `Code on Github <https://github.com/hit9/skylark>`_
**NOTICE**: skylark may not be stable before version 1.0
"""
from setuptools import setup
setup(
name='skylark',
version='0.9.0',
author='hit9',
author_email='nz2324@126.com',
description=('A micro python orm for mysql and sqlite.'),
license='BSD',
keywords='orm mysql sqlite tiny micro database',
url='https://github.com/hit9/skylark',
py_modules=['skylark'],
long_description=__doc__,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Database',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)