# pazer_database_python
Pazer Database - Python
## install
```bash
pip install pazer_database_python
```
## Example
```python
from pazer_database_python.Executor import Executor
# Database Host
DB_HOST: dict = {
"name": {
"hostname": "localhost",
"username": "user",
"password": "password",
"database": "database",
"port": 3306,
"charset": "utf8mb4",
},
}
# Session(Redis) host
SESSION_HOST: dict = {
"name": {
"hostname": "127.0.0.1",
"port": 6379,
"namespace": "test",
"decode": True,
},
}
# Executor Loads
executor = Executor()
executor.loads(
databaseConfig=DB_HOST,
sessionConfig=SESSION_HOST,
)
# get Client
DATABASE_client = executor.databaseClient("name")
SESSION_client = executor.sessionClient("name")
```
Raw data
{
"_id": null,
"home_page": null,
"name": "pazer-database-python",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "pazer, database",
"author": "David Kim",
"author_email": "David Kim <woody@woody.co.kr>",
"download_url": "https://files.pythonhosted.org/packages/bc/fd/42ce7c16ad5d18aded11322dd7e8af47b9eed06e3ee8dd77117d33b35597/pazer_database_python-0.4.1.tar.gz",
"platform": null,
"description": "# pazer_database_python\n\nPazer Database - Python\n\n## install\n```bash\npip install pazer_database_python\n```\n\n## Example\n```python\nfrom pazer_database_python.Executor import Executor\n\n# Database Host\nDB_HOST: dict = {\n \"name\": {\n \"hostname\": \"localhost\",\n \"username\": \"user\",\n \"password\": \"password\",\n \"database\": \"database\",\n \"port\": 3306,\n \"charset\": \"utf8mb4\",\n },\n}\n\n# Session(Redis) host\nSESSION_HOST: dict = {\n \"name\": {\n \"hostname\": \"127.0.0.1\",\n \"port\": 6379,\n \"namespace\": \"test\",\n \"decode\": True,\n },\n}\n\n# Executor Loads\nexecutor = Executor()\nexecutor.loads(\n databaseConfig=DB_HOST,\n sessionConfig=SESSION_HOST,\n)\n\n# get Client\nDATABASE_client = executor.databaseClient(\"name\")\nSESSION_client = executor.sessionClient(\"name\")\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Pazer Database - Python",
"version": "0.4.1",
"project_urls": {
"Bug Tracker": "https://github.com/pazer-app/pazer_database_python/issues",
"Homepage": "https://github.com/pazer-app/pazer_database_python"
},
"split_keywords": [
"pazer",
" database"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "867b63b2213c0425a604d6949d17632836b1bc8e8ed2737c892565aa6be22541",
"md5": "bc854e06cbc26ce9ddf69fefcfac3ad2",
"sha256": "eca6cd5464a25855c6258e0c15a314c6527d1c87429725efa9afe797e56bd914"
},
"downloads": -1,
"filename": "pazer_database_python-0.4.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bc854e06cbc26ce9ddf69fefcfac3ad2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 8110,
"upload_time": "2024-12-19T10:47:30",
"upload_time_iso_8601": "2024-12-19T10:47:30.549527Z",
"url": "https://files.pythonhosted.org/packages/86/7b/63b2213c0425a604d6949d17632836b1bc8e8ed2737c892565aa6be22541/pazer_database_python-0.4.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bcfd42ce7c16ad5d18aded11322dd7e8af47b9eed06e3ee8dd77117d33b35597",
"md5": "b9652d77cb2d055db3e851485bd5538b",
"sha256": "f4a779ac8f74a52657f59402076e22011855bbeeac2e5e3a0fd13d03f7299515"
},
"downloads": -1,
"filename": "pazer_database_python-0.4.1.tar.gz",
"has_sig": false,
"md5_digest": "b9652d77cb2d055db3e851485bd5538b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6085,
"upload_time": "2024-12-19T10:47:32",
"upload_time_iso_8601": "2024-12-19T10:47:32.711858Z",
"url": "https://files.pythonhosted.org/packages/bc/fd/42ce7c16ad5d18aded11322dd7e8af47b9eed06e3ee8dd77117d33b35597/pazer_database_python-0.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-19 10:47:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pazer-app",
"github_project": "pazer_database_python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pazer-database-python"
}