Coverage for licenzy\__init__.py: 100%

1"""

2🔑 Licenzy - Simple, Pythonic license management for AI tools

3

4 Licenzy provides a clean, minimal API for adding license validation to your Python projects.

5 Perfect for indie developers and small teams building AI tools.

6

7 Key Features:

8- @licensed decorator for gated access

9- Simple check_license() API

10- File-based and environment variable license storage

11- HMAC-based validation

12- CLI for license management

13- Zero dependencies (except Click for CLI)

14

15 Example:

16 ```python

17 from licenzy import licensed, check_license

18

19 @licensed

20 def premium_feature():

21 return "This requires a valid license!"

22

23 # Or check manually

24 if check_license():

25 print("Access granted!")

26 ```

27"""

28

29 from .core import (

30 LicenseManager,

31 check_license,

32 licensed,

33 access_granted,

34 require_key,

35 unlock,

36 LicenseError,

37 get_license_manager,

38)

39

40 from .management import (

41 activate_license,

42 deactivate_license,

43 show_license_status,

44)

45

46 __version__ = "1.0.0"

47 __all__ = [

48 # Core functions

49 "check_license",

50 "licensed",

51 "access_granted",

52 "require_key",

53 "unlock",

54

55 # Classes

56 "LicenseManager",

57 "LicenseError",

58

59 # Management

60 "activate_license",

61 "deactivate_license",

62 "show_license_status",

63 "get_license_manager",

64]