| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Hi, please take a look at this: https://github.com/splunk/splunk-sdk-python/blob/develop/CONTRIBUTING.md |
Sorry, something went wrong.
|
Thanks for the pointer — here's where this PR stands against CONTRIBUTING.md:
Let me know if anything else is needed to move this forward. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description of PR
Adds a LookupTableFile entity and LookupTableFiles collection to splunklib.client, wrapping the data/lookup-table-files/ REST endpoint.
The SDK currently has no entity class for lookup table files — users must use raw REST calls to list or inspect them. This PR follows the same Entity/Collection pattern used throughout client.py.
Changes:
Usage:
Note: The REST endpoint data/lookup-table-files supports listing and metadata retrieval. File upload requires eai:data to be a server-side path, which is a known REST API limitation — this PR covers the read/list surface only.
Testing the changes
Unit tests added in tests/unit/test_lookup_table_file.py (3 tests):
Tested with Python 3.13, Splunk Enterprise 10.4.0. Passes ruff check, ruff format, and basedpyright.
Documentation
Docstrings follow existing SDK conventions. The Service.lookup_table_files property is documented consistently with other service properties.
Dependencies and other resources
No external dependencies. Follows the same Entity/Collection pattern as Index, Application, and others in client.py.