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.
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
To run this project locally, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/your-project.git
- 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
- 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.
- 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.
- 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
- Running test locally
python -m unittest tests.unit_tests