Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Files for futurify, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size futurify-0.1.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page