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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
futurify-0.1.tar.gz
(6.1 kB
view details)
File details
Details for the file futurify-0.1.tar.gz
.
File metadata
- Download URL: futurify-0.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5d91364505d472a758bff94b7fd3736beb184776d21b40734bae5c864b3296b |
|
MD5 | 1358624a52d0a6ab8627c58ed7849261 |
|
BLAKE2b-256 | e8e0d3923e220d9c292a9b9c9115fba3bb52565a67af6845bc91ef590b355ddd |