PuREST JSON is a library for connecting Puredata (Pd) to HTTP services and encoding and decoding JSON data.
C HTML Pure Data Shell Python Makefile Ruby
Permalink
Failed to load latest commit information.
examples Correct and clarify examples and manual. Dec 30, 2015
manual Correct and clarify examples and manual. Dec 30, 2015
pd-lib-builder @ 98f3582 Updated submodules. Jan 11, 2016
src Update uthash to latest release. Jul 14, 2016
unittests Add memory usage test for JSON objects. Jun 26, 2016
.gitignore Copy only stated examples. Jan 10, 2016
.gitmodules Added pd-lib-builder as submodule and build on Linux. Dec 1, 2015
Changelog.txt Release version 1.4.1 Jun 24, 2016
LICENSE.txt Cleaning up copyright files. Feb 27, 2015
Makefile Add change as suggested in pure-data/pd-lib-builder#15 Mar 29, 2016
README.md Update README. Jun 24, 2016
coverity Coverity May 17, 2015
create-manual.py
embed-MacOSX-dependencies.sh Simplified and formatted Mac OSX embedding. Jan 27, 2015
embed-osx-dep-homebrew.sh add embed-osx-dep-homebrew.sh Mar 24, 2016
json-help.pd Added new method: [proxy( Dec 29, 2015
liboauth.rb add liboauth.rb Mar 24, 2016
old-json-c-version.patch Patch for old json-c version reflects current version. Mar 25, 2015
purest_json-meta.pd Release version 1.4.1 Jun 24, 2016
rest-help.pd Google search API has been deprecated. May 9, 2016
test.json Loading JSON data from file (issue #12); Jan 15, 2013
urlparams-help.pd Updated help patches. Feb 11, 2015

README.md

  _____        _____  ______  _____ _______        _  _____  ____  _   _
 |  __ \      |  __ \|  ____|/ ____|__   __|      | |/ ____|/ __ \| \ | |
 | |__) |_   _| |__) | |__  | (___    | |         | | (___ | |  | |  \| |
 |  ___/| | | |  _  /|  __|  \___ \   | |     _   | |\___ \| |  | | . ` |
 | |    | |_| | | \ \| |____ ____) |  | |    | |__| |____) | |__| | |\  |
 |_|     \__,_|_|  \_\______|_____/   |_|     \____/|_____/ \____/|_| \_|

PuREST JSON is a library for connecting Puredata (Pd) to HTTP services and encoding and decoding JSON data.

The library can issue GET, POST, PUT and DELETE statements, so consumation of RESTful services is possible, e.g. CouchDB.

The library used to be called CouchPdb, but handles all HTTP requests, so the name was not fitting any more.

About Puredata (From the official website)

Pd (aka Pure Data) is a real-time graphical programming environment for audio, video, and graphical processing. It is the third major branch of the family of patcher programming languages known as Max (Max/FTS, ISPW Max, Max/MSP, jMax, etc.) originally developed by Miller Puckette and company at IRCAM. The core of Pd is written and maintained by Miller Puckette and includes the work of many developers, making the whole package very much a community effort.

Externals in the library

[rest]

Object for issuing HTTP request.

[oauth]

Object for issuing HTTP requests with OAUTH.

[json-encode]

Object for encoding data to JSON.

[json-decode]

Object for decoding JSON data.

[urlparams]

Object for url encoding and contatenating url parameters.

For the usage of the externals see the help patches for the objects.

Installation from package repositories

Downloads are available via deken which is included in Pd since version 0.47. Packages for Debian and Ubuntu are available as pd-purest-json.

Binary downloads

Binary packages can be found at http://ix.residuum.org/pd/purest_json.html

Currently only Windows and Linux packages are available.

How to build PuREST JSON

The library uses the template for Pd-extended. Drop the library in a new folder purest_json in the "external" path of the Pd-extended source code and run make in the folder. libcurl and json-c is needed.

Details can be found at https://github.com/residuum/PuRestJson/wiki/Compilation

If you encouter bugs or feel like a feature is missing, have a look the bug tracker at https://github.com/residuum/PuRestJson/issues