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.
Install
------------
You can install it via pip:
```bash
$ python3.6 -m venv env
$ pip install mcore-organization-chart
```
Or you can clone this repo and install it via setuptools:
```bash
$ python3.6 -m venv env
$ pip install -r requirements_dev.txt
$ git clone https://github.com/Spin14/mcore-organization-chart.git
$ make install
```
You can also run the tests, coverage, static type checker (mypy) and linters (flake8) using the available make commands.
```bash
$ 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:
```bash
$ cat example.txt
Sarah Watson
Owen Taylor
Ellie Ross
Isaiah Martin
$ build-org-chart example.txt
|--- Sarah Watson
|--- Owen Taylor
|--- Ellie Ross
|--- Isaiah Martin
```
Credits
-------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
---------------------------
This package provides a cli to calculate and display organization chart of a given set of employees.
Install
------------
You can install it via pip:
```bash
$ python3.6 -m venv env
$ pip install mcore-organization-chart
```
Or you can clone this repo and install it via setuptools:
```bash
$ python3.6 -m venv env
$ pip install -r requirements_dev.txt
$ git clone https://github.com/Spin14/mcore-organization-chart.git
$ make install
```
You can also run the tests, coverage, static type checker (mypy) and linters (flake8) using the available make commands.
```bash
$ 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:
```bash
$ cat example.txt
Sarah Watson
Owen Taylor
Ellie Ross
Isaiah Martin
$ build-org-chart example.txt
|--- Sarah Watson
|--- Owen Taylor
|--- Ellie Ross
|--- Isaiah Martin
```
Credits
-------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mcore_organization_chart-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 304f036dd959e67d5ca0502f45f972e7db746bdfee280a16837a6f3e93b8f730 |
|
MD5 | 5ac3b1db20446402d21819ae5ced3469 |
|
BLAKE2b-256 | aa556d127e87f17be01b7567fc2b2e6a282bce33b62ac5dc72f399cf75d44457 |
Close
Hashes for mcore_organization_chart-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 485dc971f60a74783367fbb8b093ce56c5aad303b20f3ccafd58aa156bb2b049 |
|
MD5 | 9c21363fb9ae6eeba4b22f60156ddafe |
|
BLAKE2b-256 | 58b831fc73e4247a00552536c8d112fd272dd06d33e6e572f9aaf3c481f4dcbb |