This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

ctx - A minimal but opinionated dict/object combo (like Bunch).

Requirements

The ctx module should work with all versions of Python.

Features

The ctx module provides the Ctx class which is a subclass of the python ‘dict’ object.

Ctx modifies ‘dict’ in the following ways:

1 The dictionary items can be read or set using attribute access notation.

‘ctx.a’ is identical to ‘ctx[“a”]’ and ‘ctx.a = 5’ is identical to ‘ctx[“a”] = 5’

2 The objects attributes can be read using item access notation.

‘ctx[“__doc__”]’ is identical to ‘ctx.__doc__’

3 The objects attributes can not be set under any circumstances.

4 The dictionary can not have a key with the same name as an objects attribute.

‘ctx.name’ and ‘ctx[“name”]’ are resolved using the following three steps.

  1. if the object has an attribute ‘name’ then return the attribute.

b) if the dictionary has a key ‘name’ then return the value associated with the key.

  1. raise LookupError.

‘ctx.name = 5’ and ‘ctx[“name”] = 5’

  1. If name is an attribute of the class then raise AttributeError.
  2. set the dictionary item as usual.

Installation

You can install this package using pip with the following command.

pip install ctx

Support

To report any bugs, or ask any question, please visit

https://github.com/figlief/ctx/issues.

Resources

Here is a list of useful links about this project.

Release History

Release History

0.1.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ctx-0.1.2-py2.py3-none-any.whl (4.6 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Dec 19, 2014
ctx-0.1.2.tar.gz (3.6 kB) Copy SHA256 Checksum SHA256 Source Dec 19, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting