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

This version

4.2.1

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.2.1.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.2.1-cp313-cp313-musllinux_1_2_x86_64.whl (13.4 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

querysource-4.2.1-cp313-cp313-manylinux_2_28_x86_64.whl (13.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

querysource-4.2.1-cp312-cp312-musllinux_1_2_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

querysource-4.2.1-cp312-cp312-manylinux_2_28_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

querysource-4.2.1-cp311-cp311-musllinux_1_2_x86_64.whl (13.3 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

querysource-4.2.1-cp311-cp311-manylinux_2_28_x86_64.whl (13.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

querysource-4.2.1-cp310-cp310-musllinux_1_2_x86_64.whl (12.4 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

querysource-4.2.1-cp310-cp310-manylinux_2_28_x86_64.whl (12.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

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

File metadata

  • Download URL: querysource-4.2.1.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.2.1.tar.gz
Algorithm Hash digest
SHA256 838890e6e112cd96b9a5429981a9ff52ba1f4505d133dafd6b9bf35759e702cf
MD5 798e7c3bf9c3480b2cc5baf178b3a739
BLAKE2b-256 948cd8e121cd5fdf2f5ce806dd32a7070723ad7a346aa13af20afd380e151172

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.2.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 85d11bc62fd83b36abf8cd9b9c7b474cc695d213e79ac2dd1a873bf70ce29c90
MD5 43086cd0c203bdbaa8bcc81123d5bc84
BLAKE2b-256 e9bb9863113fc1e1c53028be4d7a94feb7a3b718d1e04013010bce147b6285f2

See more details on using hashes here.

File details

Details for the file querysource-4.2.1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.2.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8a05a78ea3c79f216e6ddcb2ce1259c44fa46dc545a813dee9fafe87b1f5284a
MD5 096763b95082ed24d002c929388e35d7
BLAKE2b-256 d97f3164f3e9566e53726996161958a8382a91d8c5701087b451cb4d90413bcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.2.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 903d4eb6357841bdba4a5e460b4618e97d0a37ead03f0729097788a0ae74b12f
MD5 f6e22de9bdad6c9ac14fcd0647a3b6de
BLAKE2b-256 95b4c3e0a2b11fd4ff6f7d296dc8e3bddfc66d5ac7b1cf077e5f1df9f831ee49

See more details on using hashes here.

File details

Details for the file querysource-4.2.1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.2.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5326482d00d7b0f7ed677558c1f36be177e280050268a5d7cb5414c547567063
MD5 ae7392186710e3a6c175f6c654b7eb99
BLAKE2b-256 ef033a2bf6bac0c91fdf9def7057b751f4abb937e119ca07d8f6efc4ae8cd637

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.2.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0097545d078599494acbd7e5ba5f4910a72895806703f3395d56f942f5e0ecaa
MD5 f8a2477a88dbdc0ddc49a2078d1dce80
BLAKE2b-256 5579793195bc630ab36ea6e06d2c8aeecdb922a2b90caf8099fac33eda876580

See more details on using hashes here.

File details

Details for the file querysource-4.2.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.2.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cc73abc84d0246a37de03dc4200fb4a21cadd91292c8e256c41b3ae80f2c1ac4
MD5 d02012843db66ed512dc76589e0a905c
BLAKE2b-256 cf4f86a56f887a4d1a8440d296eb7c044c26b1b3ca3850f291149d993da13021

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.2.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c1a341883a30df24c99e8ec54b2def0bab42ea97b8d168f9f6916d894a081e9b
MD5 cf995793d857dba388b3aa5beac728a7
BLAKE2b-256 b591fc2c3fb7e4cab59064a547da96479b7598cddad5fa09033f6ca62594f012

See more details on using hashes here.

File details

Details for the file querysource-4.2.1-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for querysource-4.2.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 09968fec66e901d9f906c9d76054120ee41f71c842c12a86bb33e292cd9a0719
MD5 7166236e4c2ac097035d0c020eb56d96
BLAKE2b-256 9d239aaeccfda5cb29d495b5d10835d635d62eda9a5ab701293a9214e20c5c52

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