flask-dba


Nameflask-dba JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://github.com/feiticeiro-tec/flask_dba
SummaryExtenção flask para aumento de agilidade no processo de criação de projeto.
upload_time2023-06-10 21:55:30
maintainer
docs_urlNone
authorSilvio Henrique Cruz Da Silva
requires_python
licenseBSD3
keywords pacote
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Flask DBA
## Flask DBA is a Flask extension that provides a simple interface for interacting with databases.
### Installation
```bash
pip install flask-dba
```
### Basic Usage
```python
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_dba import FlaskDBA

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlchemy(app)
dba = FlaskDBA(app, db)
dba.init_usuario()
dba.init_permissions(
    usuario=True
)
```
> Iniciando a permissoes junto as rotas do servidor
permisssoes usa a env FLASK_DBA_NAME para definir o app na permissao por padrão é "principal".

```bash
flask init_rules
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/feiticeiro-tec/flask_dba",
    "name": "flask-dba",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Pacote",
    "author": "Silvio Henrique Cruz Da Silva",
    "author_email": "silviohenriquecruzdasilva@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e9/c7/c410957085940af753cb101f37c49d76dfcefb7c155a5f998fed51fce7c2/flask-dba-1.1.0.tar.gz",
    "platform": null,
    "description": "# Flask DBA\n## Flask DBA is a Flask extension that provides a simple interface for interacting with databases.\n### Installation\n```bash\npip install flask-dba\n```\n### Basic Usage\n```python\nfrom flask import Flask\nfrom flask_sqlalchemy import SQLAlchemy\nfrom flask_dba import FlaskDBA\n\napp = Flask(__name__)\napp.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'\napp.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False\ndb = SQLAlchemy(app)\ndba = FlaskDBA(app, db)\ndba.init_usuario()\ndba.init_permissions(\n    usuario=True\n)\n```\n> Iniciando a permissoes junto as rotas do servidor\npermisssoes usa a env FLASK_DBA_NAME para definir o app na permissao por padr\u00e3o \u00e9 \"principal\".\n\n```bash\nflask init_rules\n```\n",
    "bugtrack_url": null,
    "license": "BSD3",
    "summary": "Exten\u00e7\u00e3o flask para aumento de agilidade no processo de cria\u00e7\u00e3o de projeto.",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/feiticeiro-tec/flask_dba"
    },
    "split_keywords": [
        "pacote"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4bc6a1ce260e5aa0feb48673cf6f5e69b1b587ade7051a4ca88a7504f303e1cb",
                "md5": "615243e3a432ad3b2881442477b09efb",
                "sha256": "b6c86a132fb33ae86f28c604e371d94ac3812e5283b3fe6010cf2809dae5e5f9"
            },
            "downloads": -1,
            "filename": "flask_dba-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "615243e3a432ad3b2881442477b09efb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 15027,
            "upload_time": "2023-06-10T21:55:28",
            "upload_time_iso_8601": "2023-06-10T21:55:28.472279Z",
            "url": "https://files.pythonhosted.org/packages/4b/c6/a1ce260e5aa0feb48673cf6f5e69b1b587ade7051a4ca88a7504f303e1cb/flask_dba-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e9c7c410957085940af753cb101f37c49d76dfcefb7c155a5f998fed51fce7c2",
                "md5": "e76b46619ab52e14c6ee9ee8be0ea975",
                "sha256": "f25fe35e4178b095113a0978d720c79cb204500e02efc05ebf24c91a95c1e3d6"
            },
            "downloads": -1,
            "filename": "flask-dba-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e76b46619ab52e14c6ee9ee8be0ea975",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8585,
            "upload_time": "2023-06-10T21:55:30",
            "upload_time_iso_8601": "2023-06-10T21:55:30.333248Z",
            "url": "https://files.pythonhosted.org/packages/e9/c7/c410957085940af753cb101f37c49d76dfcefb7c155a5f998fed51fce7c2/flask-dba-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-10 21:55:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "feiticeiro-tec",
    "github_project": "flask_dba",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "flask-dba"
}
        
Elapsed time: 0.11284s