forked from hit9/skylark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (59 loc) · 1.68 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 -*-
"""
CURD.py
-------
Tiny Python ORM for MySQL.
Sample Usage
````````````
.. code:: python
>>> from models import User
>>> user = User(name='Tom', email='[email protected]')
>>> user.save() # insert
1L
>>> user.email = '[email protected]'
>>> user.save() # update
1L
>>> [user.name for user in User.select()] # select
[u'Tom']
>>> query = User.where(name='Tom').delete()
>>> query.execute() # delete
1L
>>> user = User.create(name='Kate', email='[email protected]') # another insert
>>> user.data
{'email': '[email protected]', 'name': 'Kate', 'id': 2L}
>>> user.destroy() # another delete
1L
Installation
````````````
.. code:: bash
$ pip install CURD.py
Links
`````
* `Documentation <http://curdpy.readthedocs.org/>`_
* `Code on Github <https://github.com/hit9/CURD.py>`_
**NOTICE**: CURD.py may not be stable before version 1.0
"""
from setuptools import setup
setup(
name='CURD.py',
version='0.4.1',
author='hit9',
author_email='[email protected]',
description=('Tiny Python ORM for MySQL'),
license='BSD',
keywords='CURD ORM MySQL Python tiny database',
url='https://github.com/hit9/CURD.py',
py_modules=['CURD'],
install_requires = ['MySQL-python'],
long_description=__doc__,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Database',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)