cancel
Showing results for 
Search instead for 
Did you mean: 

PyQ 4.0 (Python for kdb+) release announcement

Alexander_Belop
New Contributor
Dear Kdb+ Developers,

We are happy to announce the availability of PyQ 4.0, a major release and a culmination of over a year of development effort. In addition to several new features and performance improvements, this release includes the significantly expanded documentation. For an overview of changes see "What's new in PyQ 4.0".

To install or upgrade, run

   $ pip install -i https://pyq.enlnt.com --no-binary pyq -U pyq

What is PyQ?

PyQ brings the Python programming language to the kdb+ database. It allows developers to seamlessly integrate Python and q code in one application. This is achieved by bringing the Python and q interpreters in the same process so that codes written in either of the languages operate on the same data. In PyQ, Python and q objects live in the same memory space and share the same data.

PyQ is distributed as open source software and is free for use with Kdb+ Personal Edition.

--

PyQ Team | Enlightenment Research LLC
12 REPLIES 12

hzadonis
New Contributor
Good news!
Does it support Windows?

在 2017年3月3日星期五 UTC+8上午4:12:16,Alexander Belopolsky写道:
Dear Kdb+ Developers,

We are happy to announce the availability of PyQ 4.0, a major release and a culmination of over a year of development effort. In addition to several new features and performance improvements, this release includes the significantly expanded documentation. For an overview of changes see "What's new in PyQ 4.0".

To install or upgrade, run

   $ pip install -i https://pyq.enlnt.com --no-binary pyq -U pyq

What is PyQ?

PyQ brings the Python programming language to the kdb+ database. It allows developers to seamlessly integrate Python and q code in one application. This is achieved by bringing the Python and q interpreters in the same process so that codes written in either of the languages operate on the same data. In PyQ, Python and q objects live in the same memory space and share the same data.

PyQ is distributed as open source software and is free for use with Kdb+ Personal Edition.

--

PyQ Team | Enlightenment Research LLC

Doesn't look like it does:
"Windows is not supported yet."
https://pyq.enlnt.com/install/install.html#os-support

I also tried a pip install and it didn't work.  It would be great if it did though.

Hi, Alexander:
  As you know, do we have plan when will support Windows. Honestly, MAC is not cheap.

在 2017年3月4日星期六 UTC+8下午9:53:53,Garrett Meehan写道:
Doesn't look like it does:
"Windows is not supported yet."

I also tried a pip install and it didn't work.  It would be great if it did though.

> MAC is not cheap.

Right, but Linux is.  Most popular flavors of Linux are supported.

With respect to Windows, PyQ source code is available on Github.  Pull requests are welcome! 

  Yes, that's right.
  I had installed pyq at a VirtualBox. And running in the command window after "from pyq import q"

  But I have another question: Can I write Python/q code in the IDE such as Pycharm? If it's possible, how to let Pycharm knows the pyq package. Does anybody have the experience or any suggestion? Thanks!

在 2017年3月8日星期三 UTC+8上午10:56:37,Alexander Belopolsky写道:
> MAC is not cheap.

Right, but Linux is.  Most popular flavors of Linux are supported.

With respect to Windows, PyQ source code is available on Github.  Pull requests are welcome! 

>  Can I write Python/q code in the IDE such as PyCharm?

Yes, but the only way I found to convince PyCharm to use pyq as the project interpreter is to replace "bin/python" with a symbolic link to pyq:

$ ls -l $VIRTUAL_ENV/bin/python
lrwxr-xr-x  1 a  staff  3 Nov  2 09:53 /Users/a/.virtualenvs/d/bin/python -> pyq

Note that you can still get the original python by calling pythonX.Y after that.  Also, I've only used PyCharm on a Mac.  I don't know if the same will work on Linux.

  Thanks, Alexander, Many thanks for your help.
  I did testing today. it doesn't work while I create the link.
  So far, I think it should let PyCharm knows a virtualenv is running, and then use pyq in the IDE. But seems something wrong, because I got a message "/usr/lcoal/bin/python3.6.i686/lib/python3.6/site-packages/pyq/_k.cpython-36m-x86_64-linux-gnu.so: undefined symbol: sd1", I'm not sure it is caused by the file itself or not.



在 2017年3月16日星期四 UTC+8上午2:12:17,Alexander Belopolsky写道:
>  Can I write Python/q code in the IDE such as PyCharm?

Yes, but the only way I found to convince PyCharm to use pyq as the project interpreter is to replace "bin/python" with a symbolic link to pyq:

$ ls -l $VIRTUAL_ENV/bin/python
lrwxr-xr-x  1 a  staff  3 Nov  2 09:53 /Users/a/.virtualenvs/d/bin/python -> pyq

Note that you can still get the original python by calling pythonX.Y after that.  Also, I've only used PyCharm on a Mac.  I don't know if the same will work on Linux.

> Does it support Windows?

No.  Mac and Linux only so far.

tclh123
New Contributor
`.../_k.so: undefined symbol: sd1`

I got this too.

在 2017年3月3日星期五 UTC+8上午4:12:16,Alexander Belopolsky写道:
Dear Kdb+ Developers,

We are happy to announce the availability of PyQ 4.0, a major release and a culmination of over a year of development effort. In addition to several new features and performance improvements, this release includes the significantly expanded documentation. For an overview of changes see "What's new in PyQ 4.0".

To install or upgrade, run

   $ pip install -i https://pyq.enlnt.com --no-binary pyq -U pyq

What is PyQ?

PyQ brings the Python programming language to the kdb+ database. It allows developers to seamlessly integrate Python and q code in one application. This is achieved by bringing the Python and q interpreters in the same process so that codes written in either of the languages operate on the same data. In PyQ, Python and q objects live in the same memory space and share the same data.

PyQ is distributed as open source software and is free for use with Kdb+ Personal Edition.

--

PyQ Team | Enlightenment Research LLC

There is now a separate thread for this: "Undefined Symbol sd1".

Short answer: pyq cannot be imported in a plain python instance.  One must either use the supplied "pyq" executable or call python from the q) prompt using p) prefix:

q)p)from pyq import q
q)p)print(q.til(5))
0 1 2 3 4

On Thursday, March 16, 2017 at 11:58:37 AM UTC-4, Harry Lee wrote:
`.../_k.so: undefined symbol: sd1`


I got this too.

shengen_zhai
New Contributor
it seems that I had the following issue... wondering if the download address has changed?
[]$ pip install   -i https://pyq.enlnt.com   --no-binary pyq pyq
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pyq
  DEPRECATION: Failed to find 'pyq' at https://pyq.enlnt.com/pyq/. It is suggested to upgrade your index to support normalized names as the name in /simple/{name}.
  Cannot fetch index base URL https://pyq.enlnt.com/
  Could not find a version that satisfies the requirement pyq (from versions: )
No matching distribution found for pyq



On Monday, June 5, 2017 at 8:39:18 AM UTC-4, shengen zhai wrote:
> it seems that I had the following issue... wondering if the download address has changed?

There is a separate thread, "failed to find 'pyq' at https://pyq.enlnt.com/pyq" for this issue now.  I will respond there shortly.

--

PyQ Team | Enlightenment Research LLC