https://github.com/vicenteneto/pynettool-exercise
PyNetTool is a Python wrapper for the jnettool library.
https://github.com/vicenteneto/pynettool-exercise
python wrapper-library
Last synced: 3 months ago
JSON representation
PyNetTool is a Python wrapper for the jnettool library.
- Host: GitHub
- URL: https://github.com/vicenteneto/pynettool-exercise
- Owner: vicenteneto
- Created: 2017-02-24T02:25:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-26T00:57:00.000Z (almost 9 years ago)
- Last Synced: 2025-07-19T09:08:09.542Z (6 months ago)
- Topics: python, wrapper-library
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Exercise 1:
## Introduction
An old Java library for configuring a network router has been ported to python. The library is functionally working, but it’s implemented in a very Java idiomatic coding style rather than a Pythonic coding style.
Because the library is heavily used by different developers in the team, we want to create an adapter which can be used in the future.
The code in `exercise_1.py` is not meant to be executable, but rather a fictional example.
You can assume that the `jnettool` library is working properly.
## Mission
As mentioned in the introduction, the library and the code is not programmed in a pythonic way.
Your job is to create an Adapter for the library (or for the few functions used in the example) to offer a pythonic way to use the library and to reduce the code required for setup and teardown.
PS: The code is not meant to be executable.