Skip to main content

Qore Client

Project description

Qore Client

Qore Client is a Python client library for the Qore API.

Prerequisites

First, install uv package installer:

# On macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows PowerShell
(Invoke-WebRequest -Uri "https://astral.sh/uv/install.ps1" -UseBasicParsing).Content | pwsh -Command -

Installation

For users, simply install using pip:

pip install qore-client

Usage Example

The code below is an example of creating a simple parquet file, uploading it to Qore Drive, and then downloading it again.

access_key = "access_key"
secret_key = "secret_key"
folder_id = "folder_id"
parquet_file = "data.parquet"

from qore_client.client import QoreClient

client = QoreClient(access_key, secret_key)

data = {
    "name": ["Alice", "Bob", "Charlie", "David"],
    "age": [25, 30, 35, 40],
    "city": ["New York", "Los Angeles", "Chicago", "Houston"],
    "salary": [50000, 60000, 70000, 80000],
}

sample_df = pd.DataFrame(data)
sample_df.to_parquet(parquet_file)

create_file_response = client.create_file(folder_id, parquet_file)
get_file_response = client.get_file(response["id"])

df = pd.read_parquet(response2)

print(df)
#       name  age         city  salary
# 0    Alice   25     New York   50000
# 1      Bob   30  Los Angeles   60000
# 2  Charlie   35      Chicago   70000
# 3    David   40      Houston   80000

Development Environment Setup

  1. Clone the repository
git clone <repository-url>
  1. Create a virtual environment and install dependencies
bash dev.sh

Testing Development Versions

# Install the package from TestPyPI
uv pip install -i https://test.pypi.org/simple/ qore-client=={version}

# Install the package from PyPI
uv pip install qore-client=={version}

CI/CD

This project supports automated testing and deployment through GitLab CI/CD.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qore_client-0.0.24.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

qore_client-0.0.24-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file qore_client-0.0.24.tar.gz.

File metadata

  • Download URL: qore_client-0.0.24.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for qore_client-0.0.24.tar.gz
Algorithm Hash digest
SHA256 536a63a993466957854b203a2f60a6a6488984911c9272d4b0fa7dd21ea4b69b
MD5 b491a4d91b0367b1e6bab2698d9794d3
BLAKE2b-256 a28347e27c6c4675f43cf1a96a53f231c1a89ebd29d6cb1c9468ac11c9ca27e8

See more details on using hashes here.

File details

Details for the file qore_client-0.0.24-py3-none-any.whl.

File metadata

  • Download URL: qore_client-0.0.24-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for qore_client-0.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 ab223022ead10f09938e8fa6b8254e9e41ba5e4e3dd27d5e3ebc2de542cfc31d
MD5 6ace121e9fa1753c8b7fbca9e5a09f87
BLAKE2b-256 1a0f547b9a1d0a628d01bc480c7a371a5549b55613a3819a6f1bb8f703fe054e

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