Skip to content

Commit 75b6dcf

Browse files
committed
Changed name of package from cribl to cribl_python_api_wrapper
- Provides a more descriptive name - Avoids clashing with other Cribl package names - Minimal impact to end user - name of import should be only item that needs to be changed
1 parent ec33410 commit 75b6dcf

File tree

81 files changed

+179
-147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+179
-147
lines changed

README.md

Lines changed: 42 additions & 44 deletions
File renamed without changes.

src/cribl/auth/auth_operations.py renamed to cribl_python_api_wrapper/auth/auth_operations.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
from cribl.lib.http_operations import *
1+
from cribl_python_api_wrapper.lib.http_operations import *
22

33

44
def api_get_auth_data(base_url, username, password):
5+
"""
6+
Call API to get authorization data and token
7+
:param base_url:
8+
:param username:
9+
:param password:
10+
:return authorization JSON object:
11+
"""
512
headers = {"Content-type": "application/json"}
613
payload = {"username": username,
714
"password": password}

src/cribl/collectors/collector_operations.py renamed to cribl_python_api_wrapper/collectors/collector_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from cribl.lib.http_operations import *
1+
from cribl_python_api_wrapper.lib.http_operations import *
22

33

44
def get_collectors(base_url, cribl_auth_token, worker_group=None):

src/cribl/event_breaker_rules/event_breaker_rules_operations.py renamed to cribl_python_api_wrapper/event_breaker_rules/event_breaker_rules_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from cribl.lib.http_operations import *
1+
from cribl_python_api_wrapper.lib.http_operations import *
22

33

44
def get_event_breaker_rules(base_url, cribl_auth_token, worker_group=None):

src/cribl/executors/executor_operations.py renamed to cribl_python_api_wrapper/executors/executor_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from cribl.lib.http_operations import *
1+
from cribl_python_api_wrapper.lib.http_operations import *
22

33

44
def get_executors(base_url, cribl_auth_token, worker_group=None):

0 commit comments

Comments
 (0)