Skip to main content

Aiohttp web service for querying several databases easily

Project description

QuerySource

QuerySource is a powerful Python library designed to streamline access to multiple databases and external APIs through a single, unified interface. Utilizing the proxy design pattern, QuerySource allows developers to seamlessly integrate various data sources into their projects without worrying about the complexities of managing multiple connections.

Features

  • Unified interface for querying multiple databases (Redis, PostgreSQL, MySQL, Oracle, SQL Server, InfluxDB, CouchDB, Druid)
  • Support for external APIs (Salesforce, ShopperTrack, ZipCodeAPI, etc.)
  • Easy-to-use API for executing queries
  • Extensible design, allowing for easy addition of new data sources

Installation

$ pip install querysource
---> 100%
Successfully installed querysource

Requirements

Basic Usage

QuerySource can be used in several ways, one is using QS object itself:

from querysource.queries.qs import QS

query = QS(
    query='SELECT * FROM tests',
    output_format='pandas'
)
result, error = await query.query()

Extending QuerySource

To add support for a new data source, create a new class inheriting from the BaseProvider or BaseAPI class and implement the required methods (prepare_connection, query, close). Then, register the new data source in the QuerySource class by adding it to the appropriate dictionary (_supported_databases or _supported_apis).

Contributing

We welcome contributions to QuerySource! If you'd like to contribute, please follow these steps:

  • Fork the repository
  • Create a new branch for your feature or bugfix
  • Implement your changes
  • Add tests covering your changes
  • Create a pull request against the original repository

Contribution guidelines

  • Writing tests
  • Code review
  • Other guidelines

License

QuerySource is released under the BSD License. See the LICENSE file for more details.

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

querysource-4.1.7.tar.gz (2.8 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

querysource-4.1.7-cp313-cp313-musllinux_1_2_x86_64.whl (12.3 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

querysource-4.1.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (12.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

querysource-4.1.7-cp312-cp312-musllinux_1_2_x86_64.whl (12.3 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

querysource-4.1.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (12.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

querysource-4.1.7-cp311-cp311-musllinux_1_2_x86_64.whl (12.1 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

querysource-4.1.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (12.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

querysource-4.1.7-cp310-cp310-musllinux_1_2_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

querysource-4.1.7-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (11.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file querysource-4.1.7.tar.gz.

File metadata

  • Download URL: querysource-4.1.7.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for querysource-4.1.7.tar.gz
Algorithm Hash digest
SHA256 3309b1a188ae42245e8dacf787a811826631c2a8b151b2de79f9795f54ae8725
MD5 11308b995102ff2da0d18db6147f5218
BLAKE2b-256 8e26d7790175f7c1473d0badf9d95e6d541994d620a46f2a1b14b7011ae02c91

See more details on using hashes here.

File details

Details for the file querysource-4.1.7-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.1.7-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 990054df179757249780fda1a978f22cb0011f604c9f152b6fef0dd986b9865f
MD5 fe19297c537f46e602ae1e32ef822433
BLAKE2b-256 fb8e3f1beb4882ce91b4a5f742b147024fa16166607d4e430ff9359beb841b27

See more details on using hashes here.

File details

Details for the file querysource-4.1.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.1.7-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b7ffed0ed22e28b54a0de3eb1471185fd7310369959497d73bec1edbcc0ec66f
MD5 47f64841c047af51733896cb240549e5
BLAKE2b-256 4900ca5d38fe7ea02c4e2727984ac5769977616f0ed71c5a5e91a1fb0c7e68af

See more details on using hashes here.

File details

Details for the file querysource-4.1.7-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.1.7-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 832cc0b506fc7869bf5bcfc676cd1ffabb509601ec2e318a3456aee678e5e2a1
MD5 888c64a93e48034e44f1f79ed04480fa
BLAKE2b-256 cffb49046cbd7adfa64c7630036934bc29ae09ce2f43f36eebfbacc538888cf7

See more details on using hashes here.

File details

Details for the file querysource-4.1.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.1.7-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 606e613b45842f96ae7ed259fb96f4f377e618f5462cbd4c2c6de3c2500560d9
MD5 0c8a3e4c8f983af115ebb79596fe4201
BLAKE2b-256 fa4f1a5a76f7ceff71c3109a5f6e0d283ca9241afb24c460a7cd3abdc7d98e93

See more details on using hashes here.

File details

Details for the file querysource-4.1.7-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.1.7-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 12ebe08a1a7403a103b9f3e0693d396f0125b7da54a87beeec00892b87dadebf
MD5 2baa0e355fe338c05698ff3c65291399
BLAKE2b-256 925a53ca22e9d7d65bb45a6878d60b2022892c23e6030736f9a0c89a83523c2b

See more details on using hashes here.

File details

Details for the file querysource-4.1.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.1.7-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cb4dc71ba945f5bbaf2a1edbb872bcddc9f920dcaacb436881901064cf7584b0
MD5 0524601eba350f9deb2fc9b2b0812869
BLAKE2b-256 4960cb77cd47096ae7dff4794a7dbc12f970663d6a68506a3ecdac6e15cb673e

See more details on using hashes here.

File details

Details for the file querysource-4.1.7-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.1.7-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b695eee5b131baf48efc327592575144b0ac3253a2de865124e7e2c8b6ef4768
MD5 5a0d9b8866cb2c2f18d3fbc9f855b2e3
BLAKE2b-256 a5a104eaafd4f5f36081f66d45cb11a52b3e027e80b5858e0c1ec85000dccb14

See more details on using hashes here.

File details

Details for the file querysource-4.1.7-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.1.7-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8e58a40805f27e1c79458b886244df40bae883fdf0ea194c1cfd878b187b97f6
MD5 537b114018aa68a5d542acfd2c0b1f2e
BLAKE2b-256 a2c80443d7fcfa9756130a1087b00cead3d834dbdc4a228bae8460749ffed8b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page