Coverage for /Users/buh/.pyenv/versions/3.12.9/envs/es-testbed/lib/python3.12/site-packages/es_testbed/__init__.py: 95%

22 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-04-21 20:56 -0600

1"""ES Testbed: A Python library for generating Elasticsearch test scenarios.""" 

2 

3from datetime import datetime 

4from es_testbed._base import TestBed 

5from es_testbed._plan import PlanBuilder 

6from es_testbed.debug import debug 

7 

8__version__ = "0.11.2" 

9 

10FIRST_YEAR = 2025 

11now = datetime.now() 

12if now.year == FIRST_YEAR: 

13 COPYRIGHT_YEARS = "2025" 

14else: 

15 COPYRIGHT_YEARS = f"2025-{now.year}" 

16 

17__author__ = "Aaron Mildenstein" 

18__copyright__ = f"{COPYRIGHT_YEARS}, {__author__}" 

19__license__ = "Apache 2.0" 

20__status__ = "Development" 

21__description__ = ( 

22 "Library to help with building and tearing down indices, data streams, " 

23 "repositories and snapshots, and other test scenarios in Elasticsearch." 

24) 

25__url__ = "https://github.com/untergeek/es-testbed" 

26__email__ = "aaron@mildensteins.com" 

27__maintainer__ = "Aaron Mildenstein" 

28__maintainer_email__ = f"{__email__}" 

29__keywords__ = [ 

30 "elasticsearch", 

31 "index", 

32 "testing", 

33 "datastream", 

34 "repository", 

35 "snapshot", 

36] 

37__classifiers__ = [ 

38 "Development Status :: 4 - Beta", 

39 "Intended Audience :: Developers", 

40 "License :: OSI Approved :: Apache Software License", 

41 "Programming Language :: Python :: 3.8", 

42 "Programming Language :: Python :: 3.9", 

43 "Programming Language :: Python :: 3.10", 

44 "Programming Language :: Python :: 3.11", 

45 "Programming Language :: Python :: 3.12", 

46 "Programming Language :: Python :: 3.13", 

47 "Operating System :: OS Independent", 

48 "Programming Language :: Python :: Implementation :: CPython", 

49 "Programming Language :: Python :: Implementation :: PyPy", 

50] 

51 

52__all__ = [ 

53 "TestBed", 

54 "PlanBuilder", 

55 "debug", 

56 "__author__", 

57 "__copyright__", 

58 "__version__", 

59]