Skip to content

AdMoR/pex-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why do I need that ?

Easy launch of command line jobs

Get your executable, launch your logic with something like my_exec -m my_package --arg1 value1. Job is done.

On top of that, you can store all the previous executables from earlier version of your job and run regressions tests.

What tool to use ?

It offers the packaging feature that we want. At the end of the build, we get a *.pex file that we can later use as myproject.pex -m my_package --arg1 value1.

A boilerplate code

It gives the basic blocks to build a pex with your python package.

In short, run the following commands to see how your project can be built as an executable

tox
./dist/app.pex -m my_project

pex_build

What this does is :

  • Build the package requirements in a virtual env
  • Install your custom package
  • Create a zip that will be the .pex file
  • you can launch your __main__.py with the second line of the command line

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages