GithubHelp home page GithubHelp logo

discretelogics / teafiles.py-time-series-storage-in-files Goto Github PK

View Code? Open in Web Editor NEW
58.0 58.0 16.0 113 KB

Python API for the TeaFile File Format. TeaFiles is Time Series Persistence in Flat Files.

Home Page: http://www.discretelogics.com/teafiles

License: MIT License

Python 100.00%

teafiles.py-time-series-storage-in-files's People

Contributors

thulka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

teafiles.py-time-series-storage-in-files's Issues

time based indexing

Is it possible to access items using time instead of index via seekitem ?

performance

You mention the performance is a bit slow compared to c++ version. I wonder why you implemented this interface with pure python, rather than implementing it as an interface to c++ library?

Hard-coded openread causing errors

I am using Debian 8 Jessie (stable) and Python 3.4 installed from the stable repos.

Here is what the installation looked like:

tom@tomspc ~ $ sudo pip3 install teafiles
[sudo] password for tom: 
Downloading/unpacking teafiles
  Downloading teafiles-0.71%20dev.zip (44kB): 44kB downloaded
  Running setup.py (path:/tmp/pip-build-x9ggs07g/teafiles/setup.py) egg_info for package teafiles

Installing collected packages: teafiles
  Running setup.py install for teafiles
      File "/usr/local/lib/python3.4/dist-packages/teafiles/teafile.py", line 1310
        TeaFile.openread('C:\Users\hase\AppData\Local\DiscreteLogics\TeaShell\Dow\AA.day.tea')
                            ^
    SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape


Successfully installed teafiles
Cleaning up...

When running this simple test program right out of the docs:

from teafiles import *

tf = TeaFile.create("acme.tea", "Time Price Volume", "qdq", "Acme at NYSE", {"decimals": 2, "url": "acme.com"})
tf.write(DateTime(2011, 3, 4, 9, 0), 45.11, 4500)
tf.write(DateTime(2011, 3, 4, 10, 0), 46.33, 1100)
tf.close()

I get this result:

/usr/bin/python3.4 /home/tom/Desktop/teafiles/test.py
Traceback (most recent call last):
  File "/home/tom/Desktop/teafiles/test.py", line 31, in <module>
    from teafiles import TeaFile
  File "/usr/local/lib/python3.4/dist-packages/teafiles/__init__.py", line 16, in <module>
    from teafiles.teafile import *
  File "/usr/local/lib/python3.4/dist-packages/teafiles/teafile.py", line 1310
    TeaFile.openread('C:\Users\hase\AppData\Local\DiscreteLogics\TeaShell\Dow\AA.day.tea')
                        ^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

A Windows user named hase seems to have hard-coded some data opening operation on line 1310 of teafile.py.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.