Skip to main content

No project description provided

Project description

cwtch [wip] - Python dataclasses with validation and views.

Documentation

tests coverage License: MIT

In [1]: from cwtch import dataclass, field

In [2]: @dataclass
   ...: class D:
   ...:     i: int
   ...:     s: str = field(validate=False)
   ...: 

In [3]: D(i=1, s='s')
Out[3]: D(i=1, s='s')

In [4]: D(i='i', s='s')
---------------------------------------------------------------------------
...
ValidationError                           Traceback (most recent call last)
Cell In[4], line 1
----> 1 D(i='i', s='s')

File <string>:14, in __init__(__cwtch_self__, i, s, **__cwtch_kwds__)

ValidationError: type[ <class '__main__.D'> ] path[ 'i' ] value_type[ <class 'str'> ]
  type[ <class 'int'> ] value_type[ <class 'str'> ] value[ 'i' ]
    Error: invalid literal for int() with base 10: 'i'

In [5]: D(i='1', s=0)
Out[5]: D(i=1, s=0)

Project details


Download files

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

Source Distribution

cwtch-0.1.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distributions

cwtch-0.1.1-cp312-cp312-win_amd64.whl (20.2 kB view details)

Uploaded CPython 3.12 Windows x86-64

cwtch-0.1.1-cp312-cp312-win32.whl (20.2 kB view details)

Uploaded CPython 3.12 Windows x86

cwtch-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

cwtch-0.1.1-cp312-cp312-musllinux_1_2_i686.whl (2.4 MB view details)

Uploaded CPython 3.12 musllinux: musl 1.2+ i686

cwtch-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

cwtch-0.1.1-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (2.4 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

cwtch-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (344.6 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

cwtch-0.1.1-cp312-cp312-macosx_10_13_x86_64.whl (372.3 kB view details)

Uploaded CPython 3.12 macOS 10.13+ x86-64

cwtch-0.1.1-cp311-cp311-win_amd64.whl (20.2 kB view details)

Uploaded CPython 3.11 Windows x86-64

cwtch-0.1.1-cp311-cp311-win32.whl (20.2 kB view details)

Uploaded CPython 3.11 Windows x86

cwtch-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

cwtch-0.1.1-cp311-cp311-musllinux_1_2_i686.whl (1.2 MB view details)

Uploaded CPython 3.11 musllinux: musl 1.2+ i686

cwtch-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

cwtch-0.1.1-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl (1.1 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

cwtch-0.1.1-cp311-cp311-macosx_11_0_arm64.whl (185.4 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

cwtch-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl (196.9 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

File details

Details for the file cwtch-0.1.1.tar.gz.

File metadata

  • Download URL: cwtch-0.1.1.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.5.0

File hashes

Hashes for cwtch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 122b8e255bd48b335773d3af559edbc6d21721ee3b9acce926b922cd7b09918a
MD5 6c8b037b9c6efb1f26cf0e5c8179a37f
BLAKE2b-256 57b06aadd1f4c25f27d65af2488825233bc8a8f8063099959e7f8944e37e84ea

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: cwtch-0.1.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.5.0

File hashes

Hashes for cwtch-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 825c6650faf23012f2a2bc6b8b6b02267972d89b746cef15a27e7b652fbddc38
MD5 434ddf5deb063d5ccbca436c3b875149
BLAKE2b-256 aa45c6e3793a98b97f30e49482405619bc2fe7558c571d2f1f4097a1cb228bbe

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp312-cp312-win32.whl.

File metadata

  • Download URL: cwtch-0.1.1-cp312-cp312-win32.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.5.0

File hashes

Hashes for cwtch-0.1.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8a54b625b6bc1357ac10da58d6babfca70bde81bc44a1f870a944cafca617072
MD5 662b87d33b12a51c3ba4a3773dc1e08a
BLAKE2b-256 7ad2ea57444c34ffd2d361f1c8b44d583c712e443c8fb4a0024f0ff9d53a330b

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for cwtch-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7328f48e70be6dc5440d95a6ed2755c1485c6950d5e4c86dbf7646a1f9d4a38f
MD5 552b0deb00b0bc7eaf191cb1da0f6407
BLAKE2b-256 f0e8e992516f1451995ae7f453706aa3f3d96700f49c42afb715b3529855447a

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp312-cp312-musllinux_1_2_i686.whl.

File metadata

  • Download URL: cwtch-0.1.1-cp312-cp312-musllinux_1_2_i686.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: CPython 3.12, musllinux: musl 1.2+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.5.0

File hashes

Hashes for cwtch-0.1.1-cp312-cp312-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 89d91928684a28879b5570d418e6aebb66314d5d09a9c8f2acc6cacfa9230d45
MD5 736222dba9f268eb44792ac0f6fdd435
BLAKE2b-256 60af2e73775514d00b508c34d534a24ee797a0ba925177a3223c82943e9829cd

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cwtch-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cbbf22d700afd25d1a00b67c68a14ef201b8fab5640e0f680a42e2541ebfbcce
MD5 381976112b3f57c04d7a088741f4d955
BLAKE2b-256 d0eacf1a91b1b912b088f4cf77348a35c4c2187ccab7e6aa54d5f6e03713f70c

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for cwtch-0.1.1-cp312-cp312-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 f0a27172a7cc6cc3cd408d098743d846759b22bf98707be19a493b9238ba300e
MD5 402496506a3b76a32120e6a5d8c05f8f
BLAKE2b-256 15ada45299ee41d64c4bb77351bee6438ca0d22184c7901cb03602bf82df45a7

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cwtch-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f23187de6a8f5c6987ba6d9dc10ff33383db6a2921ec859c0690c31112abab77
MD5 db48db9ec42e90e9bf8d126e625e1a1c
BLAKE2b-256 9e7bf2e0c49d277fbd7a470c6f33baa8c288a857fa2474661f0aa58e4f592606

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for cwtch-0.1.1-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 6d3f9a20f2a2924aa02a2b79a523d199fa1412e0543c45a2c3b9a04895e43615
MD5 4f26614bf3a6eef7fbdb079d1da99815
BLAKE2b-256 b99c09b6efa8d98752966e538c868bc1e35f156ede3a6de5a071f48e0f87d6bc

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: cwtch-0.1.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.5.0

File hashes

Hashes for cwtch-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1af884dc2be770741aaf280d99d07aaba618072bb37d635645502438daeeeda1
MD5 d59dab13fd0a8cdc746d37279d35a953
BLAKE2b-256 ccdeb37192f5c566582a6ff9cc4499e167cc1cfdc160d3e061bc52ceae4a4c2d

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp311-cp311-win32.whl.

File metadata

  • Download URL: cwtch-0.1.1-cp311-cp311-win32.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.5.0

File hashes

Hashes for cwtch-0.1.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8255173530f568c2d6da705de04822d04a3134c793929c9b65f379287d9078a7
MD5 67a31dfc17b69bc3b39c241ebcc64d49
BLAKE2b-256 30899f5193b6e604d9f6c4c96d5bda6419ca169bb7868191371a725b356fa7a7

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for cwtch-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c20e49636b96113cdd4abf141be2c3feb6f6b060dc94647c55640addb1d02956
MD5 90ca8b704bab413a105b4c4fa3be01b2
BLAKE2b-256 1dd35dc46fa8be383b3fb47974cdcd498e7975bdf5b74f9d1b6a37feef6d892b

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp311-cp311-musllinux_1_2_i686.whl.

File metadata

  • Download URL: cwtch-0.1.1-cp311-cp311-musllinux_1_2_i686.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.11, musllinux: musl 1.2+ i686
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/23.5.0

File hashes

Hashes for cwtch-0.1.1-cp311-cp311-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 92687575d573ff8fc2a75a5c87aae469c68ec106e56b1aae2d106089c1266e1d
MD5 21bad3e261fff24c79738c1e5d877124
BLAKE2b-256 813f9f9100749da80b6ebee1ec06146016d2fd88f4505fb5f2efd4f81d3bb873

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for cwtch-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d58a53fb81f377a45c48ad2d94be90ec4425d4b54ce53695ff0f95f46f22153c
MD5 0db5513d3c1f5cc2b8a2f4a30f0bb6c9
BLAKE2b-256 fe2692e7235d8547696873e1a9616fdc5d37d82552fd2b13c6814576b4db7e7a

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for cwtch-0.1.1-cp311-cp311-manylinux_2_17_i686.manylinux_2_5_i686.manylinux1_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 ef67d756e5af45b08371ad0e0a48f208e94f3fb9b71b4b3532bf779290a498ac
MD5 8f46bcdc65ed43122d9f903711509b39
BLAKE2b-256 376a54cac8fd2904e014f833e71c51d6a6dd061d6614b3feba3a65e496d674ea

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cwtch-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da02fc2df27c58f824e6405d4379a8011976a26091d08db6eb58175813a52298
MD5 15265e23e37f73a9f01b77eb90ae8125
BLAKE2b-256 1c66f94a8186df2060f42342363c233de65db974bf3e5593e916fee21b217e92

See more details on using hashes here.

File details

Details for the file cwtch-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for cwtch-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b2bddcb6da6574537ef6d98b93917ecc5a4b0c07563de4433d66ea4012b1fea8
MD5 c1d85ef75c93f01825c2e452aff462dc
BLAKE2b-256 a19896bda0894d4fa5daad4e4374c8a196283666679ea644de7b3a8de46fcc35

See more details on using hashes here.

Supported by

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