镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

About

JSOG encoding for Python

Resources

Stars

10 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

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

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages