Skip to main content

Migacore Technologies Technical Coding Challenge Solution

Project description

Migacore Organization Chart

This package provides a cli to calculate and display organization chart of a given set of employees.


You can install it via pip:

$ python3.6 -m venv env
$ pip install mcore-organization-chart

Or you can clone this repo and install it via setuptools:

$ python3.6 -m venv env
$ pip install -r requirements_dev.txt
$ git clone
$ make install

You can also run the tests, coverage, static type checker (mypy) and linters (flake8) using the available make commands.

$ make help
lint                 check style with flake8
test                 run tests quickly with the default Python
mypy                 run mypy vs the codebase
coverage             check code coverage quickly with the default Python

Build Organization Chart

Once the package is installed you can feed the build-org-chart command with the target employees list to calculate their organization chart. There is a example.txt input file you can use to give it a try:

$ cat example.txt
    Sarah Watson
    Owen Taylor
    Ellie Ross
    Isaiah Martin

$ build-org-chart example.txt

|--- Sarah Watson
          |--- Owen Taylor
          |--- Ellie Ross
                    |--- Isaiah Martin


This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.

.. _Cookiecutter: .. _audreyr/cookiecutter-pypackage:

Project details

Download files

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

Source Distribution

mcore_organization_chart-1.0.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

mcore_organization_chart-1.0.0-py2.py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page