Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/finbourne/lusid-client-python


https://github.com/finbourne/lusid-client-python

Last synced: 22 days ago
JSON representation

Awesome Lists containing this project

README

        

![LUSID_by_Finbourne](./resources/Finbourne_Logo_Teal.svg)

This repository contains examples showing how to make calls to LUSID using the LUSID SDK via a python script or running as tests. These can be found in the `src` folder.

# API set up

First set up your [API credentials](https://support.finbourne.com/getting-started-with-apis-sdks) (if using a `secrets.json` file place this in the `src` folder) and install the required dependencies via `pip`:

```
$ pip install -r requirements.txt
```

# Script

Run the script using the following command from the `src` folder:

```
$ python scripts/lusid_api.py
```

# Tests

Run the tests with the following command from the `src` folder:

Windows:

```
$ set PYTHONPATH=%PYTHONPATH%;%cd%;%cd%\tests
$ pytest tests\test_connectivity.py -v -rP
```

macOS/linux:

```
$ PYTHONPATH=$(pwd):$(pwd)/tests pytest tests/test_connectivity.py -v -rP
```