pastas / pastastore

:spaghetti: :convenience_store: Tools for managing timeseries and Pastas models
https://pastastore.readthedocs.io
MIT License
15 stars 4 forks source link

Add ArcticDBConnector #92

Closed dbrakenhoff closed 1 year ago

dbrakenhoff commented 1 year ago

Next-gen ArcticDB has been released. This adds a Connector based on that package. Performance should be faster than the original Arctic.

Install with pip install arcticdb. No other dependencies required!

import pastastore as pst

# define connector with a local path, prepended with "lmdb://"
# this will create a folder "my_local_database_directory" in the current directory
# that folder will contain folders containing "my_database.oseries", "my_database.stresses", etc. 
conn = pst.ArcticDBConnector("my_database", uri="lmdb://./my_local_database_directory/")

# create pastastore
pstore = pst.PastaStore(conn)