Skip to main content

Peewee miscellaneous addons

Code size Downloads Downloads Statistic Hits License Code style: black


description will be provided later

API

import peewee_addons @see also __init__.py

databases

Development Status :: 3 - Alpha :: still under construction

from peewee_addons import databases

from peewee_addons.databases import (
    connect,
    Database,
    DEFAULT_DATABASE,
    DEFAULT_URL,
)
DEFAULT_DATABASE = connect(DEFAULT_URL)

fields

from peewee_addons import fields

fields list
__all__ = (
    "ARCUITField",
    "ARZipCodeField",
    "ATZipCodeField",
    "AUZipCodeField",
    "BEZipCodeField",
    "BRZipCodeField",
    "CHZipCodeField",
    "CLRutField",
    "CNZipCodeField",
    "CONITField",
    "CSVField",
    "CUZipCodeField",
    "CZZipCodeField",
    "CharFieldCustom",
    "ColorHexadecimalField",
    "CountryISOCodeField",
    "CurrencyISOCodeField",
    "DEZipCodeField",
    "DateTimeTZRangeField",
    "EEZipCodeField",
    "ESZipCodeField",
    "EmailField",
    "FIELD_TYPES",
    "GRZipCodeField",
    "HROIBField",  # 'EnumField',
    "HexadecimalField",
    "IANCodeField",
    "IBANISOCodeField",
    "ILZipCodeField",
    "INZipCodeField",
    "IPAddressField",
    "IPNetworkField",
    "ISIdNumberField",
    "JPZipCodeField",
    "LanguageISOCodeField",
    "MKIdentityCardNumberField",
    "MTZipCodeField",
    "MXZipCodeField",
    "MoneyField",
    "PLNIPField",
    "PLNationalIDCardNumberField",
    "PLZipCodeField",
    "PTZipCodeField",
    "PasswordField",
    "PastDateField",
    "PastDateTimeField",
    "PositiveBigIntegerField",
    "PositiveDecimalField",
    "PositiveFloatField",
    "PositiveIntegerField",
    "PositiveSmallIntegerField",
    "ROCIFField",
    "ROCNPField",
    "ROZipCodeField",
    "RUPassportNumberField",
    "SEZipCodeField",
    "SKZipCodeField",
    "SWIFTISOCodeField",
    "SemVerField",
    "SimplePasswordField",
    "SmallHexadecimalField",
    "UAZipCodeField",
    "USSocialSecurityNumberField",
    "USZipCodeField",
    "UYCIField",
    "XMLField",
    "JSONField",
    "FileField",
    "TextField",
)

FIELDS

from peewee_addons import FIELDS all fields list from peewee_addons.fields import FIELDS the same

  • datetime
    • from peewee_addons.fields.datetime import TimeDeltaField, TimedeltaField
  • email
    • from peewee_addons.fields.email import EMailField, EmailField
  • enum
    • from peewee_addons.fields.enum import EnumField EnumField(CharField)
  • enum2
    • from peewee_addons.fields.enum2 import EnumField EnumField(CharField)
  • extra
    • from peewee_addons.fields.extra import * == extra_fields
  • html
    • from peewee_addons.fields.html import HTMLCharField, HTMLTextField # Field with HTML escaped text
  • integer
__all__ = (
    "UnsignedSmallIntegerFieldd",
    "SmallUnsignedIntegerField",
    "UnsignedIntegerField",
    "UnsignedBigIntegerField",
    "BigUnsignedIntegerField",
)
  • ip
    • from peewee_addons.fields.html import IPAddressField IPAddressField(CharField)
    • from peewee_addons.fields.html import IPv4AddressField IPv4AddressField(UnsignedIntegerField)
    • from peewee_addons.fields.html import IPv6AddressField IPv6AddressField(Field)
  • password
    • PasswordField(FixedCharField) Not implemented yet
  • path
    • from peewee_addons.fields.path import PathField Field class for storing file paths
  • path
    • from peewee_addons.fields.phonenumber import PhoneNumberField, PhonenumberField
  • restricted_char
    • from peewee_addons.fields.restricted_char import RestrictedCharField
  • username
    • from peewee_addons.fields.username import UserNameField, UsernameField

extra_fields

Development Status :: 2 - Pre-Alpha

  • from peewee_addons.fields.extra_fields import regex_fields Zip Codes, Countries Postal Codes
  • from peewee_addons.fields.extra_fields import legacy_fields PasswordField, PasswordHash. require bcrypt

mixins

from peewee_addons import mixins

  • from .field_created import Created_Datetime_Mixin, Created_Timestamp_Mixin

  • from .field_updated import Updated_Datetime_Mixin, Updated_Timestamp_Mixin

  • from .model_autosave import Autosave_Mixin

  • from .model_iterator import Iterator_Mixin

  • from .model_upsert import Upsert_Mixin

models

from peewee_addons import models

  • from .base_model import BaseModel, Database, Model
  • from .ext_model import ExtendModel

logger & utils

Metadata

Release files for peewee-addons 0.14.161

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

Built distribution (wheel)

Table of built distributions (wheels) for peewee-addons 0.14.161
File Interpreter ABI Platform
peewee_addons-0.14.161-py3-none-any.whl Python 3 none any Details

Release files / peewee_addons-0.14.161-py3-none-any.whl

Download URL peewee_addons-0.14.161-py3-none-any.whl
Size 94.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38ecd682f74abacf5ea8f3aef5eaa17a444a8386e841e8f41b69211631a6f42e
BLAKE2b-256 checksum
How to use checksums
af60a110d670cf53b11998779e3644e1137cb759a829f7bbbaf015291b12c806
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.14.161 This release

1 release file

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