fuckitdb is a Python ORM for Google Drive Spreadsheets.
Project description
fuckitdb
========
| Master: |Build Status|
| Develop: |Build Status|
`Documentation`_
fuckitdb is a Python ORM for Google Drive Spreadsheets. Never use this for anything important, it's an experiment.
Installation
------------
``pip install fuckitdb``
Usage
-----
::
import fuckitdb
database = fuckitdb.Database("MyDatabaseSheet", "foo@google.com", "password")
@fuckitdb.register(database)
class User(fuckitdb.Model):
def __init__(self, name, password):
self.name = self.field(name)
self.password = self.field(password)
barry = User("Barry", "hunter2")
barry.name = "Steve"
barry.commit()
users = User.get_instances()
License
-------
MIT License. See LICENSE file for full text.
.. _Documentation: http://fuckitdb.readthedocs.org
.. |Build Status| image:: https://travis-ci.org/Widdershin/fuckitdb.png?branch=master
:target: https://travis-ci.org/Widdershin/fuckitdb
.. |Build Status| image:: https://travis-ci.org/Widdershin/fuckitdb.png?branch=develop
:target: https://travis-ci.org/Widdershin/fuckitdb
History
-------
0.1.0 7/3/14
++++++++++++++++++
* First release on PyPI.
0.1.1 7/3/14
++++++++++++++++++
* Converted readme to rst from md
0.1.2 7/3/14
++++++++++++++++++
* Included HISTORY.rst in package build
0.1.3 7/3/14
++++++++++++++++++
* Model.field no longer requires name to be specified. Attribute name will be used if none is provided.
* Model no longer needs to have id as a keyword argument, or call super in init
* Tests now use pep8 asserts
========
| Master: |Build Status|
| Develop: |Build Status|
`Documentation`_
fuckitdb is a Python ORM for Google Drive Spreadsheets. Never use this for anything important, it's an experiment.
Installation
------------
``pip install fuckitdb``
Usage
-----
::
import fuckitdb
database = fuckitdb.Database("MyDatabaseSheet", "foo@google.com", "password")
@fuckitdb.register(database)
class User(fuckitdb.Model):
def __init__(self, name, password):
self.name = self.field(name)
self.password = self.field(password)
barry = User("Barry", "hunter2")
barry.name = "Steve"
barry.commit()
users = User.get_instances()
License
-------
MIT License. See LICENSE file for full text.
.. _Documentation: http://fuckitdb.readthedocs.org
.. |Build Status| image:: https://travis-ci.org/Widdershin/fuckitdb.png?branch=master
:target: https://travis-ci.org/Widdershin/fuckitdb
.. |Build Status| image:: https://travis-ci.org/Widdershin/fuckitdb.png?branch=develop
:target: https://travis-ci.org/Widdershin/fuckitdb
History
-------
0.1.0 7/3/14
++++++++++++++++++
* First release on PyPI.
0.1.1 7/3/14
++++++++++++++++++
* Converted readme to rst from md
0.1.2 7/3/14
++++++++++++++++++
* Included HISTORY.rst in package build
0.1.3 7/3/14
++++++++++++++++++
* Model.field no longer requires name to be specified. Attribute name will be used if none is provided.
* Model no longer needs to have id as a keyword argument, or call super in init
* Tests now use pep8 asserts
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fuckitdb-0.1.3.tar.gz
(4.7 kB
view details)
File details
Details for the file fuckitdb-0.1.3.tar.gz
.
File metadata
- Download URL: fuckitdb-0.1.3.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7ec55c5301384bafeee4360f54c5ea489685d3785a2d018909a8a5a387c37d8 |
|
MD5 | cf4e2285e3d668cce72d64d83649223c |
|
BLAKE2b-256 | d5b913705b71ffa3ee92779f36053bebd0bd56d3f382404ef175752c675e6f70 |