Skip to main content

Mixin for .FOO uppercase attributes mapped to ['FOO'] access.

Project description

Presents:

  • WithUC_Attrs, a mixin for other classes which provides .__getattr__ and .__setattr__ which intercept .FOO where FOO would match the rexgep ^[A-Z][_A-Z0-9]*$ and maps them to [‘FOO’].

  • UCdict, a subclass of dict using the WithUC_Attrs mixin.

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

cs.mixin.ucattrs-20150118.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file cs.mixin.ucattrs-20150118.tar.gz.

File metadata

File hashes

Hashes for cs.mixin.ucattrs-20150118.tar.gz
Algorithm Hash digest
SHA256 80a88ba5f43e45752047f1b83f8bf08a9aeb9c0bb8eae86210be13663039e2ad
MD5 ec4b5520c56c62f3a3f905352c4ec29f
BLAKE2b-256 d5572bf2257491b077be453bb7f661f5ed096464ed76b5587e22e7036112b8b3

See more details on using hashes here.

Supported by

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