m-olap-sdk


Namem-olap-sdk JSON
Version 0.1.13 PyPI version JSON
download
home_pagehttps://github.com/mobiovn
SummaryMobio OLAP SDK
upload_time2024-01-11 06:46:38
maintainer
docs_urlNone
authorMOBIO
requires_python>=3
licenseMIT
keywords mobio olap m-olap data-warehouse
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            OlapSDK
===============
module mining data in OLAP

Prepare
Đảm bảo rằng image phải được cài đặt mysql-devel, trong Dockerfile thêm dòng sau trước khi install requirements

```
RUN yum install -y gcc
RUN yum install -y python38-devel mysql-devel
RUN ln -s /usr/include/python3.8 /usr/local/include/python3.8
```

Usage

* Get profile by id
```python
from mobio.libs.olap.mining_warehouse.profiling.mysql_dialect.profiling_dialect import ProfilingDialect

profile_data = ProfilingDialect(olap_uri="uri", sniff=False).get_profile_by_criteria(merchant_id="merchant_id", profile_id="profile_id", lst_criteria=["cri_merchant_id", "cri_profile_id", "cri_name"])
print(profile_data)
```

Release notes:
* 0.1.13 (2024-01-06):
  * Fix issue create connection when cluster only has leader
  * support sniff frontends
* 0.1.12 (2024-01-06):
  * support HA
* 0.1.11 (2023-12-07):
  * port libs
* 0.1.4 (2023-11-28):
  * fix validate column name, support dynamic field with prefix
* 0.1.3 (2023-11-27):
  * remove m-utilities, chỉ dependence m-logging để support python3.8
* 0.1.2 (2023-11-27):
  * alter table
* 0.1.1 (2023-11-24):
  * support lấy profile by id, hỗ trợ việc masking data


## Note prepare from MySQL-Client
### Linux
Note that this is a basic step. I can not support complete step for build for all environment. If you can see some error, you should fix it by yourself, or ask for support in some user forum. Don't file a issue on the issue tracker.

You may need to install the Python 3 and MySQL development headers and libraries like so:

<code>$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential </code># Debian / Ubuntu

<code>% sudo yum install python3-devel mysql-devel</code> # Red Hat / CentOS

Then you can install mysqlclient via pip now:

<code>$ pip install mysqlclient</code>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mobiovn",
    "name": "m-olap-sdk",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "mobio,olap,m-olap,data-warehouse",
    "author": "MOBIO",
    "author_email": "contact@mobio.vn",
    "download_url": "https://files.pythonhosted.org/packages/a2/17/2907a11e8242e46ac74a9a5bbfcc86551cc192c91bd69691721c3811938d/m-olap-sdk-0.1.13.tar.gz",
    "platform": null,
    "description": "OlapSDK\n===============\nmodule mining data in OLAP\n\nPrepare\n\u0110\u1ea3m b\u1ea3o r\u1eb1ng image ph\u1ea3i \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t mysql-devel, trong Dockerfile th\u00eam d\u00f2ng sau tr\u01b0\u1edbc khi install requirements\n\n```\nRUN yum install -y gcc\nRUN yum install -y python38-devel mysql-devel\nRUN ln -s /usr/include/python3.8 /usr/local/include/python3.8\n```\n\nUsage\n\n* Get profile by id\n```python\nfrom mobio.libs.olap.mining_warehouse.profiling.mysql_dialect.profiling_dialect import ProfilingDialect\n\nprofile_data = ProfilingDialect(olap_uri=\"uri\", sniff=False).get_profile_by_criteria(merchant_id=\"merchant_id\", profile_id=\"profile_id\", lst_criteria=[\"cri_merchant_id\", \"cri_profile_id\", \"cri_name\"])\nprint(profile_data)\n```\n\nRelease notes:\n* 0.1.13 (2024-01-06):\n  * Fix issue create connection when cluster only has leader\n  * support sniff frontends\n* 0.1.12 (2024-01-06):\n  * support HA\n* 0.1.11 (2023-12-07):\n  * port libs\n* 0.1.4 (2023-11-28):\n  * fix validate column name, support dynamic field with prefix\n* 0.1.3 (2023-11-27):\n  * remove m-utilities, ch\u1ec9 dependence m-logging \u0111\u1ec3 support python3.8\n* 0.1.2 (2023-11-27):\n  * alter table\n* 0.1.1 (2023-11-24):\n  * support l\u1ea5y profile by id, h\u1ed7 tr\u1ee3 vi\u1ec7c masking data\n\n\n## Note prepare from MySQL-Client\n### Linux\nNote that this is a basic step. I can not support complete step for build for all environment. If you can see some error, you should fix it by yourself, or ask for support in some user forum. Don't file a issue on the issue tracker.\n\nYou may need to install the Python 3 and MySQL development headers and libraries like so:\n\n<code>$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential </code># Debian / Ubuntu\n\n<code>% sudo yum install python3-devel mysql-devel</code> # Red Hat / CentOS\n\nThen you can install mysqlclient via pip now:\n\n<code>$ pip install mysqlclient</code>\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Mobio OLAP SDK",
    "version": "0.1.13",
    "project_urls": {
        "Homepage": "https://github.com/mobiovn",
        "Source": "https://github.com/mobiovn"
    },
    "split_keywords": [
        "mobio",
        "olap",
        "m-olap",
        "data-warehouse"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2172907a11e8242e46ac74a9a5bbfcc86551cc192c91bd69691721c3811938d",
                "md5": "13b8ac88212a5a56e01f4a909dbd3e15",
                "sha256": "fb77f60ae393b8ce79b88be5675eb38d99aff0a7235a5bcc557c8c9fa5349892"
            },
            "downloads": -1,
            "filename": "m-olap-sdk-0.1.13.tar.gz",
            "has_sig": false,
            "md5_digest": "13b8ac88212a5a56e01f4a909dbd3e15",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 16204,
            "upload_time": "2024-01-11T06:46:38",
            "upload_time_iso_8601": "2024-01-11T06:46:38.611464Z",
            "url": "https://files.pythonhosted.org/packages/a2/17/2907a11e8242e46ac74a9a5bbfcc86551cc192c91bd69691721c3811938d/m-olap-sdk-0.1.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-11 06:46:38",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "m-olap-sdk"
}
        
Elapsed time: 0.16521s