When comparing pyglet vs Melharfi, the Slant community recommends pyglet for most people. In the question“What are the best 2D game engines?” pyglet is ranked 43rd while Melharfi is ranked 108th. The most important reason people chose pyglet is:
Since pyglet is so tightly woven with OpenGL it allows the support of drawing in 3D.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro 3D support
Since pyglet is so tightly woven with OpenGL it allows the support of drawing in 3D.
Pro Cross-platform
Works with Windows, Linux, and OS X.
Pro Written in pure Python
A small advantage, but being a core Python developer, it may be the best to stick to the roots and develop with pyglet as it is able to compile using other Python interpreters.
Pro Mouse events built-in
All objects/graphics have a mouse events like MouseClic MouseDoubleClic MouseDown MouseUp MouseOver MouseMove MouseOut
Pro Network support
Lidgren Network Library
Pro Path finder built-in
Uses the A* algorithm or pathfinding
Pro GUI
It use a GDI to draw on windows forms. You can use all windows self GUI (controls) for your game like TextBox, Button Label ..., you don't need to install a third party or use an ugly controls.
Cons
Con Small community/popularity
There is a decent amount of documentation and API to go along with pyglet, but in terms of community support there seems to be very little.