sonata-nfv / tng-sdk-project

The 5GTANGO SDK tool to manage network service projects.
http://www.5gtango.eu
Apache License 2.0
5 stars 4 forks source link

Refactor and added functionality (add, remove) #12

Closed stefanbschneider closed 6 years ago

stefanbschneider commented 6 years ago

New functionality:

Refactor:

Closes issues #8 #9 #10

stefanbschneider commented 6 years ago

I will check how to install the python-magic dependency correctly and self-contained. On Windows it's simply pip install python-magic-bin...

stefanbschneider commented 6 years ago

Instead of using python-magic, which requires the libmagic dependency, I now used mimetypes. mimetypes does not have any dependencies and recognizes MIME types based on file extensions. If no type could be detected, the user can/must specify the type manually with the -t argument.

More custom MIME types can be added easily as required.