Skip to main content

Peewee

A database driver to add Microsoft SQL Server and Azure support using pymssql and FreeTDS in Peewee and should run on most Unix-like systems, Microsoft Windows and Mac OS X.

In it’s current state you should be able to access data and possibly do certain updates. You will not be able to create tables or introspect existing databases, so you will have to write your models manually. Offsets will also not work, since the query compiler will need some significant rewrite to support TSQL dialect, however limit will work (TOP).

Installation

Install the latest stable release from Pypi:

$ pip install peewee-mssql

Or alternatively, select a release or development version from Github and run:

$ python setup.py install

Getting Started

For help on installing and configuring FreeTDS I recommend taking a look at the guide in the pymssql documentation.

And then you should be able to instantiate a database as below and start building your models for accessing data:

from peewee_mssql import MssqlDatabase

db = MssqlDatabase('MyDatabase', host='host.example.com', user='domain\\username', password='password')

If you are using Microsoft SQL Server 2005 you will need to use the legacy datetime data types, simple pass use_legacy_datetime=True to the database driver when initializing.

Metadata

Release files for peewee-mssql 0.1.3

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

Source distribution (sdist)

Source distribution for peewee-mssql 0.1.3
File Size Uploaded Provenance Actions
peewee-mssql-0.1.3.tar.gz 3.9 kB Without provenance Details for peewee-mssql-0.1.3.tar.gz

Release files / peewee-mssql-0.1.3.tar.gz

Download URL peewee-mssql-0.1.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e6a50294e6f89f6326f9a0b665f3644fb56c9a26b2a039574a66337bd6d37a1f
BLAKE2b-256 checksum
How to use checksums
e6213dbc74d6ffcdd853d06b3cc4444221be29f888527ffb0cbf4f2188722c07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for peewee-mssql 0.1.3

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.

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