django-database-conn-pool


Namedjango-database-conn-pool JSON
Version 1.1.1 PyPI version JSON
download
home_pagehttps://github.com/luojidr/django-database-pool
Summarydjango database backend pooling for connections
upload_time2022-12-28 09:23:21
maintainerluojidr
docs_urlNone
authorluojidr
requires_python
licenseMIT
keywords django connection pooling mysql postgresql cx_oracle
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Push messages with different backends for the Django framework.
===============================================================

[![MIT License](https://img.shields.io/pypi/l/django-database-conn-pool.svg)](https://opensource.org/licenses/MIT)
[![django-database-conn-pool can be installed via wheel](https://img.shields.io/pypi/wheel/django-database-conn-pool.svg)](http://pypi.python.org/pypi/django-database-conn-pool/)
[![Supported Python versions.](https://img.shields.io/pypi/pyversions/django-database-conn-pool.svg)](http://pypi.python.org/pypi/django-database-conn-pool/)

|          |               |   
| ---------|:--------------| 
| Version  |1.1.0           | 
| Web      |               |  
| Download |<http://pypi.python.org/pypi/django-database-conn-pool>  |  
| Source   |<https://github.com/luojidr/django-database-conn-pool>   | 
| Keywords |django, database pool, MySQL, PostgreSQL, Oracle    | 


About
-----

MySQL & Oracle & PostgreSQL connection pool backends of Django, Be based on SQLAlchemy. 
Work fine in multiprocessing and multithreading django project.

Installation
------------

You can install django-database-conn-pool either via the Python Package Index
(PyPI) or from source.

To install using **pip**:

``` {.sh}
$ pip install -U django-database-conn-pool
```

and then add it to your installed apps:

``` {.python}
(1.1): INSTALLED_APPS = [
    ...,
    'database_pool',
    ...,
]

(1.2): DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'my_test',
        'HOST': '127.0.0.1',
        'PORT': 3306,
        'USER': 'mysql_test',
        'PASSWORD': '123456',
        'POOL_OPTIONS' : {
            'POOL_SIZE': 10,
            'MAX_OVERFLOW': 15,
            'RECYCLE': 60 * 60
        }
    },
    ......
}

OR

(2): DATABASES = {
    'default': {
        'ENGINE': 'database_pool.backends.mysql',
        'NAME': 'my_test',
        'HOST': '127.0.0.1',
        'PORT': 3306,
        'USER': 'mysql_test',
        'PASSWORD': '123456',
        'POOL_OPTIONS' : {
            'POOL_SIZE': 10,
            'MAX_OVERFLOW': 15,
            'RECYCLE': 60 * 60
        }
    },
    ......
}
```

### Downloading and installing from source

Download the latest version of django-database-conn-pool from
<http://pypi.python.org/pypi/django-database-conn-pool>

You can install it by doing the following,:

    $ tar xvfz django-database-pool-0.0.0.tar.gz
    $ cd django-database-pool-0.0.0
    $ python setup.py build
    # python setup.py install

The last command must be executed as a privileged user if you are not
currently using a virtualenv.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/luojidr/django-database-pool",
    "name": "django-database-conn-pool",
    "maintainer": "luojidr",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "luojidr@163.com",
    "keywords": "django connection pooling mysql postgresql cx_Oracle",
    "author": "luojidr",
    "author_email": "luojidr@163.com",
    "download_url": "",
    "platform": null,
    "description": "Push messages with different backends for the Django framework.\n===============================================================\n\n[![MIT License](https://img.shields.io/pypi/l/django-database-conn-pool.svg)](https://opensource.org/licenses/MIT)\n[![django-database-conn-pool can be installed via wheel](https://img.shields.io/pypi/wheel/django-database-conn-pool.svg)](http://pypi.python.org/pypi/django-database-conn-pool/)\n[![Supported Python versions.](https://img.shields.io/pypi/pyversions/django-database-conn-pool.svg)](http://pypi.python.org/pypi/django-database-conn-pool/)\n\n|          |               |   \n| ---------|:--------------| \n| Version  |1.1.0           | \n| Web      |               |  \n| Download |<http://pypi.python.org/pypi/django-database-conn-pool>  |  \n| Source   |<https://github.com/luojidr/django-database-conn-pool>   | \n| Keywords |django, database pool, MySQL, PostgreSQL, Oracle    | \n\n\nAbout\n-----\n\nMySQL & Oracle & PostgreSQL connection pool backends of Django, Be based on SQLAlchemy. \nWork fine in multiprocessing and multithreading django project.\n\nInstallation\n------------\n\nYou can install django-database-conn-pool either via the Python Package Index\n(PyPI) or from source.\n\nTo install using **pip**:\n\n``` {.sh}\n$ pip install -U django-database-conn-pool\n```\n\nand then add it to your installed apps:\n\n``` {.python}\n(1.1): INSTALLED_APPS = [\n    ...,\n    'database_pool',\n    ...,\n]\n\n(1.2): DATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.mysql',\n        'NAME': 'my_test',\n        'HOST': '127.0.0.1',\n        'PORT': 3306,\n        'USER': 'mysql_test',\n        'PASSWORD': '123456',\n        'POOL_OPTIONS' : {\n            'POOL_SIZE': 10,\n            'MAX_OVERFLOW': 15,\n            'RECYCLE': 60 * 60\n        }\n    },\n    ......\n}\n\nOR\n\n(2): DATABASES = {\n    'default': {\n        'ENGINE': 'database_pool.backends.mysql',\n        'NAME': 'my_test',\n        'HOST': '127.0.0.1',\n        'PORT': 3306,\n        'USER': 'mysql_test',\n        'PASSWORD': '123456',\n        'POOL_OPTIONS' : {\n            'POOL_SIZE': 10,\n            'MAX_OVERFLOW': 15,\n            'RECYCLE': 60 * 60\n        }\n    },\n    ......\n}\n```\n\n### Downloading and installing from source\n\nDownload the latest version of django-database-conn-pool from\n<http://pypi.python.org/pypi/django-database-conn-pool>\n\nYou can install it by doing the following,:\n\n    $ tar xvfz django-database-pool-0.0.0.tar.gz\n    $ cd django-database-pool-0.0.0\n    $ python setup.py build\n    # python setup.py install\n\nThe last command must be executed as a privileged user if you are not\ncurrently using a virtualenv.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "django database backend pooling for connections",
    "version": "1.1.1",
    "split_keywords": [
        "django",
        "connection",
        "pooling",
        "mysql",
        "postgresql",
        "cx_oracle"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "83c1f1dcf9da0ead8b386aeb94296400",
                "sha256": "b2896c3445c79aa7536c5ce979376a3ba0962f1f194e36ca59ec73ef138ad378"
            },
            "downloads": -1,
            "filename": "django_database_conn_pool-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "83c1f1dcf9da0ead8b386aeb94296400",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 28875,
            "upload_time": "2022-12-28T09:23:21",
            "upload_time_iso_8601": "2022-12-28T09:23:21.842762Z",
            "url": "https://files.pythonhosted.org/packages/c1/62/3b7b4eb2605061d5c637bf5b9b909f2ad5959fce1aadd424162d0e502464/django_database_conn_pool-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-28 09:23:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "luojidr",
    "github_project": "django-database-pool",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "django-database-conn-pool"
}
        
Elapsed time: 0.02214s