-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: High performance pandas integration. (#24)
- Loading branch information
Showing
46 changed files
with
11,360 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"esbonio.sphinx.confDir": "" | ||
"esbonio.sphinx.confDir": "", | ||
"cmake.configureOnOpen": false, | ||
"files.associations": { | ||
"ingress_helper.h": "c" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule c-questdb-client
updated
12 files
+1 −1 | .bumpversion.cfg | |
+1 −1 | CMakeLists.txt | |
+1,703 −1,264 | cpp_test/doctest.h | |
+39 −1 | cpp_test/test_line_sender.cpp | |
+2 −2 | doc/SECURITY.md | |
+28 −21 | include/questdb/ilp/line_sender.hpp | |
+2 −2 | questdb-rs-ffi/Cargo.lock | |
+1 −1 | questdb-rs-ffi/Cargo.toml | |
+1 −1 | questdb-rs/Cargo.toml | |
+2 −2 | questdb-rs/README.md | |
+32 −18 | questdb-rs/src/ingress/mod.rs | |
+2 −2 | questdb-rs/src/tests/sender.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import sys | ||
import subprocess | ||
import shlex | ||
import textwrap | ||
import platform | ||
|
||
|
||
class UnsupportedDependency(Exception): | ||
pass | ||
|
||
|
||
def pip_install(package): | ||
args = [ | ||
sys.executable, | ||
'-m', 'pip', 'install', | ||
'--upgrade', | ||
'--only-binary', ':all:', | ||
package] | ||
args_s = ' '.join(shlex.quote(arg) for arg in args) | ||
sys.stderr.write(args_s + '\n') | ||
res = subprocess.run( | ||
args, | ||
stderr=subprocess.STDOUT, | ||
stdout=subprocess.PIPE) | ||
if res.returncode == 0: | ||
return | ||
output = res.stdout.decode('utf-8') | ||
if 'Could not find a version that satisfies the requirement' in output: | ||
raise UnsupportedDependency(output) | ||
else: | ||
sys.stderr.write(output + '\n') | ||
sys.exit(res.returncode) | ||
|
||
|
||
def try_pip_install(package): | ||
try: | ||
pip_install(package) | ||
except UnsupportedDependency as e: | ||
msg = textwrap.indent(str(e), ' ' * 8) | ||
sys.stderr.write(f' Ignored unsatisfiable dependency:\n{msg}\n') | ||
|
||
|
||
def ensure_timezone(): | ||
try: | ||
import zoneinfo | ||
if platform.system() == 'Windows': | ||
pip_install('tzdata') # for zoneinfo | ||
except ImportError: | ||
pip_install('pytz') | ||
|
||
|
||
def main(): | ||
ensure_timezone() | ||
try_pip_install('fastparquet>=2022.12.0') | ||
try_pip_install('pandas') | ||
try_pip_install('numpy') | ||
try_pip_install('pyarrow') | ||
|
||
on_linux_is_glibc = ( | ||
(not platform.system() == 'Linux') or | ||
(platform.libc_ver()[0] == 'glibc')) | ||
is_64bits = sys.maxsize > 2**32 | ||
is_cpython = platform.python_implementation() == 'CPython' | ||
if on_linux_is_glibc and is_64bits and is_cpython: | ||
# Ensure that we've managed to install the expected dependencies. | ||
import pandas | ||
import numpy | ||
import pyarrow | ||
if sys.version_info >= (3, 8): | ||
import fastparquet | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
setuptools>=45.2.0 | ||
Cython>=0.29.32 | ||
wheel>=0.34.2 | ||
cibuildwheel>=2.11.1 | ||
cibuildwheel>=2.11.2 | ||
Sphinx>=5.0.2 | ||
sphinx-rtd-theme>=1.0.0 | ||
twine>=4.0.1 | ||
bump2version>=1.0.1 | ||
pandas>=1.3.5 | ||
numpy>=1.21.6 | ||
pyarrow>=10.0.1 | ||
fastparquet>=2022.12.0 |
Oops, something went wrong.