Peewee-ORM miscellaneous addons, mixins, helpers, and utils
Project description
Peewee miscellaneous addons
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 EnumFieldEnumField(CharField)
- enum2
from peewee_addons.fields.enum2 import EnumFieldEnumField(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 IPAddressFieldIPAddressField(CharField)from peewee_addons.fields.html import IPv4AddressFieldIPv4AddressField(UnsignedIntegerField)from peewee_addons.fields.html import IPv6AddressFieldIPv6AddressField(Field)
- password
PasswordField(FixedCharField)Not implemented yet
- path
from peewee_addons.fields.path import PathFieldField 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_fieldsZip Codes, Countries Postal Codesfrom peewee_addons.fields.extra_fields import legacy_fieldsPasswordField, 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, Modelfrom .ext_model import ExtendModel
logger & utils
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file peewee_addons-0.14.161-py3-none-any.whl.
File metadata
- Download URL: peewee_addons-0.14.161-py3-none-any.whl
- Upload date:
- Size: 94.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38ecd682f74abacf5ea8f3aef5eaa17a444a8386e841e8f41b69211631a6f42e
|
|
| MD5 |
48d77b9af235dc094029c005c9310b3d
|
|
| BLAKE2b-256 |
af60a110d670cf53b11998779e3644e1137cb759a829f7bbbaf015291b12c806
|