Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
improved documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ceelian committed Jul 15, 2011
1 parent 7d3da4a commit 13c5e78
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 10 deletions.
5 changes: 4 additions & 1 deletion THANKS
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Thanks to Ask Solem <askh@opera.com> for the carrot library
Thanks to the python-couchdb team for writing a python couchdb driver and
inspired the development of Flatty with their couchdb mapper which has a
different approach (http://code.google.com/p/couchdb-python/)

Thanks to Wingware <http://wingware.com> for supportung us with their IDE
6 changes: 3 additions & 3 deletions doc/source/couchdb.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
=====================================
flatty.couch
=====================================
**********************************
flatty.couch - the couchdb adapter
**********************************

This module helps you to build schemas for couchdb (it uses the couchdb-python
module for storing the flattened dicts as couchdb documents)
Expand Down
15 changes: 14 additions & 1 deletion doc/source/develop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,24 @@ Commit and Tag

in the shell::
#clean stuff
cd doc
make clean

python setup.py clean
# tag, commit and push to github
git commit -a
git push
git tag -a vX.X.X
git push --tags
git push --tags
# upload to pypi
python setup.py sdist upload
# make doc and upload
cd doc
make html
python setup.py upload_sphinx
6 changes: 3 additions & 3 deletions doc/source/flatty.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
======
flatty
======
=================
flatty - the core
=================



Expand Down
32 changes: 30 additions & 2 deletions doc/source/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,39 @@ the data (no meta-data is stored).
**Key Features:**

- easy to use
- couchdb adapter to use flatty schemas with couchdb
- only plain data is marshaled, no class meta-data
- extensible, add custom converters for your own needs and types
- can be easily extended to support unique features of a marshal framework
- light-weight (flatty has currently less than 200 lines of code)
- OpenSource BSD-licensed


**Full documentation can be found on** `PyPi Flatty Documentation`_

.. _`PyPi Flatty Documentation`: http://packages.python.org/flatty/index.html


Idea behind Flatty
------------------

The goal of Flatty is to provide a class-to-dict marshaller which stays in the
background on top of other low-level marshallers. They might only support python
dicts and some base types.

With Flatty you can build a complete class schema and
marshall/unmarshall (flatten/unflatten) high-level class objects to the low-level
marshaller which provides the persistence layer.
A good example where Flatty already provides an
adapter is couchdb. We tried to keep the schema definition as much as possible
"standard python" and gather the needed information through inspection to keep
things easy.

Flatty reduces everything to a simple dict, without storing metainformation in
the marshalled data. The marshalling process Flatty uses is simple:
It treats classes as dicts and their attributes as key-value pairs in the dict.
Lists are stored as lists. That's it.



Getting started with Flatty
Expand Down Expand Up @@ -104,8 +132,8 @@ Getting started with Flatty
The restored_obj is a new object filled with the data of flatted


Bug Tracker:
------------
Bug Tracker
-----------

If you find any issues please report them on https://github.com/ceelian/Flatty/issues

Expand Down

0 comments on commit 13c5e78

Please sign in to comment.