Skip to main content
Welcome To DStore
#################

.. image:: https://img.shields.io/coveralls/MarkLark/dstore.svg
:target: https://coveralls.io/github/MarkLark/dstore?branch=master

.. image:: https://img.shields.io/travis/MarkLark/dstore/master.svg
:target: https://travis-ci.org/MarkLark/dstore

.. image:: https://img.shields.io/pypi/v/dstore.svg
:target: https://pypi.python.org/pypi/dstore

.. image:: https://img.shields.io/pypi/pyversions/dstore.svg
:target: https://pypi.python.org/pypi/dstore

DStore (DataStore) is a Python Object Relational Mapper (ORM) that allows easy description of data models.

Installing
==========

>From PyPi
---------
DStore is available from the PyPi repository at `DStore <https://pypi.python.org/pypi/DStore>`_.

This means that all you have to do to install DStore is run the following in a console:

.. code-block:: console

$ pip install dstore

>From Source
-----------
DStore can also be installed from source by downloading from GitHub and running setup.py.

.. code-block:: console

$ wget https://github.com/MarkLark/dstore/archive/master.tar.gz
$ tar xvf master.tar.gz
$ cd dstore-master
$ python setup.py install


Requirements
============
DStore does not rely on any other Python Packages.

It has also been thoroughly tested to work on the following Python Versions:

* 2.7
* 3.3
* 3.4
* 3.5
* 3.6

Minimal Example
===============

.. code-block:: python

from dstore import MemoryStore, Model, var, mod

class Car( Model ):
_namespace = "cars.make"
_vars = [
var.RowID,
var.String( "manufacturer", 32, mods = [ mod.NotNull() ] ),
var.String( "make", 32, mods = [ mod.NotNull() ] ),
var.Number( "year", mods = [ mod.NotNull(), mod.Min( 1950 ), mod.Max( 2017 ) ] ),
]

# Create the MemoryStore instance, and add Models to it
store = MemoryStore( [ Car ] )
store.init_app()
store.connect()
store.create_all()

# Create a new Car, then retrieve it using filter and all
Car( manufacturer = "Holden", make = "Commodore", year = 2010 ).add()
holdens = Car.filter( manufacturer = "Holden" )
cars = Car.all()

# Destroy all instances and shut down the application
store.destroy_all()
store.disconnect()
store.destroy_app()


External Links
==============

Documentation: `ReadTheDocs <http://python-dstore.readthedocs.io/>`_

Test Results: `Travis CI <https://travis-ci.org/MarkLark/dstore>`_

Test Coverage: `Coveralls <https://coveralls.io/github/MarkLark/dstore>`_

Release files for DStore 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DStore 0.1.2
File Size Uploaded
DStore-0.1.2.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DStore 0.1.2
File Interpreter ABI Platform
DStore-0.1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 23.2 kB

Release files / DStore-0.1.2.tar.gz

Download URL DStore-0.1.2.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9ca66a7c9f0df7510e337485a068cb084332f76affe7cfab05133f3a453cfd40
BLAKE2b-256 checksum
How to use checksums
26b3d75237ab22213f4cb980f09f61a0d6fe0cbb787e6415b6f18e79a012875f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / DStore-0.1.2-py2.py3-none-any.whl

Download URL DStore-0.1.2-py2.py3-none-any.whl
Size 12.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
119a3293fb8ba8f34e713872b4d86a2ea2bda48355f614fe2cfc55177151cf66
BLAKE2b-256 checksum
How to use checksums
0e99aa6a97a0ba2a96c5784330d45691aae4475169059b7a48074705fe452adf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page