Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sqlalchemy-clickhouse-timezone

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlalchemy-clickhouse-timezone

ClickHouse SQLAlchemy Dialect with timezone support

  • 0.1.4
  • PyPI
  • Socket score

Maintainers
1

sqlalchemy-clickhouse-timezone

add timezone support

Installation

The package is installable through PIP::

pip install sqlalchemy-clickhouse-timezone

Usage

setting the environ param to start timezone support

default is '0' using pytz.utc

'CLICKHOUSE_USE_TIMEZONE': '0' => using utc

'CLICKHOUSE_USE_TIMEZONE': '1' => using system timezone

'CLICKHOUSE_USE_TIMEZONE': 'Asia/Shanghai' => using configed Asian/Shanghai

configed

os.environ.setdefault('CLICKHOUSE_USE_TIMEZONE', '0')

os.environ.setdefault('CLICKHOUSE_USE_TIMEZONE', '1')

os.environ.setdefault('CLICKHOUSE_USE_TIMEZONE', 'Asia/Shanghai')


'infi.clickhouse_orm==1.0.4'

original project usage...

ClickHouse dialect for SQLAlchemy.

The DSN format is similar to that of regular Postgres::

>>> import sqlalchemy as sa
>>> sa.create_engine('clickhouse://username:password@hostname:port/database')
Engine('clickhouse://username:password@hostname:port/database')

It implements a dialect, so there's no user-facing API.

Testing

The dialect can be registered on runtime if you don't want to install it as::

from sqlalchemy.dialects import registry
registry.register("clickhouse", "base", "dialect")

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc