Skip to main content

Installation

pip install sqlalchemy-utcdatetime

Sample Usage

import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy_utcdatetime import UTCDateTime
import datetime, pytz

Base = declarative_base()

class MyModel(Base):
    __tablename__ = 'my_model'

    id = sa.Column(sa.Integer(), primary_key=True)
    my_datetime = sa.Column(UTCDateTime())


m = MyModel()
m.my_datetime = datetime.datetime.now(pytz.timezone('Australia/Sydney'))

Metadata

Release files for SQLAlchemy-UTCDateTime 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SQLAlchemy-UTCDateTime 1.0.4
File Size Uploaded Provenance
SQLAlchemy-UTCDateTime-1.0.4.tar.gz 2.4 kB Without provenance Details

Release files / SQLAlchemy-UTCDateTime-1.0.4.tar.gz

Download URL SQLAlchemy-UTCDateTime-1.0.4.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8a1cad8106d41feb7659c623b33e743981136f3abd9d30ee697d205b0c606687
BLAKE2b-256 checksum
How to use checksums
5c42bb3e6d24059f4d74a31da6b8f65f1641f0361e193b31d514fc13c2849d8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for SQLAlchemy-UTCDateTime 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 release file No provenance

1.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page