Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

jaredmcphillen/repkl

 
 

Repository files navigation

IMF Composition Repackager (repkl)

                                     88         88
                                     88         88
                                     88         88
8b,dPPYba,   ,adPPYba,  8b,dPPYba,   88   ,d8   88
88P'   "Y8  a8P_____88  88P'    "8a  88 ,a8"    88
88          8PP"""""""  88       d8  8888[      88
88          "8b,   ,aa  88b,   ,a8"  88`"Yba,   88
88           `"Ybbd8"'  88`YbbdP"'   88   `Y8a  88
                        88
                        88

Introduction

IMF Composition Repackager (repkl) creates a new Delivery (the destination) from a single Composition (the target) whose assets are located across one or more source Deliveries. The assets of the target can be either copied, moved or symlinked from the source deliveries.

repkl is written in pure Python.

Quick start

  • run pipenv install --dev
  • set the PYTHONPATH environment variable to src/main/python, e.g. export PYTHONPATH=src/main/python
  • pipenv run can then be used:
pipenv install --dev
export PYTHONPATH=src/main/python
pipenv run python src/main/python/repkl/cli.py <path to the target CPL> <path to the destination directory>

Command line

Run the following for command line options.

python src/main/python/repkl/cli.py -h

Example (creates a supplementatl delivery where the assets are symlinked to the source assets):

python src/main/python/repkl/cli.py --action symlink --ov delivery/CPL_bb2ce11c-1bb6-4781-8e69-967183d02b9b delivery/CPL_0b976350-bea1-4e62-ba07-f32b28aaaf30.xml new_delivery/

Dependencies

Runtime

Development

The project uses pipenv to manage dependencies.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%