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.4.tar.gz (4.7 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.4-cp313-cp313-musllinux_1_2_x86_64.whl (15.2 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

querysource-4.1.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (15.3 MB view details)

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

querysource-4.1.4-cp312-cp312-musllinux_1_2_x86_64.whl (15.3 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

querysource-4.1.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (15.4 MB view details)

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

querysource-4.1.4-cp311-cp311-musllinux_1_2_x86_64.whl (15.1 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

querysource-4.1.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (15.1 MB view details)

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

querysource-4.1.4-cp310-cp310-musllinux_1_2_x86_64.whl (14.3 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

querysource-4.1.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (14.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.4.tar.gz.

File metadata

  • Download URL: querysource-4.1.4.tar.gz
  • Upload date:
  • Size: 4.7 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.4.tar.gz
Algorithm Hash digest
SHA256 af6d31274f24d61cfc0f819452592e5813b6fe15eb1da1e477b55b2ae0c6632c
MD5 43add75134c163645cf50ce66abbae58
BLAKE2b-256 8943a3fa8166154f571bc1a18abe2b037ff91adf657b50318decf12f9c3fd269

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.1.4-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7b65413698feab26eba4187c754eeb9fd83fc8e8d6b4c36fa59978b60fd80331
MD5 33f3c223150c4bb01d2f92b3ebb300a6
BLAKE2b-256 6bd1098b9f1e7442847e10264066d0fbd69f22d50658a63e8680763216e381c8

See more details on using hashes here.

File details

Details for the file querysource-4.1.4-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.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f61d6b0fb848455aed1330dd18357648e8b0c9e956170c20ab880b2fcef3dd72
MD5 5303e0c7faadfbcb40759fe51c74e32b
BLAKE2b-256 499dc35039fb33547050b3dc00a74158a052c2699be21bae180a925f4105ac08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.1.4-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 070c0290d58d1ec7ea181b5c87ca3f04e200da9e5c4c77663341773b078636af
MD5 e5fdaddd3a1b57f79eaf3982e295d42f
BLAKE2b-256 6536cd9679ec3e3c36ca09297e5bda5391326e67ede72c68469ef6d4f5744978

See more details on using hashes here.

File details

Details for the file querysource-4.1.4-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.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eb59d32fa99b2b137d6082c2b37cb16e22979454ad6d85196ba0f431f7d69510
MD5 586750b836109007690f72bbbbf21eec
BLAKE2b-256 84ec5924b94e19f9da8ed5544253b2475a70941213ce2ec0877f93c0bc592922

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.1.4-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b1af1bfff69dc36814e8071207bb1fe376fdc234e797b8000dd8ef02af7b0756
MD5 aa43a7b46639d61559553c4dc1b37f5f
BLAKE2b-256 a075439fb4add611495cd61921b63e726c38b244418dedb4bfae2f585a0d7be9

See more details on using hashes here.

File details

Details for the file querysource-4.1.4-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.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9f8cd5dfb000f06f7e9c58b7b14008dad237f92dc5d1f0f5984c9a1d901acf53
MD5 643bdb404a72e8aaf8f55ae38a273d34
BLAKE2b-256 70a7a04df22adf77b402bbba2a4456c1ef67410620906f56942ad4dc6687c9ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.1.4-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 08f4f304b1ca3f9bd22ea7e958b0a94e1dcdaa5c045fe1420662274d9175fa5d
MD5 de0584367912791982273c234d119cca
BLAKE2b-256 08b5ca75ad1996d68b8597f4dd85a3cbf0375fb8b5b376ff9f5c9d7c355f031d

See more details on using hashes here.

File details

Details for the file querysource-4.1.4-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.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 950e815f92acba532f34d3da54635e0f9768c2e9e1d69ef8eabf17ddabe1db3e
MD5 3b460d7e75066c5f6929ca0a5de11c84
BLAKE2b-256 4a43af8466ba4a5ef3650d9078aaf3c3d9b1600a4387f996949e6c66b6a71cc8

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