Python SDK for OpenDataDSL
Project description
ODSL Python SDK
The python SDK for the OpenDataDSL data management platform
Usage
Logging in and getting started
from odsl import sdk
odsl = sdk.ODSL()
odsl.login()
Finding master data
objects = odsl.list('object', source='public', filter='source=ECB')
print(objects[0])
Getting master data
obj = odsl.get('object', 'public', '#ECB')
print(obj['description'])
Getting a timeseries
ts = odsl.get('data', 'public', '#ABN_FX.EURUSD:SPOT')
print(ts)
Updating some private master data
var = {
'_id': 'AAA.PYTHON',
'name': 'Python Example'
}
odsl.update('object', 'private', var)
Reading and updating some private master data
po = odsl.get('object', 'private', 'AAA.PYTHON')
po['description'] = 'Updated from Python'
odsl.update('object', 'private', po)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
odsl-1.0.1.tar.gz
(7.4 kB
view hashes)
Built Distribution
odsl-1.0.1-py3-none-any.whl
(10.7 kB
view hashes)