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 files for futurify 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| futurify-0.1.tar.gz | 6.1 kB | Details |
Release files / futurify-0.1.tar.gz
| Download URL | futurify-0.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5d91364505d472a758bff94b7fd3736beb184776d21b40734bae5c864b3296b
|
|
BLAKE2b-256 checksum How to use checksums |
e8e0d3923e220d9c292a9b9c9115fba3bb52565a67af6845bc91ef590b355ddd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |