Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

jsog/jsog-python

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Object Graphs with Python

This Python module serializes and deserializes cyclic object graphs in the JSOG format.

Source code

The official repository is (https://github.com/jsog/jsog-python).

Download

Jsog is available in PyPI:

$ pip install jsog

Usage

This code mimics the standard json python package:

import jsog

string = jsog.dumps(cyclicGraph);
cyclicGraph = jsog.loads(string);

It can be used to convert between object graphs directly:

import jsog

jsogStructure = jsog.encode(cyclicGraph);	// has { '@ref': 'ID' } links instead of cycles
cyclicGraph = jsog.decode(jsogStructure);

Author

License

This software is provided under the MIT license

About

JSOG encoding for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.