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.4.3

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.4.3.tar.gz (3.1 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.4.3-cp313-cp313-musllinux_1_2_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

querysource-4.4.3-cp313-cp313-manylinux_2_28_x86_64.whl (13.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

querysource-4.4.3-cp312-cp312-musllinux_1_2_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

querysource-4.4.3-cp312-cp312-manylinux_2_28_x86_64.whl (13.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

querysource-4.4.3-cp311-cp311-musllinux_1_2_x86_64.whl (13.4 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

querysource-4.4.3-cp311-cp311-manylinux_2_28_x86_64.whl (13.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

querysource-4.4.3-cp310-cp310-musllinux_1_2_x86_64.whl (12.6 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

querysource-4.4.3-cp310-cp310-manylinux_2_28_x86_64.whl (12.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

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

File metadata

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

File hashes

Hashes for querysource-4.4.3.tar.gz
Algorithm Hash digest
SHA256 a183cddbf69c2271675120fb45fa773a4dbe9debfbb328eed5d05504cee3d4ed
MD5 672c88bb7fe5c59c0f35e9ed8f6ec529
BLAKE2b-256 1c099a678285d9b2631fc461154a1de42059614f77c59cbf9f74f8e2eb81c68b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.4.3-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 996ee685edae200b4af33c52ea8807dd50100508e25a457e5902ce99a18510c8
MD5 f0110c5f48966e6951e4a1373c10bcee
BLAKE2b-256 3666c26c25568d73037d91fc5e32115e8d43dad971dadc4e03083096235a1633

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.4.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 30c6d1fa8246c2709fb23ed4d3f3e0a9ee6e7ea7a2f633e0886d21866fa5cf6a
MD5 e294bb5c94793c7467c06dc3056bf6c8
BLAKE2b-256 eea64ab028d5b5564dd1886a3e24d66a90b66311ae30f450fd794dc71f08972e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.4.3-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8dd309a6ab68afc71a1c1faa71af0167637f597ed26631675275ea181ec2ef8c
MD5 930a7a9af45f8fc8880ae81bcccdf3cf
BLAKE2b-256 e0ddf8bd505d42285b17143734497607c60360221d8b7593eb319b0c542a681e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.4.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 927360daf328be86706eed6ec9daecba764ee2aa9bbf92fb22c4417a74a417a3
MD5 03430ba0d2019f6bd90a085df7a5cfda
BLAKE2b-256 4f3ad6ff1862c669f42c1276997344a2dcc34b5d43af690c49883d55baf89183

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.4.3-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 761b5742f049a32d9e0028e6b71150a386a2162172306948e04a888a2e67bc76
MD5 d87c09969bbfd778c7d7fd676f71d692
BLAKE2b-256 a80bd972795c15f942da438926a5b75fb8999a6ba11b1d1084c96f11768c6676

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.4.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dea9b9f90de167eed86aa49c0ea2d8d1d5aabf50235b692a89c0e8da95e9a25a
MD5 e66e182d6bfa117bef730e9229549838
BLAKE2b-256 a039132538ce1106877bcd696012609e224c961eca2a28abbb1b2a35ef02d08e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.4.3-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3ac231870fb31344944596f1722a438828767e138c1d64a589c58ab6c1464020
MD5 c4487da073a91799868953e931bd45cc
BLAKE2b-256 4e155a91d2ebe892e3fc28fcb75916e98942b5e52840faf4826252b435adacf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for querysource-4.4.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 66fbbea9b95a5cadb2a315c5fbf10f31de1dc463e543d539f187618578f81192
MD5 679c8f9ee81357f649c9ae1660d03ef0
BLAKE2b-256 76e89dd6efb0f37652ac4032275209dd95f7d992ff978d79ba5814651532a3ec

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