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!

Manage __future__ imports.

Project Description

Futurify - Manage your __future__ statements

Scott Torborg - Cart Logic

futurify is a simple tool for managing forward-compatible from __future__ import... statements in your Python projects.

Installation

Install with pip:

$ pip install futurify

Example Usage

Add some future statements to a file tree:

$ futurify +absolute_import +print_function myproject/

Add some, remove others:

$ futurify -print_function -with_statement +division hello.py

Dry run:

$ futurify --dry-run -with_statement +absolute_import +print_function myproject/

API Usage

import futurify

futurify.process_tree('myproject',
                      add=['absolute_import', 'print_function'])

futurify.process_file('hello.py',
                      add=['absolute_import'],
                      remove=['division'])

License

Futurify is released under the MIT license. See LICENSE for details.

Release History

Release History

This version
History Node

0.1

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
futurify-0.1.tar.gz (6.1 kB) Copy SHA256 Checksum SHA256 Source Oct 21, 2014

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