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.11
  • 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
├── utils/                # Utility functions and helpers
├── tests/                # Test suite
└── db_service.py         # Main database service implementation

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.1.2.tar.gz (14.8 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.1.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sucolo_database_services-0.1.2.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.13 Linux/5.15.90.1-microsoft-standard-WSL2+

File hashes

Hashes for sucolo_database_services-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f37092d4ea8323e3938cef1e33c634a6de25ac6a1d58a0bc35ca0cb3be5c90e6
MD5 a57e8a903bba6b2bdc1835f0817db076
BLAKE2b-256 5b40214d026977e556fb6f31a3b845a2b5cf753b617c333d1a0fc5a486f4e1e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sucolo_database_services-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.13 Linux/5.15.90.1-microsoft-standard-WSL2+

File hashes

Hashes for sucolo_database_services-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 abc738ea52ef17b98b0b7e00a2c321dd0600431e86560518bf134afefa8fde11
MD5 dd0c96b758153acb5eded8c415f1f3c9
BLAKE2b-256 69f3c3946850135a89cc37cb7779d22968c8ebb7068a7af2201847dd174b6c9a

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