Skip to content

eon-collective/python_project_template

Repository files navigation

Team Description Connector

Linting

Docker Build

python_project_template - PyTest

This connector takes employees data and give back a summary of what every one does, number of employees and a count of employees per role.

Table of Contents

Introduction

We realised it could take so long to manually create a summary of what every employee does or even count employees having the same roles. That's the reason as to way we came up with this connector to automatically generate a summary of employees.

The connector requires the following:

  • Python
  • Docker
  • Github
  • ECR

Getting Started

To run this project locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/your-username/your-project.git
  1. Set up environment:
  • Create a virtual environment
python -m venv myenv
  • Activate the environment (windows).
myenv\Scripts\activate
  • Activate the environment (linux).
source myenv/bin/activate
  • Install dependancies
pip install -r requirements.txt
  1. Set up Docker:
  • Docker Build
docker build -t hello_team:0.0.1 .
  • Docker run example
docker run --volume C:\Users\LENOVO\Desktop\EonCollective\adebpt\hello_world:/mnt/input hello_team:0.0.1 --team_ke_json /mnt/input

Note, when running, remember to change the paths accordingly.

Usage

  1. If you are running this locally, main.py is the connector entry point, you need to run the the file with --team_ke_json argument. For example:
python src/main.py --team_ke_json C:\Users\LENOVO\Desktop\EonCollective\adebpt\hello_world

C:\Users\LENOVO\Desktop\EonCollective\adebpt\hello_world points to a directory having the .json file.

  1. If you are running on docker:
docker run --volume C:\Users\LENOVO\Desktop\EonCollective\adebpt\hello_world:/mnt/input hello_team:0.0.3 --team_ke_json /mnt/input
  1. Running test locally
python -m unittest tests.unit_tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published