GhostPort
Getting Started
Technologies
PythonQuickstartReact

Python

Quickstart

Set up a GhostPort project

Follow the instructions from the Getting Started page.

Install the GhostPort PIP Module

Install the ghostport PIP module.

pip install ghostport

Initialize the Client

from ghostport import GhostPort
client = GhostPort('YOUR_TOKEN')

Get all keys and values

flags = client.get_flag_values()
print(flags) # Prints out a dictionary of flag keys to values

Get a flag's values

value = client.get_flag_value('doTheThing')
print(value) # Prints out the value of the flag