Skip to main content

crate-peewee

Crate driver for peewee, a small, expressive ORM.

Most basic operations work. Support for special Crate features like fulltext search or object and array fields is still a work in progress.

For a full documentation take a look at the peewee documentation.

Usage

Use peewee with Crate:

from peewee import Model, CharField
from crate.peewee import CrateDatabase
from uuid import uuid4

db = CrateDatabase()
db.connect()

def gen_key():
    return str(uuid4())

class User(Model):
    id = CharField(null=True, default=gen_key, primary_key=True)
    name = CharField(null=True)
    class Meta:
        database = db

db.create_tables([User], safe=True)
arthur = User.create(name='Arthur')
db.execute_sql('refresh table user')

print([u for u in User.select(User.name).tuples()])

Metadata

Release files for crate-peewee 0.1.0

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

Source distribution (sdist)

Source distribution for crate-peewee 0.1.0
File Size Uploaded Provenance Actions
crate-peewee-0.1.0.tar.gz 7.7 kB Without provenance Details for crate-peewee-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crate-peewee 0.1.0
File Interpreter ABI Platform Actions
crate_peewee-0.1.0-py3-none-any.whl Python 3 none any Details for crate_peewee-0.1.0-py3-none-any.whl

Total release size: 12.3 kB

Release files / crate-peewee-0.1.0.tar.gz

Download URL crate-peewee-0.1.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f2afd8e7870a3c0f367580c576720f4d16e53f29c92f6f61cdfcb557f14b819f
BLAKE2b-256 checksum
How to use checksums
991fae660211093af9d836acd8af57adfb5c2b785f6219b99c9bee47ba44ece8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / crate_peewee-0.1.0-py3-none-any.whl

Download URL crate_peewee-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
367e55d380988d1b43564f0eef8450a25e73b1d7f61069d9072fc8038b492033
BLAKE2b-256 checksum
How to use checksums
37cd5fcc70aab374292ecf16c74905506957631b73749391866478fad297c7a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for crate-peewee 0.1.0

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

0.1.0 This release

2 release files No provenance

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