Code Monkey home page Code Monkey logo

qvd-utils's Introduction

Hi there Ferris

qvd-utils's People

Contributors

jeromehoen avatar ljvmiranda921 avatar sbentley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qvd-utils's Issues

crates.io?

This looks like a nice candidate for a qvd lib crate for crates.io.
Are you planing to publish the / a crate as a rust library?
This would literally be the first one.
Thanks

Improve support for CJK characters

Hi there,

Thanks for this tool. It has been really helpful!

I'm just having issues regarding Chinese/Japanese/Korean characters. Whenever they are encoded, they look garbled. I'm not sure if it's a UTF-8 parsing in the Rust or Python side.

Steps to reproduce

I've attached the sample input and output for this issue. Here's the minimum reproducible example

from qvd import qvd_reader
df = qvd_reader.read("sample_data.qvd")
df.to_csv("sample_data.csv")

Input

Download link (expires after 24h):
https://wormhole.app/wjll0#vX3tLuzrucIFtO-LaWRpgg

Output
sample_data.csv

Column-Specific Reading

Not familiar with Rust but was hoping somebody knew how to implement something like 'usecols' in Pandas? I have some really wide tables that would be much faster to read if I could ignore all but two of those columns. Otherwise great library, super useful for Qlik integration!

Read QVD files with many rows

Hi Dear SBentley

I'm triying to read a QVD file with 2.446.709 rows, but the system show me error message "index out of bounds: the len is 2446709 but the index is 2446709", i tried with QVDs less than 2M rows and worked well

Thanks

Handling DUAL

Most of the fields in Qlikview and ALL the fields in QlikSense are of type DUAL
Dual is like an array/struct where first part is string and second is number

For example the command Now() in qlik generates a dual where the 1st part is a string in the default format specified in the qlik script , for example, '24/02/2023 20:32:43', and the second is the corresponding number 44981,856053241

DUAL fields can be generated manualy too : for example with DUAL('whatever',23).
I did a test: I created a QVD with just a field and a row containing DUAL ... and unfortunately I got just the text part

Writer function

Thanks for this amazing work! I was wondering whether a qvd_writer package was possible, based on your current work. I'm not familiar with Rust, so there are maybe caveats I don't see. If you think there are not, I might take the time to learn a bit of Rust to write a PR.

pip installation failed

Hey guys,
I was very happy to found this project. Unfortunately there is an issue on my OS X with Python 3.8.10

pip install qvd
ERROR: Could not find a version that satisfies the requirement qvd (from versions: none)
ERROR: No matching distribution found for qvd

Any ideas?

Best regards,
Axel

Add licence please

Looks very good Sam. To use this library will be good if you can insert a licence file so that users know how to distribute the code

Python 3.11

Hello!
Please compile the library for python 3.11 if it's possible, thank you so much for making this tool

Transfer QVD field types to resulting DataFrame

Hi there - loving this library, so handy for reading QVD files outside of the Qlik environment.

What would be great is to transfer the field types defined in QVD to the resulting DataFrame. So that numeric columns come over as ints/floats, dates/timestamps - as dates/times, etc. Nothing fancy but a simple mapping between QVD and Pandas data types would be very helpful in working with the resulting data frames.

How to get metadata?

Is there a way to get the metadata ?
or there's the need to expose some functions to achieve it?

Update pandas requirement

Would it be possible to loosen the constraint of "pandas~=1.1.4", so pip can resolve the packages even with newer pandas versions?
In my case I would require pandas 1.3.2 that comes with AWS Glue 3.0.

Content file from memory - BytesIO support

First thank you for this library!

Is there a chance that it can support BytesIO content?
I'm getting the error:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "*****************/env/lib/python3.9/site-packages/qvd/qvd_reader.py", line 6, in read
    data = read_qvd(file_name)
TypeError: Can't convert <_io.BytesIO object at 0x1361585e0> to PyString

This is my code:

from io import BytesIO
from qvd import qvd_reader

qvd = BytesIO()
with open('file.qvd', 'rb') as f:
   qvd.write(f.read())

qvd.seek(0)
content = BytesIO(qvd.getvalue())

df = qvd_reader.read(content)

Thanks in advanced...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.