Code Monkey home page Code Monkey logo

pybreeder's Introduction

Breeder

This is a quick-and-dirty tool for combining multiple .py (or other text) files into a single script, making it easier to distribute/deploy Python scripts along with their dependencies.

Usage example:

breeder.py module1.py directory/ ... main.py >big-snake.py

All Python files (and directories) will be treated as modules, except the last one which will be treated as the 'main' body of the combined script. It is up to the caller to figure out which order to import files in, if there is are dependencies between modules.

To compress modules and embedded data, add the --compress flag.

To include a custom header at the top of the file, use --header FILENAME.

Breeder output scripts have been verified to be compatible as far back as Python 2.2.2 and should work with any Python 2.x release.

Note: If you know you are targetting Python 2.6 or newer, you should probably use Python's native .zip support instead of this hack!

Copyright

Breeder is (C) Copyright 2011, Bjarni R. Einarsson http://bre.klaki.net/.

TODO: GPLv3

pybreeder's People

Contributors

bjarnirunar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.