This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·62 lines (52 loc) · 1.66 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
"""
Flask-ActiveRecord
------------------
ActiveRecord support for Flask-SQLAlchemy models
.. code:: python
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.activerecord import patch_model
# patch model first
patch_model()
app = Flask(__name__)
db = SQLAlchemy(app)
# example model
class User(db.Model):
__attribute_filters__ = {
'accessible': ('fullname', 'country'),
'protected': ('id', 'email', 'password')
'hidden': ('password', )
}
email = db.Column(db.String, unique=True)
password = db.Column(db.String, unique=True)
fullname = db.Column(db.String)
country = db.Column(db.String(2))
"""
from setuptools import setup
from _version import __version__
setup(
name='Flask-ActiveRecord',
version=__version__,
license='BSD',
author='Francis Asante',
author_email='kofrasa@gmail.com',
url='https://github.com/kofrasa/flask-activerecord',
description='ActiveRecord support for Flask-SQLAlchemy models',
long_description=__doc__,
py_modules=['flask_activerecord', '_version'],
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask-SQLAlchemy>=2.0'
],
test_suite='test_activerecord.suite',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)