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

Pywalk is a python module written for traversing trees built of dictionaries, lists and tuples in a breadth-first manner.

This module is still under development. If you’re used to mature, polished python libraries you may want to avoid pywalk. Additionally, it has only been tested against Python 2.7.1+ (what happens to be what’s on my computer) so it may not work as expected in Python 3.x. However, if you’re a more adventurous developer with an urge (or need) for manipulating nested data structures, this just might be the library for you!

Pywalk is a spiritual port of js-traverse, in that it’s meant to solve similar problems.

How It Works:

walk(tree) returns a decorator that applies a callback to each node in the tree, in a breadth-first manner. For example:

tree = {'a': 1, 'b': [9, 9, 6, 7, 6]}

print("Tree before: "+repr(tree))

@walk(tree)
def that_aint_my_zip_code(node):
    if node.value == [9, 9, 6, 7, 6] :
        node.set([9, 9, 7, 7, 5])

print("Tree after: "+repr(tree))

For more, visit https://github.com/jesusabdullah/pywalk .

Release History

Release History

0.0.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

0.0.1

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
pywalk-0.0.2.tar.gz (3.2 kB) Copy SHA256 Checksum SHA256 Source May 25, 2011

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