Scripts Index
Related Topics
Popular Trends
Trending Topics
Python Libraries and Modules  

Dictionary with attribute-style access

download download home home   report broken
important script information
company name:
code.activestate.com
license: Free
minimum requirements: Python
functional limitations:
Dictionary with attribute-style access description


This script defines a dictionary with attribute-style access. It maps attribute access to the real dictionary.It can be easier to read and type data access using the simpler attribute syntax (one dot), that using a lot of square-brackets and quotes. Of course, your key must match a valid identifier string for this to work. If it doesn't you can still use the traditional item access syntax.



Relates:
Access - Dictionary - Dictionary Access - Attribute Access - Map Access - Attribute
Similar scripts
IPv4 address set type (Popularity: ) : IPv4 address set type script initializes an ip4range class.The constructor accepts an unlimited number of arguments that may either be tuples in the form (start,stop), integers, longs or strings, where start and stop in a tuple may also be of ...
Gather detailed system information on Mac OS X (Popularity: ) : This script uses the system_profiler application to retrieve detailed information about a Mac OS X system.There are two useful ways to use it: the first is to ask for a complete Python datastructure containing information about the system (see OSXSystemProfiler.all()) and ...
msoffice2ps Python Module (Popularity: ) : This Python module can be used for conversion of Microsoft Office documents to Postscript via an installed postscript printer driver. This module uses Microsoft Office and the installed postscript printer driver for the export. You can use this module to ...
Gather detailed system information on Ma (Popularity: ) : This script uses the system_profiler application to retrieve detailed information about a Mac OS X system.There are two useful ways to use it: the first is to ask for a complete Python datastructure containing information about the system (see OSXSystemProfiler.all()) ...
PyHtmlTable (Popularity: ) : Allows on-the-fly creation of HTML tables in Python. Similar to Table.pm or Table.php.
Numeric base converter (Popularity: ) : This is a traditional base converter with the twist that it accepts any strings as the digits for the input and output bases. Besides all the normal base-converts, you can now create compact versions of huge numbers by converting them ...
Memento design pattern in python (Popularity: ) : Memento design pattern in python script allows you to cache instances based on what arguments are passed to them.
cgi_buffer (Popularity: ) : A group of libraries that can be used to improve performance in your CGI scripts.
Generator for sequence operations (Popularity: ) : Permutations and combinations are often required in algorithms that do a complete search of the solution space. They are typically rather large so it's best not to compute them entirely but better to lazily generate them.This script uses Python generators ...
Null Object Design Pattern (Popularity: ) : This script is a sample implementation of the 'Null Object' design pattern. Roughly, the goal with Null objects is to provide an 'intelligent' replacement for the often used primitive data type None in Python or Null (or Null pointers) in ...
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Similar Software
Bunch for Linux (Popularity: ) : Bunch is a dictionary which supports attribute-style access, a la javascript.

>>> b = Bunch()
>>> b.hello = 'world'
>>> b.hello
'world'
>>> b['hello'] += "!"
>>> b.hello
'world!'
>>> b.foo = Bunch(lol=True)
>>> b.foo.lol
True
>>> b.foo is b['foo']
True

Dictionary Methods

A Bunch is a subclass of dict; it supports all the ...

Dictionary Wordlist SQL, Excel, Access (Popularity: ) : Bilingual Dictionary Wordlist for French, Spanish, German, Portuguese, English, Italian, Dutch, Swedish, Russian, Chinese, Czech, Polish in SQL, MS-Excel or MS-Access - format for commercial or private use. Integrate it into your application, website, search engine. For Universities, translation agencies ...
Technical Dictionary English Dutch (Popularity: ) : Technical Dictionary English to Dutch 170685 entries/translations in Excel or Access- Format. Vocabulary from the fields of electrical engineering, engeneering, automotive, automation, electronics, mechanical , engineering, instrumentation, engineering in general, computer science, space, multimedia, networks, internet, telecommunications, windows, communication, geology ...
Technical Dictionary Dutch English (Popularity: ) : Technical Dictionary Dutch to English 138949 entries/translations in Excel or Access- Format. Vocabulary from the fields of electrical engineering, engeneering, automotive, automation, electronics, mechanical , engineering, instrumentation, engineering in general, computer science, space, multimedia, networks, internet, telecommunications, windows, communication, geology ...
Autoidea PowerDrive for Apparel Retailers with Multi Shops & E-Commerce (Popularity: ) : Autoidea PowerDrive for Apparel Retailers with Multi Shops & E-Commerce is designed specifically for Apparel Retailers only. The system can be used over the Internet with a centralized database for multi-chain retailers. It's very easy to add & change a ...
Autoidea PowerDrive for Apparel Retailers with E-Commerce (Popularity: ) : Autoidea PowerDrive for Apparel Retailers with E-Commerce is designed specifically for Apparel Retailers only. It is a cutting down edition of Autoidea PowerDrive for Apparel Retailers with Multi Shops & E-Commerce. It's very easy to add & change a style, ...
CrosswordJet (Popularity: ) : CrosswordJet is a tool for designing crossword grid and automatic construction of words and clues. It is the all-in-one solution for professional crossword constructors and publishers as well as relax for crossword fans, students and friends. CrosswordJet includes dictionary with ...
Ultralingua German-English Dictionary (Mac) (Popularity: ) : The most CONVENIENT AND COMPREHENSIVE German-English / English-German dictionary for your Mac. This is a professional grade dictionary for use in education, translation, and business. It includes over 300,000 indexed entries, including thousands of technical and colloquial terms, idiomatic expressions, ...
Ultralingua French-English Dictionary (Mac) (Popularity: ) : The most CONVENIENT AND COMPREHENSIVE French-English / English-French dictionary for your Mac. This is a professional grade dictionary for use in education, translation, and business. It includes over 300,000 indexed entries, including thousands of technical and colloquial terms, idiomatic expressions, ...
Everest Dictionary with databases (Popularity: ) : It is the greatest free dictionary. For the time being, it includes 31 dictionaries. The producer assured us that soon he will contribute with other some dictionaries. The facilities of this dictionary: - It contain all international communication languages - ...
ad


Rate me
supported os
All
stats
downloads 13
version 1.0
size in Kb
popularity   
1031/377376
user rating 5/10
New Scripts
Popular Scripts
Latest Reviews