Package: efsspysdk
Lord of the Rings SDKRequirimentsPython >= 3.9InstallationTo install this SDK, execute the following command in your terminal:pipinstallefsspysdkTo use this SDK, you need an access token. Generate it by creating an accounthere.Once you have obtained your access token, set it as an environment variable in your terminal. In the project's root folder, execute the following command:source./setup-tokenyour-token-hereAlternatively, if you prefer or encounter any issues, manually export the environment variable:exportAPI_KEY=your-token-hereHow to useThe SDK provides two available agents: Movie for movie requests and Quote for quotes. In your code, import the desired agents from the previously installed package:fromefsspysdkimportMovie,QuoteMovie agentRegarding the Movie agent, it offers the following methods:Method:list()Response: Retrieves a list of all movies, including "The Lord of the Rings" and "The Hobbit" trilogies.
Example:movie=Movie()movie.list()orMovie().list()Method:get(movie-id)Response: Requests information for a specific movie.
Example:movie=Movie()movie.get(movie_id)orMovie().get(movie_id)Method:list_quotes(movie-id)Response: Requests all movie quotes for a specific movie (only working for the LotR trilogy).
Example:movie=Movie()movie.list_quotes(movie_id)orMovie().list_quotes(movie_id)Quote agentThe Quote agent provides the following methods:Method:list()Response: Retrieves a list of all movie quotes.
Example:quote=Quote()quote.list()orQuote().list()Method:get(movie-id)Response: Requests a list of all movie quotes for a specific movie.
Example:quote=Quote()quote.get(movie-id)orQuote().get(movie-id)FiltersIn all methods, it is possible to filter only specific fields from the response JSON. To do this, you can include them as a list in the method call. For example:movie.list(['name','academyAwardNominations','academyAwardWins'])This will return a list of movies with only the three attributes listed: name, academyAwardNominations, and academyAwardWins.Specifically for certain calls:quote.get('5cd96e05de30eff6ebccebd0',['dialog'])This will retrieve a specific quote with only the 'dialog' field included in the response.Using these filters allows you to retrieve specific fields of interest, providing a more focused and efficient way of working with the data.You can execute the unit tests by running the following command in the root directory of the repository:pytestThis command will run the unit tests and provide feedback on their success or any encountered failures.If you want to see an example, you can execute the scriptexample.pyin the root directory of this repository by running the following command:pythonexample.pyI hope you have a great experience! If you have any further questions, feel free to ask. 😊Hello LibLab!

I hope you're doing well, my friend! My name is Emmanuel, and I'm thrilled to be participating in this test to become your new DevOps Engineer. I absolutely love challenges like this, and I'm always excited to give my best shot. Unfortunately, with the limited time of 6 hours, I couldn't take care of every detail as I usually do, such as complete unit testing, improving folder structure, and validating most parameters. However, I believe this test showcases my understanding of Python and SDKs.

If you're curious to see more, feel free to check out other projects on my GitHub and my LinkedIn page, where you can explore my journey so far (links are provided below)!
Best,
See ya soon!LinkedinGitHub