This script is written to be run by python3.12 without any external libraries.
Example code is tested with Python 3.12.7.
Prerequisites: Python3.12 must be installed.
# Optional: Export your API key
export OPENFIGI_API_KEY=<YOUR_KEY_HERE>
python3 example.pyPrerequisites: Docker must be installed.
docker build --tag 'openfigi-python' .
docker run --rm -it --entrypoint ./example.py --volume ./:/OpenFIGI 'openfigi-python'
# OR: If you have acquired an API Key
docker run --rm -it --entrypoint ./example.py --volume ./:/OpenFIGI 'openfigi-python' -e OPENFIGI_API_KEY=<YOUR_KEY_HERE>