Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install jsam

How to install jsam

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install jsam
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.6.3 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.6 Available View build log
0.5 Available View build log
0.2.2 Available View build log
Windows (64-bit)
0.6.3 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.6 Available View build log
0.5 Available View build log
0.2.2 Available View build log
Mac OS X (10.5+)
0.6.3 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.6 Available View build log
0.5 Available View build log
0.2.2 Available View build log
Linux (32-bit)
0.6.3 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.6 Available View build log
0.5 Available View build log
0.2.2 Available View build log
Linux (64-bit)
0.6.3 Available View build log
0.6.2 Available View build log
0.6.1 Available View build log
0.6 Available View build log
0.5 Available View build log
0.2.2 Available View build log
 
Author
License
GPL
Imports
Lastest release
version 0.6.3 on Oct 2nd, 2011

JSAM's basic operations are get, put and remove, with basic support for transactions via begin, commit and rollback. All stored objects are identified by an integer key.

A JSAM database is opened by supplying a URL to jsam.jsurl.parse() and calling the open() method on the returned object. The syntax of URL depends on the particular "access method".

The following URL types currently exist:

* file:   directory plain text JSON files
* rcs:    directory plain text JSON files under RCS
* cvs:    directory plain text JSON files under CVS (not tested)
* svn:    directory plain text JSON files under SVN (not tested)
* sqlite: object trees stored in an SQLite3 database
* mysql:  object trees stored in a MySQL database (lightly tested)
* pgsql:  object trees stored in a PostgreSQL database (lightly tested)

Query methods include:

* Collections: a jQuery/Django-like method-chained interface
* XPath query language subset (only supported for SQL backends)
* P4J (E4X-like) query language (only supported for SQL backends)

System Message: ERROR/3 (<string>, line 24)

Inconsistent literal block quoting.

which allows construction of "xpath" queries in Python using method chaining and operator overload, bridging the lexical divide between code and query.

pydoc jsam.<URLTYPE>_jsam gives information on the URL syntax for <URLTYPE>

pydoc jsam.jsam.JSAM gives information on jsam object methods

pydoc jsam.xpath gives information on XPath query syntax (SQL backends only)

pydoc jsam.p4j gives information on P4J Python native query syntax

NOTE:

* uses Python 2.6+ supplied "json"; requires "simplejson" on Python 2.5
* file-based storage depends on POSIX file semantics
* requires "MySQLdb" for MySQL
* requires "psycopg2" for PostgreSQL

The name "JSAM" is a joke on IBM Mainframe O/S data "Access Methods" (BDAM, BSAM, VSAM, ISAM, QSAM, BPAM).

The obvious name 'jsonstore' was already taken by another package in the Python Package Index (PyPI).

The URL/URI syntax was cribbed from Django, which copied SQLAlchemy.

Subscribe to package updates

Last updated Oct 2nd, 2011

Download Stats

Last month:7

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.