Git Product home page Git Product logo

butterdb's People

Contributors

dequis avatar julierae avatar widdershin 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

butterdb's Issues

What should usage look like?

I'm planning on rewriting butterdb, and I'd like to start a conversation around usage. I'd love any examples or thoughts around how you'd like to use the library.

Off the top of my head, this is what I had envisaged:

database = butterdb.GoogleSpreadsheets(oauth_key)

@butterdb.register(butterdb.model)
class FooModel(object):
    def __init__(self, bar, baz):
        self.bar = butterdb.StringField(bar)
        self.baz = butterdb.IntField(baz)

FooModel.all()
FooModel.where(bar: 'test')
FooModel.find(baz: 1)

instance = FooModel('blah', 5)
instance.save()

instance.foo = 'snaz'
instance.save()

Is there anything in there you'd change? Are there other object mappers with crazy cool features I should steal?

Update readme.md

Should contain technology, testing and a more detailed explanation

twisted support is possible?

may your api have twisted protocol support since this affect IO calls a non blocking solution would be highly appreciated.

Error while running the example code - unsupported operand type

Hi there,

Thanks for creating this library. Here is a question, i'm trying to run the example code. Reading from the spreadsheet works like a charm. However, trying to commit one cell change is throwing this error.

Error comes from the line: marianne.commit()

Any idea?

Here is the stacktrace:

Traceback (most recent call last):
File "butterdb_hello.py", line 32, in
marianne.commit()
File "/Library/Python/2.7/site-packages/butterdb-0.1.4-py2.7.egg/butterdb/fuckit.py", line 127, in commit
cell = self.database.get_cell(self.data, field.row, field.column)
File "/Library/Python/2.7/site-packages/butterdb-0.1.4-py2.7.egg/butterdb/fuckit.py", line 48, in get_cell
return data.cell(row + 1, column + 1)
TypeError: unsupported operand type(s) for +: 'builtin_function_or_method' and 'int'

Problem with gspread append command

Hi,

i'm new to this but I have an issue I hope someone can address, sorry if this is a dumb question:
I use the Python gspread library on a Raspberry Pi to log temperature from a sensor and write to a Google Doc spreadsheet.
I can open the spreadsheet from my code fine.

However testing the instruction below:
worksheet.append_row("hello")
will not write "hello" in the first cell of the new row, but instead will write "h" in first cell, "e" in the cell next to it etc... (each letter in a new cell on the same row)

What am I doing wrong?
Thanks

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.