Giter VIP home page Giter VIP logo

butterdb's Introduction

butterdb

Master: Build Status Master
Develop: Build Status Develop

Documentation | butterdb on PyPi

butterdb is a library to help you work with Google Spreadsheet data. It lets you model your data as Python objects, to be easily manipulated or created.

How do I use it? -----.. image:: http://i.imgur.com/h75z1k6.png

import butterdb

database = butterdb.Database("MyDatabaseSheet", "[email protected]", "password")

@butterdb.register(database)
class User(butterdb.Model):
    def __init__(self, name, password):
        self.name = self.field(name)
        self.password = self.field(password)

users = User.get_instances

marianne = users[1]

print(marianne.password) # rainbow_trout

marianne.password = "hunter2"
marianne.commit()

How do I make instances? =================

bob = User("bob", "BestPassword!")
bob.commit()

Where do I get it? ------------

pip install butterdb

Simple as that?

Yep! butterdb is a simple interface around gspread. Just .commit() your objects when you want to update the spreadsheet!

How do I run the tests? -----nosetests

What works? ----------* Store data in Google Spreadsheets (the cloud!!!) * Models from classes * Fields as attributes. decimals, ints and strings only (as far as I know) * Commits * Mocked unit tests, mock database * Arbitrary cell execution with =blah() (free stored procedures?) * Auto backup/bad patch control

What's missing?

  • Spreadsheets must exist before connecting
  • References
  • Collections
  • Customizable fields
  • Customizable table size (arbitrarily hardcoded)

Feedback

Comments, concerns, issues and pull requests welcomed. Reddit /u/Widdershiny or email me at [email protected].

License

MIT License. See LICENSE file for full text.

butterdb's People

Contributors

widdershin avatar

Watchers

James Cloos avatar Brandon Opfermann avatar

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.