Package: tempsdb
tempsdbEmbedded Cython library for time series that you need to upload somewhere.Stored time series with a 8-byte timestamp and a data, which can be of
fixed length or variable.Installationgitclonehttps://github.com/smok-serwis/tempsdbcdtempsdb
pipinstallsnakehousetempsdb
pythonsetup.pyinstallYou need bothsnakehouseandtempsdbto compile it from the source,
though binary wheels for:Linux [manylinux2014]:x86_64:Python 3.8Python 3.9armv7l:Python 3.8are available. If you need an extra wheel, compile it yourself
or just drop me anissue.If you're installing it somewhere that you don't need both snakehouse
and tempsdb installed, compile your own binary wheel withpython setup.py bdist_wheelThen copy your resulting wheel and install it via pip on the target system.Be aware that tempsdb does logging.
Consult the docs for how to disable it.Changelogv0.6.4fixed a bug with slicing chunks inVarlenSeriesadded extra comparison operators forVarlenEntryaddedsynctoVarlenSeriesfixed a bug with not propagating metadata write exceptionsfixed a bug withDatabasetreatingvarlenand metadata as real time seriesv0.6.3added logging for opening and closing seriesv0.6.2added the context manager syntax to VarlenIteratorfixed a memory leak that happened during getting current value
from an empty seriesaddedMemoryPressureManagersupport forDatabasev0.6.1fixed an issue withIteratorsv0.6bugfix: fixed some bugs with reading values after closeadded support for storing metadata as minijsonthis will be enabled by default is minijson is importablefixed minor compiler warningsTimeSeries.iterate_rangewill accept a parameter calleddirect_bytesfor compatibility withVarlenSeries.
It's value is ignoredmore class constructors use explicit typing - faster tempsdbTimeSeries.get_current_valuewill correctly raiseValueErrorinstead of returning Nonev0.5.4older TempsDB databases that do not support varlens will be updated upon openingadded metadata support for databasesa flush will be done before re-enabling mmapbugfix to read archive datav0.5.3addeddisable_mmap,enable_mmapandopen_chunks_mmap_sizeintoVarlenSeriesv0.5.2added multiple properties and attributes toVarlenSeriesv0.5.1addedVarlenSeries.close_chunksDatabase.syncwill now return 0indexed-gzip proved to be a poor choice, droppedsetup.pyfixedv0.5if mmap is used, the kernel will be informed after loading the chunk that we
don't need it's memory right nowdeleting aTimeSerieswill now correctly return a zerobothDatabase,TimeSeriesandChunkdestructor will close and
emit a warning if the user forgot toif page_size is default, it won't be written as part of the metadataadded support for per-series metadatafollowing additions toDatabase:delete_seriesdelete_varlen_seriesfollowing additions toTimeSeries:addedappend_paddedadded metadata support,metadataproperty andset_metadatacalladded variable length seriesadded experimental support for gzipping time seriesfixed a bug where getting a series that was already closed would TypeErrorfollowing additions toChunk:get_slice_of_piece_atget_slice_of_piece_starting_atget_byte_of_pieceget_timestamp_atfixed the behaviour ofAlternativeMMapswhen passed a single index togetitemandsetitemaddedStillOpenexception, chunk won't allow to close itself if it has any
remaining referencesv0.4.4more error conditions during mmap will be supported as wellENOMEM will be correctly handled during resize operationaddedTimeSeries.descriptor_based_accessaddedChunk.switch_to_mmap_based_accessv0.4.3improving handling mmap failures on too low memoryslightly reducedmetadata.txtby defaultingpage_sizemovedChunkadded support for gzippingaddedDirectChunkiterating and writing at the same time from multiple threads
made safeaddedTimeSeries.disable_mmapIterator's destructor will emit a warning if you forget to close it explicitly.added option for transparent gzip compression
Please note that gzip disables mmap!experimental gzip support for constant-length time seriesv0.4.2empty series will return an Iteratorbugfix releasefixedDatabase.create_seriesDatabaseconstructor will throw if no database is therechangedIterator.nexttoIterator.next_item,
synce Cython guys said to not implement the methodnexton iterators.v0.4.1bugfix releasefixedget_open_seriesv0.4can install from sdist nowv0.3addedTimeSeries.get_current_valueaddedDatabase.syncv0.2addedget_open_seriesaddedget_all_seriesaddedget_first_entry_foraddedclose_all_open_seriesaddedTimeSeries.nameadded option to use descriptor based access instead of mmapaddedTimeSeries.open_chunks_ram_sizev0.1First release