Skip to main content

b2tob3

https://badge.fury.io/py/b2tob3.png https://travis-ci.org/yaph/b2tob3.png?branch=master

Easier migration from Boostrap 2 to Boostrap 3

b2tob3 is a command line tool to help migrate Web projects from bootstrap 2 to bootstrap 3 by performing a set of replacements that reflect bootstrap 3 class name changes.

b2tob3 searches all files ending in .html, .htm, .css or .js in the current directory and its subdirectories. You can specify the working directory with the d option like b2tob3 -d /path/to/dir.

b2tob3 does not fully automate migration, but it takes away some of the tedious work. Still, you’ll most likely need to perform manual fixes too.

Installation

pip install b2tob3

Usage

cd /project/html/
b2tob3

Follow these steps to avoid frustration:

  • Put your HTML/template files under version control, if they aren’t yet.

  • Change to the directory with the files containing Boostrap 2 specific markup.

  • Run the b2tob3 script once and only once.

  • Review the changes with a diff tool suitable for the version control system you use.

  • Perform the rest of the necessary changes manually.

Contributing

  • Let me know about bugs by posting an issue.

  • Help reduce the manual work by improving the code.

  • Write tests.

Contributors

Thanks to @demiurg for adding more robust replacements and command line options.

Metadata

Release files for b2tob3 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for b2tob3 0.4
File Size Uploaded
b2tob3-0.4.tar.gz 4.7 kB Details

Release files / b2tob3-0.4.tar.gz

Download URL b2tob3-0.4.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
405fdf73f89d230f59ac5686eff4b6d2bf675fd46c30059273795f161f3085bc
BLAKE2b-256 checksum
How to use checksums
dda982ae42d2770a4ad790fdfc331407468ab8e598597deff2e304e270f46183
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page