Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

A simple package to create data structures with defaultsob

Project Description

A simple package to create data structures with defaults and strict limitations of attributes/properties.


class User(Defaults):
    __slots__ = [
   usef will use the 'name' attribute
   if the description attribute is not
   set at the time of object creation
   description = usef('name')

user = User(name='Billy')
.to_dict_clean method returns a
dictionary of attributes with values
   "name": "Billy",
   "description": "Billy"

user.description = "Something Else"
user.an_attribute_with_no_default = "Another"
   "name": "Billy",
   "description": "Something Else"
   "an_attribute_with_no_default": "Another"

user2 = User(name="Billy", description="The Kid")
   "name": "Billy",
   "description": "The Kid"


0.1.0 (2015-01-11)

  • First release on PyPI.

Release history Release notifications

This version
History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
defaultsob-0.3.0.tar.gz (13.2 kB) Copy SHA256 hash SHA256 Source None Oct 1, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page