abhiTronix / deffcode

A cross-platform High-performance FFmpeg based Real-time Video Frames Decoder in Pure Python 🎞️⚡
https://abhitronix.github.io/deffcode
Apache License 2.0
182 stars 4 forks source link

[BUG] API: AttributeError bug on `__version__` query #10

Closed abhiTronix closed 2 years ago

abhiTronix commented 2 years ago

Brief Description

Currently __version__ is not defined in DeFFcode's __init__.py that throws AttributeError: module 'deffcode' has no attribute '__version__' on its query.

Acknowledgment

Current Environment

Expected Behavior

Throws AttributeError: module 'deffcode' has no attribute '__version__'

Actual Behavior

Must return 0.2.0

Possible Fix

Added __version_ import in __init__.py.

Steps to reproduce

Run python3 -c 'import deffcode; print(deffcode.__version__)' in terminal.