qvd


Nameqvd JSON
Version 0.0.15 PyPI version JSON
download
home_pageNone
SummaryA library for reading Qlik Sense .qvd file format from Python, written in Rust.
upload_time2023-10-07 17:42:45
maintainerNone
docs_urlNone
authorSam Bentley <samtbentley@gmail.com>
requires_python
licenseApache-2.0
keywords python rust qlik sense qvd
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Read Qlik Sense .qvd files 🛠
[![CI pipeline](https://github.com/SBentley/qvd-utils/actions/workflows/CI.yml/badge.svg)](https://github.com/SBentley/qvd-utils/actions/workflows/CI.yml)

A python library for reading Qlik Sense .qvd file format, written in Rust.
Files can be read to DataFrame or dictionary.

## Install

Install from PyPi https://pypi.org/project/qvd/

```sh
pip install qvd
```

## Usage

```python
from qvd import qvd_reader

df = qvd_reader.read('test.qvd')
print(df)
```

![example](https://raw.githubusercontent.com/SBentley/qvd-utils/master/example.png)

### Developing

Create a virtual env https://docs.python-guide.org/dev/virtualenvs/ and activate it.

```sh
python3 -m venv venv
```

Then install dev dependencies:

```sh
pip install pandas maturin
```

Afterwards, run 

```sh
maturin develop --release
```

to install the generated python lib to the virtual env.

## Test

To run the tests, you can use these commands:

```sh
cargo test  # runs all Rust unit tests
pytest test_qvd_reader.py  # runs all Python tests
```

## QVD File Structure

A QVD file is split into 3 parts; XML Metdata, Symbols table and the bit
stuffed binary indexes.

### XML Metadata

This section is at the top of the file and is in human readable XML. This
section contains metadata about the file in gneneral such as table name, number
of records, size of records as well as data about individual fields including
field name, length offset in symbol table.

### Symbol table

Directly after the xml section is the symbol table. This is a table of every
unique value contained within each column. The columns are in the order
described in the metadata fields section. In the metadata we can find the byte
offset from the start of the symbols section for each column. Symbol types
cannot be determined from the metadata and are instead determined by a flag
byte preceding each symbol. These types are:

* 1 - 4 byte signed int (u32) - little endiand
* 2 - 8 byte signed float (f64) - little endian
* 4 - null terminated string
* 5 - 4 bytes of junk follwed by a null terminated string representing an integer
* 6 - 8 bytes of junk followed by a null terminated string representing a float

### Binary Indexes

After the symbol table are the binary indexes that map to the symbols for each
row. They are bit stuffed and reversed binary numbers that point to the index
of the symbol in the symbols table for each field.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "qvd",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": null,
    "keywords": "python,rust,qlik,sense,qvd",
    "author": "Sam Bentley <samtbentley@gmail.com>",
    "author_email": "Sam Bentley <samtbentley@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ae/2a/fe4ba98d8b0d4de89dcfb0720a26cdffe164bbe7f14354467dca550a1279/qvd-0.0.15.tar.gz",
    "platform": null,
    "description": "# Read Qlik Sense .qvd files \ud83d\udee0\n[![CI pipeline](https://github.com/SBentley/qvd-utils/actions/workflows/CI.yml/badge.svg)](https://github.com/SBentley/qvd-utils/actions/workflows/CI.yml)\n\nA python library for reading Qlik Sense .qvd file format, written in Rust.\nFiles can be read to DataFrame or dictionary.\n\n## Install\n\nInstall from PyPi https://pypi.org/project/qvd/\n\n```sh\npip install qvd\n```\n\n## Usage\n\n```python\nfrom qvd import qvd_reader\n\ndf = qvd_reader.read('test.qvd')\nprint(df)\n```\n\n![example](https://raw.githubusercontent.com/SBentley/qvd-utils/master/example.png)\n\n### Developing\n\nCreate a virtual env https://docs.python-guide.org/dev/virtualenvs/ and activate it.\n\n```sh\npython3 -m venv venv\n```\n\nThen install dev dependencies:\n\n```sh\npip install pandas maturin\n```\n\nAfterwards, run \n\n```sh\nmaturin develop --release\n```\n\nto install the generated python lib to the virtual env.\n\n## Test\n\nTo run the tests, you can use these commands:\n\n```sh\ncargo test  # runs all Rust unit tests\npytest test_qvd_reader.py  # runs all Python tests\n```\n\n## QVD File Structure\n\nA QVD file is split into 3 parts; XML Metdata, Symbols table and the bit\nstuffed binary indexes.\n\n### XML Metadata\n\nThis section is at the top of the file and is in human readable XML. This\nsection contains metadata about the file in gneneral such as table name, number\nof records, size of records as well as data about individual fields including\nfield name, length offset in symbol table.\n\n### Symbol table\n\nDirectly after the xml section is the symbol table. This is a table of every\nunique value contained within each column. The columns are in the order\ndescribed in the metadata fields section. In the metadata we can find the byte\noffset from the start of the symbols section for each column. Symbol types\ncannot be determined from the metadata and are instead determined by a flag\nbyte preceding each symbol. These types are:\n\n* 1 - 4 byte signed int (u32) - little endiand\n* 2 - 8 byte signed float (f64) - little endian\n* 4 - null terminated string\n* 5 - 4 bytes of junk follwed by a null terminated string representing an integer\n* 6 - 8 bytes of junk followed by a null terminated string representing a float\n\n### Binary Indexes\n\nAfter the symbol table are the binary indexes that map to the symbols for each\nrow. They are bit stuffed and reversed binary numbers that point to the index\nof the symbol in the symbols table for each field.\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "A library for reading Qlik Sense .qvd file format from Python, written in Rust.",
    "version": "0.0.15",
    "project_urls": {
        "Source Code": "https://github.com/SBentley/qvd-utils"
    },
    "split_keywords": [
        "python",
        "rust",
        "qlik",
        "sense",
        "qvd"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "34e90650dfa1040a965e96bce66d0d50f9c500da57e8dce49f484875385fc701",
                "md5": "2d9c9cb49e69f8ad4e0b6c6d6407545a",
                "sha256": "3dc8f99315f1de6b72bdaa2771ed8a17bb1a081554643d6fe94f93ed02b4179f"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp310-cp310-macosx_10_7_x86_64.whl",
            "has_sig": false,
            "md5_digest": "2d9c9cb49e69f8ad4e0b6c6d6407545a",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": null,
            "size": 588319,
            "upload_time": "2023-10-07T17:43:38",
            "upload_time_iso_8601": "2023-10-07T17:43:38.454859Z",
            "url": "https://files.pythonhosted.org/packages/34/e9/0650dfa1040a965e96bce66d0d50f9c500da57e8dce49f484875385fc701/qvd-0.0.15-cp310-cp310-macosx_10_7_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "8866fb3198cf6bb28f72d76a7be3840c4a4353fb3468483a0efc97c6187057f7",
                "md5": "de98e35ad558245a20f1dc593372b94e",
                "sha256": "907b5a0c9c4a76a47161367823a50994b14e541c4ca821651a6fca76b230a854"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp310-cp310-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "de98e35ad558245a20f1dc593372b94e",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": null,
            "size": 610581,
            "upload_time": "2023-10-07T17:42:48",
            "upload_time_iso_8601": "2023-10-07T17:42:48.440512Z",
            "url": "https://files.pythonhosted.org/packages/88/66/fb3198cf6bb28f72d76a7be3840c4a4353fb3468483a0efc97c6187057f7/qvd-0.0.15-cp310-cp310-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3ed6fcd225c662c7f09dbd42fd752cad39019b516aeaa1bcfa0123ff9587eb60",
                "md5": "36e2f05d07b8c2cfabdee27b74f2c267",
                "sha256": "57aba04bea1d10922f81bb0d0c85f2fb75c722dc16604b10e95a53263506b933"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp311-cp311-macosx_10_7_x86_64.whl",
            "has_sig": false,
            "md5_digest": "36e2f05d07b8c2cfabdee27b74f2c267",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": null,
            "size": 588302,
            "upload_time": "2023-10-07T17:42:54",
            "upload_time_iso_8601": "2023-10-07T17:42:54.409776Z",
            "url": "https://files.pythonhosted.org/packages/3e/d6/fcd225c662c7f09dbd42fd752cad39019b516aeaa1bcfa0123ff9587eb60/qvd-0.0.15-cp311-cp311-macosx_10_7_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "854c1f0dcb83b723823e35f3ff154dbecac558ba81ce84f7073e8564c9cd435b",
                "md5": "08ac58cb8612e19b938d939648e1c631",
                "sha256": "b67fa9918ed2da99593201831bcd4f7a59addc9882b142d886f2abea07a5cdbe"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp311-cp311-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "08ac58cb8612e19b938d939648e1c631",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": null,
            "size": 610580,
            "upload_time": "2023-10-07T17:43:00",
            "upload_time_iso_8601": "2023-10-07T17:43:00.517394Z",
            "url": "https://files.pythonhosted.org/packages/85/4c/1f0dcb83b723823e35f3ff154dbecac558ba81ce84f7073e8564c9cd435b/qvd-0.0.15-cp311-cp311-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "33656d3263a5e113a1b62b32aa069114eeaa900f4d55e3bde75214f045f99fe0",
                "md5": "a68705b17c534d357eb37377b1639dad",
                "sha256": "84e75bbd84e05ace4d58543a5331c66cb59559cd7713bac6e576b006e023eed5"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp312-cp312-macosx_10_7_x86_64.whl",
            "has_sig": false,
            "md5_digest": "a68705b17c534d357eb37377b1639dad",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": null,
            "size": 588303,
            "upload_time": "2023-10-07T17:43:50",
            "upload_time_iso_8601": "2023-10-07T17:43:50.669807Z",
            "url": "https://files.pythonhosted.org/packages/33/65/6d3263a5e113a1b62b32aa069114eeaa900f4d55e3bde75214f045f99fe0/qvd-0.0.15-cp312-cp312-macosx_10_7_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "a623c6c6d4f74ed3e9eef6024a46ee31fac90d7bd8ec262282cf3fc2c2e5e621",
                "md5": "f1c8e9c5a146ef4b2f6d34847ba9fbb2",
                "sha256": "4a66688c0897396081d89c2fe5f35531c5401555eaea30dd754cac6b6f91e9ba"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp312-cp312-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "f1c8e9c5a146ef4b2f6d34847ba9fbb2",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": null,
            "size": 610581,
            "upload_time": "2023-10-07T17:42:57",
            "upload_time_iso_8601": "2023-10-07T17:42:57.987671Z",
            "url": "https://files.pythonhosted.org/packages/a6/23/c6c6d4f74ed3e9eef6024a46ee31fac90d7bd8ec262282cf3fc2c2e5e621/qvd-0.0.15-cp312-cp312-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c917cf89da4a34f47251169a6e48e45b9e7bd67bef81983e8ddf4fea322e7354",
                "md5": "6ab5684661a6b0ec5d904eb0da12307c",
                "sha256": "afb593ecf994b3c9608df7428e09826d0eff6721765cf55049ef0283a04fb70e"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp36-cp36m-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "6ab5684661a6b0ec5d904eb0da12307c",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": null,
            "size": 611008,
            "upload_time": "2023-10-07T17:43:19",
            "upload_time_iso_8601": "2023-10-07T17:43:19.028123Z",
            "url": "https://files.pythonhosted.org/packages/c9/17/cf89da4a34f47251169a6e48e45b9e7bd67bef81983e8ddf4fea322e7354/qvd-0.0.15-cp36-cp36m-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2357adf463b11e0475aacd02ddd659b1fb915b75b1744352cd68ffb56b58b690",
                "md5": "1ba2e95ce8e0322e3ad75505f9dfe89b",
                "sha256": "d32ebeee19b47f85394de710894ae94675d19bd5e56daf127f7a4b1eb16cfec1"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp37-cp37m-macosx_10_7_x86_64.whl",
            "has_sig": false,
            "md5_digest": "1ba2e95ce8e0322e3ad75505f9dfe89b",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 588300,
            "upload_time": "2023-10-07T17:43:31",
            "upload_time_iso_8601": "2023-10-07T17:43:31.026029Z",
            "url": "https://files.pythonhosted.org/packages/23/57/adf463b11e0475aacd02ddd659b1fb915b75b1744352cd68ffb56b58b690/qvd-0.0.15-cp37-cp37m-macosx_10_7_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "52a3721cade93bc9d543af377e4516f6f5f1e7abd69218db6dfed0bc81600761",
                "md5": "6682e7a6ec1a7c405d5df2e3ba551f33",
                "sha256": "6bd0f587f56d8b16e3c762222ad04ca4675ff77aef9098b7a5b84f203ad37c41"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp37-cp37m-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "6682e7a6ec1a7c405d5df2e3ba551f33",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": null,
            "size": 610632,
            "upload_time": "2023-10-07T17:42:43",
            "upload_time_iso_8601": "2023-10-07T17:42:43.991523Z",
            "url": "https://files.pythonhosted.org/packages/52/a3/721cade93bc9d543af377e4516f6f5f1e7abd69218db6dfed0bc81600761/qvd-0.0.15-cp37-cp37m-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "bbed6094700c88bb335da06f4c0dc384459949fbc925950dd470d6a2221528b2",
                "md5": "fef7e1e31e70950f269e0dbd8f3a5759",
                "sha256": "7d948e1960140427efd766c213e334c65d9092adb19a398b4c0a7b4a6f3ce218"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp38-cp38-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "fef7e1e31e70950f269e0dbd8f3a5759",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": null,
            "size": 610578,
            "upload_time": "2023-10-07T17:42:50",
            "upload_time_iso_8601": "2023-10-07T17:42:50.016767Z",
            "url": "https://files.pythonhosted.org/packages/bb/ed/6094700c88bb335da06f4c0dc384459949fbc925950dd470d6a2221528b2/qvd-0.0.15-cp38-cp38-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2f54e4d14e6d55138332d090ca9b6541f7c34c8fd0564735963944c0647953ed",
                "md5": "797dc0298e3130f71cbd60f457147c1d",
                "sha256": "3b108831e4bde9671df1f5012ea89d5995600ec15741c09146ff7fcfcaf64154"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp39-cp39-macosx_10_7_x86_64.whl",
            "has_sig": false,
            "md5_digest": "797dc0298e3130f71cbd60f457147c1d",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 588302,
            "upload_time": "2023-10-07T17:44:20",
            "upload_time_iso_8601": "2023-10-07T17:44:20.010275Z",
            "url": "https://files.pythonhosted.org/packages/2f/54/e4d14e6d55138332d090ca9b6541f7c34c8fd0564735963944c0647953ed/qvd-0.0.15-cp39-cp39-macosx_10_7_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ffb393a0d98daa3b5bc7c72238d7cc9c28f117bfc757e72eb9e35caca11fc232",
                "md5": "a03fc71113957bab8a0b836671e284f9",
                "sha256": "f3d5f1e03a06dab9052cecad56db6293ce6e827a70723de5bf5079b8f81bdf42"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15-cp39-cp39-manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "a03fc71113957bab8a0b836671e284f9",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": null,
            "size": 610583,
            "upload_time": "2023-10-07T17:42:54",
            "upload_time_iso_8601": "2023-10-07T17:42:54.137404Z",
            "url": "https://files.pythonhosted.org/packages/ff/b3/93a0d98daa3b5bc7c72238d7cc9c28f117bfc757e72eb9e35caca11fc232/qvd-0.0.15-cp39-cp39-manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ae2afe4ba98d8b0d4de89dcfb0720a26cdffe164bbe7f14354467dca550a1279",
                "md5": "1959dc9fcabb38b3c2c4a6445f01b7fb",
                "sha256": "ee7e45fce0a4ade49eb7d82efda496b0c1fd33a5a894bff26e865d105d63689b"
            },
            "downloads": -1,
            "filename": "qvd-0.0.15.tar.gz",
            "has_sig": false,
            "md5_digest": "1959dc9fcabb38b3c2c4a6445f01b7fb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 526227,
            "upload_time": "2023-10-07T17:42:45",
            "upload_time_iso_8601": "2023-10-07T17:42:45.914510Z",
            "url": "https://files.pythonhosted.org/packages/ae/2a/fe4ba98d8b0d4de89dcfb0720a26cdffe164bbe7f14354467dca550a1279/qvd-0.0.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-07 17:42:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "SBentley",
    "github_project": "qvd-utils",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "qvd"
}
        
Elapsed time: 0.14086s