Skip to main content

Peewee-ORM miscellaneous addons, mixins, helpers, and utils

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

peewee_addons-0.14.158-py3-none-any.whl (94.7 kB view details)

Uploaded Python 3

File details

Details for the file peewee_addons-0.14.158-py3-none-any.whl.

File metadata

File hashes

Hashes for peewee_addons-0.14.158-py3-none-any.whl
Algorithm Hash digest
SHA256 97e0b496e46819b3d3dc645948d14b0971d61eb54877322ad625b350f91b795a
MD5 fdbb1d2722c3f2e29513a4bb37412274
BLAKE2b-256 3a6cb6f6e49e5c88aecaa303e03bb124853950eddc2c9ce37286226f033a12cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page