Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A library for interacting with the filesystem

Project Description
Pathway is a module for interacting with the filesystem in a clean,
object-oriented manner. For example, instead of::

datafile = os.path.join(datapath, 'somedata.txt')
if os.path.exists(datafile)
os.rename(datafile, datafile + '.old')
fd = open(datafile, 'w')
fd.write(data)
fd.close()

You can write the much cleaner:

datadir = pathway.new(datapath)
if 'somedata.txt' in datadir:
datadir['somedata.txt'].rename('somedata.txt.old', overwrite=True)
datadir.create('somedata.txt', data)

The majority of filesystem operations have corresponding methods. The module
itself has no dependencies besides Python.
Release History

Release History

This version
History Node

1.3.1

History Node

1.3

History Node

1.2

History Node

1.01

History Node

1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
Pathway-1.3.1.tar.gz (5.2 kB) Copy SHA256 Checksum SHA256 Source Jan 18, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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