Skip to main content

A Python client for Sucolo's database services.

Project description

Sucolo Database Services

A Python package providing database services for the Sucolo project, including Elasticsearch and Redis clients with additional utilities for data processing and analysis.

Features

  • Elasticsearch client integration
  • Redis client integration
  • Data processing utilities
  • H3 geospatial indexing support
  • Type-safe data handling with Pydantic

Requirements

  • Python 3.10, 3.11, 3.12, 3.13
  • Poetry for dependency management

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/sucolo-database_services.git
cd sucolo-database_services
  1. Install dependencies using Poetry:
poetry install
  1. Set up your environment variables in .env file:
# Example .env configuration
ELASTICSEARCH_HOST=localhost
ELASTICSEARCH_PORT=9200
REDIS_HOST=localhost
REDIS_PORT=6379

Development

Code Style

This project uses several tools to maintain code quality:

  • Black for code formatting
  • Flake8 for linting
  • MyPy for type checking
  • isort for import sorting

Run the following command to format and check the code:

make format

Testing

Run tests using pytest:

make test

Project Structure

sucolo_database_services/
├── elasticsearch_client/     # Elasticsearch client implementation
├── redis_client/             # Redis client implementation
├── services/                 # Service layer (feature, metadata, management, etc.)
├── utils/                    # Utility functions and helpers
├── tests/                    # Test suite for all services and modules
├── data_access.py            # Aggregated data access layer
└── __init__.py

Dependencies

Main dependencies:

  • elasticsearch
  • redis
  • pandas
  • geopandas
  • h3
  • pydantic
  • python-dotenv

License

[Add your license information here]

Contributing

[Add contribution guidelines here]

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

sucolo_database_services-0.4.3.tar.gz (77.1 kB view details)

Uploaded Source

Built Distribution

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

sucolo_database_services-0.4.3-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file sucolo_database_services-0.4.3.tar.gz.

File metadata

  • Download URL: sucolo_database_services-0.4.3.tar.gz
  • Upload date:
  • Size: 77.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.17 Darwin/24.5.0

File hashes

Hashes for sucolo_database_services-0.4.3.tar.gz
Algorithm Hash digest
SHA256 ad19feaa08f88e3734c27d52455853c64ddd6d1ba085f13611eb543973486460
MD5 af51ec7b2c831afa7948478fe1751825
BLAKE2b-256 ee53e0a4215627e4f51dff31782d94c47e2e25334c2e3d8892ce5619725efbc6

See more details on using hashes here.

File details

Details for the file sucolo_database_services-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sucolo_database_services-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 941c74cc65dac81908e79db9d8a6b7280b56ed854f53542618d928cc51a01de1
MD5 3390bad3f06c0464fbb87efdc420f3a6
BLAKE2b-256 d1f177b62187cd218b984fff31368c52d1493bd1cbeaa7667210dd5579901762

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