Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

OpenSwitch Development Tool

Project Description

OpenSwitch Development Tool

.. image::

.. image::

.. image::

.. contents:: **Table of Contents**
:backlinks: none


.. code-block:: bash

$ pip install opx


- `Docker <>`_
- `Git <>`_
- `Repo <>`_

Getting Started

.. code-block:: bash

# initialize your workspace
$ opx init

# build all packages
$ opx build

# enter a development shell and build a package however you like
$ opx shell
opx@XXXXXXXXXXXX:/mnt$ cd opx-logging
opx@XXXXXXXXXXXX:/mnt$ mk-build-deps --root-cmd sudo --install --remove
opx@XXXXXXXXXXXX:/mnt$ dpkg-buildpackage -us -uc
opx@XXXXXXXXXXXX:/mnt$ fakeroot debian/rules binary
opx@XXXXXXXXXXXX:/mnt$ exit

# assemble an installer
$ opx assemble --dist 2.2

# remove persistent container
$ opx remove

# you can also choose to remove the container when a command finishes
$ opx assemble --dist 2.2 --rm

# clean up workspace completely
$ rm -rf opx-*/ .repo
$ opx cleanup

New Features (Over `opx-build <>`_)

* Persistent containers (if inside a workspace)

.. code-block:: bash

$ opx shell
opx@XXXXXXXXXXXX:/mnt$ echo foo > /bar
opx@XXXXXXXXXXXX:/mnt$ exit
$ opx shell
opx@XXXXXXXXXXXX:/mnt$ cat /bar

* Build then tag repository for publishing

.. code-block:: bash

$ opx release opx-logging

* Build and sort packages for easy sharing/publishing

.. code-block:: bash

$ opx build opx-logging --sort
$ tree ./pkg
└── opx-logging/
├── libopx-logging1_2.1.0_amd64.deb
├── libopx-logging-dev_2.1.0_amd64.deb
├── opx-logging_2.1.0_amd64.deb
├── opx-logging_2.1.0.dsc
├── opx-logging_2.1.0.tar.gz
└── python-opx-logging_2.1.0_amd64.deb

Command Line Completion

Run the command corresponding with your shell. Add to your shell startup file for persistent autocomplete.

.. code-block:: bash

# bash
$ eval "$(_OPX_COMPLETE=source-bash opx)"

# zsh
$ eval "$(_OPX_COMPLETE=source-zsh opx)"

# fish
$ eval (env _OPX_COMPLETE=source-fish opx)

Planned Features

* Port ``opx_build`` from shell to python
* Port ``opx_rel_pkgasm`` from python script to module
* Port ``opx_get_packages`` from python script to module
* Port ``opx_bld_basics`` from python script to module


opx is distributed under the terms of the
`MIT License <>`_.

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(15.6 kB) Copy SHA256 Hash SHA256
py3 Wheel Feb 15, 2018
(11.0 kB) Copy SHA256 Hash SHA256
Source Feb 15, 2018

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting