Code Monkey home page Code Monkey logo

cambiatakehome's Introduction

Cambia Take Home Question

This project implements a CSV sorter that sorts a comma deliminated csv file in reverse alphabetic order.

Name: Alex Carson Bull

Email: [email protected]
About: This project allows a user to build a Docker container and then run a Python program that will sort a comma separated CSV file into descending alphabetical order. Along with the program there is a Gherkin test suite to outline the functionality of the program. The gherkin file does not actually run but should give a comprenhensive look at the functionality.

DOCKER:

To build the Dockerfile you could use a volume to allow for the input.csv to be modified and see the changes.

Sample build and run:

sudo docker build -t .
sudo docker run

Note:

The docker container currently will contain the output file in the container. I am not sure of a way to transfer it out because a volume will make the output file exist when the container is run and after the container exits I'm unsure of a way to cp it out. There are two lines in the python commented out to print the output

Gherkins:

The csvSorter.feature file defines the test cases and how they should act. It does not provide actual running code.

Testing:

The python portion on this project comes with a built-in unit test framework. It tests all the functions in the csvSorter.py file and makes sure that they will run according to the spec provided and handles all of the scenarios in the Gherkins feature file.

Running Tests:

To run the unit test change the docker CMD to be:
'CMD ["python3" , "-m", "unittest", "test_csvSorter.py"]

Files:

README.md
DockerFile
csvSorter.feature
.gitignore
/src/
   csvSorter.py
   test_csvSorter.py
   testFile.csv
   testimput.csv

cambiatakehome's People

Contributors

carsonbull avatar

Watchers

 avatar

cambiatakehome's Issues

README

README formatting and content. Might be worth taking out the questions and putting them in their own separate PDF.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.