Skip to main content
****
NoSQL Versioning
****

A Python library for NoSQL record versioning.

Installation
============

To install the latest release on `PyPi <https://pypi.python.org/pypi/nosql_versioning/0.1>`_,
simply run:

::

pip install nosql_versioning

Or to install the latest development version, run:

::

git clone https://github.com/xinhuang/nosql_versioning.git
cd nosql_versioning
python setup.py install

Quick Tutorial
==============

.. code:: pycon

>>> from nosql_versioning import database
>>>
>>> version, Record = database()
>>>
>>> @version()
>>> class Recordv0(object):
>>> def __init__(self, jobj):
>>> self.old_name = jobj['old_name']
>>>
>>> @version(1)
>>> class Recordv1(object):
>>> def __init__(self, jobj):
>>> self.new_name = jobj['new_name']
>>>
>>> @staticmethod
>>> def migrate(jobj):
>>> jobj['new_name'] = jobj['old_name']
>>> del jobj['old_name']
>>>
>>> rec = Record('{"__ver": 0, "old_name": 1}')


Licensing
=========

This project is released under the terms of the MIT Open Source License. View
*LICENSE.txt* for more information.

Metadata

Release files for nosql-versioning 0.1.2

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

Built distribution (wheel)

Table of built distributions (wheels) for nosql-versioning 0.1.2
File Interpreter ABI Platform
nosql_versioning-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / nosql_versioning-0.1.2-py3-none-any.whl

Download URL nosql_versioning-0.1.2-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
003a61627750edbb859e0e665f645abd3012a4dac69b4d2d10984db7df5def25
BLAKE2b-256 checksum
How to use checksums
6c37bd0e0fda28133e9e46c1b4e2d00cdcf1f7e958fc546e4096ab83c0bc90ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nosql-versioning 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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