Skip to main content

A networked standard template library for Python.

Project description

Documentation:

http://packages.python.org/python-stdnet/

Dowloads:

http://pypi.python.org/pypi/python-stdnet/

Source:

http://code.google.com/p/python-stdnet/

Keywords:

server, database, cache, redis, orm

A networked standard template library for python.

The data is owned by different, configurable back-end databases and it is accessed using a light-weight Object Relational Mapping (ORM) inspired by Django. The source code is hosted at google code while Documentation and Downloads are available via PyPi.

Backends

Backend databases provide the backbone of the library, while the Object Relational Mapping is the syntactic sugar. Currently the list of back-ends is limited to

Only Redis is fully operational.

Object-relational mapping

The module stdnet.orm is a lightweight ORM. For example:

from stdnet import orm

class Author(orm.StdModel):
    name = orm.AtomField()

class Book(orm.StdModel):
    author = orm.ForeignKey(Author)
    title  = orm.AtomField()

Register models with backend:

orm.register(Author,'redis://localhost/?db=1')
orm.register(Book,'redis://localhost/?db=2')

Installing

To install, download, uncompress and type:

python setup.py install

otherwise use easy_install:

easy_install python-stdnet

or pip:

pip install python-stdnet

Running Tests

At the moment, only redis back-end is available, so to run tests you need to install redis. Once done that, launch redis and type:

>>> import stdnet
>>> stdnet.runtests()

otherwise from the package directory:

python runtests.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

python-stdnet-0.3.3.zip (79.5 kB view details)

Uploaded Source

python-stdnet-0.3.3.tar.gz (55.0 kB view details)

Uploaded Source

File details

Details for the file python-stdnet-0.3.3.zip.

File metadata

  • Download URL: python-stdnet-0.3.3.zip
  • Upload date:
  • Size: 79.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-stdnet-0.3.3.zip
Algorithm Hash digest
SHA256 9128ed3f3a53f861d5539f92766a6e89cd6e08a4744df9942d1f7f662d9d9a34
MD5 3ebb3d4939861a943fac24676c684863
BLAKE2b-256 b3d16d3adbe7fe6c5d1657f1b3f64c18c5582bbc33836b56b7e4e7b0d09bcd24

See more details on using hashes here.

File details

Details for the file python-stdnet-0.3.3.tar.gz.

File metadata

  • Download URL: python-stdnet-0.3.3.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-stdnet-0.3.3.tar.gz
Algorithm Hash digest
SHA256 f5c3d8ab38ed478de60b3f47131e4ad16a4a338bc7c4ebb62beeb160bad1ba7c
MD5 968e410006f872c9fb26f023344dd824
BLAKE2b-256 878cd8fb497bda257fdbc2268045abbeb5cd7fde339edd2de9e0fdb9a4d050ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page