Needle Python Library
This Python library provides convenient acccess to Needle API. There are various methods and data types which, we believe will help you explore Needle API quickly. There may be some functionality available in REST API earlier than this Python library. In any case, we recommend to take look the the complete documentation. Thank you for flying with us. 🚀
Installation
This library requires Python >3.8 and pip to use. You don't need the sources unless you want to modify it. Install with:
pip install needle-python
Usage ⚡️
To get started, generate an API key for your account in developer settings menu at Needle. Note that your key will be valid until you revoke it. Set the following env variable before you run your code:
export NEEDLE_API_KEY=
NeedleClient reads the API key from the environment by default. If you like to override this behaviour you can pass it in as a parameter.
Retrieve context from Needle
from needle.v1 import NeedleClient
from need
|