Python SQL Query Engine for Serverless Environments
Project description
Opteryx
Query your data, no database required
Opteryx is a distributed SQL Engine written in Python, designed for cloud-native environments.
Documentation | Examples | Contributing
Features
Scalable
Designed to run in Knative and similar environments like Google Cloud Run, Opteryx can scale down to zero, and scale up to respond to thousands of concurrent queries within seconds.
High Availability
Shared nothing design means each query can run in a separate container instance making it nearly impossible for a rogue query to affect any other users.
If a cluster, region or datacentre is unavailable, if you have instances able to run in another location, Opteryx will keep responding to queries. (inflight queries may not be recovered)
Query In Place
With Opteryx, you don't need to migrate data to a common data platform to be able to query it. You can store some of your data in parquet files on disk or cloud storage, and some in MongoDB or Firestore and access all of these in the same query.
Bring your own Files
Opteryx supports many popular data formats, including Parquet, ORC, Feather and JSONL, stored on local disk or on Cloud Storage. You can mix-and-match formats, so one dataset can be Parquet and another JSONL, and Opteryx will be able to JOIN across them.
Consumption-Based Billing Friendly
Opteryx is perfect for deployments to environments which are pay-as-you-use, like Google Cloud Run. Great for situations where you low-volume usage, or many environments, where the costs of many traditional database deployment can quickly add up.
Python Native
Opteryx is an Open Source Python library, it quickly and easily integrates into Python code, including Jupyter Notebooks, so you can start querying your data within a few minutes.
Time Travel
Designed for data analytics in environments where decisions need to be replayable, Opteryx allows you to query data as at a point in time in the past to replay decision algorithms against facts as they were known in the past. (data must be structured to enable temporal queries)
Schema Evolution
Changes to schemas and paritioning can be made without requiring any existing data to be updated. (data types can only be changed to compatitble types)
Usage/Examples
Example usage, querying one of the internal datasets.
import opteryx
conn = opteryx.connect()
cur = conn.cursor()
cur.execute("SELECT * FROM $planets;")
for row in cur.fetchall():
print(row["name"])
Installation
Install from PyPI (recommended)
This will install the latest release version.
pip install opteryx
Install from GitHub
The lastest version, including pre-release and beta versions can be installed from GitHub. This is not recommended for production environments.
pip install git+https://github.com/mabel-dev/opteryx
Community
How do I get Support?
For support join our Slack channel.
How Can I Contribute?
All contributions, bug reports, documentation improvements, enhancements, and ideas are welcome.
Want to help build Opteryx? See the Contribution and Set Up Guides.
Security
See the project Security Policy for information about reporting vulnerabilities.
License
Status
Opteryx is in beta. Beta means different things to different people, to us, being beta means:
- Core functionality has good regression test coverage to help ensure stability
- Some edge cases may have undetected bugs
- Performance tuning may be incomplete
- Changes are focused on feature completion, bugs, performance, reducing debt, and security
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for opteryx-0.3.0a4-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe84413f301ad05c35d8a5d4969ab2cc0c83ccda598dde3a92705888bfbdc10d |
|
MD5 | 05941da78a4bbda0accadc09f08a03b8 |
|
BLAKE2b-256 | e5a575f7a965b87d11c428b37414f2ce0485c1c0e293240e16e69ac4c0edbf77 |
Hashes for opteryx-0.3.0a4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8510cf219a21456fe8cd58ea438fa6d554a235ae14c3408670e098d3aaa75fe4 |
|
MD5 | 73147556894c89601293bdd406591807 |
|
BLAKE2b-256 | 782b96cdfc6c3c2f2f6243b3e81f63a20b1d6be7a6e7ff33fd343562cc900d85 |
Hashes for opteryx-0.3.0a4-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f925c69c7b41108f96b8af0059a8785b3bd47d78afd4f522035b0a3d7b207ef0 |
|
MD5 | b7db9704ada16af0def4bbb394beb7cd |
|
BLAKE2b-256 | 91b838d482a8c65c9ba5fc1eb593dec16c6d32a9999f3d94a2201dd5e4588942 |
Hashes for opteryx-0.3.0a4-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43aa24dda41760294b7d7a9732ded821fefa013144344ca9bfeebca98bdd0877 |
|
MD5 | ae49f44541f64a2068b83240c8506949 |
|
BLAKE2b-256 | 8bcb27ca8ae23cd75b6a198f7bb5eb4d554174085565b9811f7c100444cacff1 |
Hashes for opteryx-0.3.0a4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1fe8f58997cca9de6b0ae185ee392542167f1693c7699691a32977c75dd88b3 |
|
MD5 | ef44b767695a670d1b7df549635a9bba |
|
BLAKE2b-256 | 96292f700d75c421f8afc4fbef9a8c2441b67d0696eb2b3ce013fa7642a6ece1 |
Hashes for opteryx-0.3.0a4-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 469873ab49963b3572adac8f42238d96d7b318d6b8e75b0b6fa670a72a834046 |
|
MD5 | 0838f94ab5c2c5505acd87e7dd4cccc7 |
|
BLAKE2b-256 | 177d8cab11a06017d1c20c6a73cde6d92d0041b2a978e152a43c25fc75862b25 |
Hashes for opteryx-0.3.0a4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac2d92ed4fcebb589863655318fe1e4894aef391e941e01c731a2181adeb08e6 |
|
MD5 | a7abb96393c9e0c34ee113a645297da7 |
|
BLAKE2b-256 | bf47771eb71355307fe7edc8c4e1dfdceeaa5da96dbef365dc2255ff95e03f7c |
Hashes for opteryx-0.3.0a4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f474903f3af3d5fd74ebfd3814d1c7f1b65675d0dce940c7a95bb25577fec8c7 |
|
MD5 | ecba0858e1bc6842ea653644157c0a46 |
|
BLAKE2b-256 | 0cdf32dd04256a120172476a6c9820a80bfb5cd3a9b4e329f847016a9fa2164b |
Hashes for opteryx-0.3.0a4-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f71fe39e12b235741356ccc26c9b84a54e472f55117466352cfbc71064bdb82c |
|
MD5 | 91a0e6f4605f69184b4aaa62238d148b |
|
BLAKE2b-256 | a62191465205b816ff08374d6a84be1f3a06d358a65b9232a0cee1d75a010de0 |