Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

71 lines (45 sloc) 2.226 kb
_____ _____ ______ _____ _______ _ _____ ____ _ _
| __ \ | __ \| ____|/ ____|__ __| | |/ ____|/ __ \| \ | |
| |__) |_ _| |__) | |__ | (___ | | | | (___ | | | | \| |
| ___/| | | | _ /| __| \___ \ | | _ | |\___ \| | | | . ` |
| | | |_| | | \ \| |____ ____) | | | | |__| |____) | |__| | |\ |
|_| \__,_|_| \_\______|_____/ |_| \____/|_____/ \____/|_| \_|
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-json]
Object for issuing HTTP request. Received data is parsed as JSON data.
[json-encode]
Object for encoding data to JSON.
[json-decode]
Object for decoding JSON data.
For the usage of the externals see the help patches for the objects.
How to build PuREST JSON
Edit the makefile to fit your platform, it is currently made for Debian
Wheezy.
Make sure to have the header files for libcurl and json-c installed, on
Debian the libraries are called libcurl-dev (with several packages
providing this virtual package) and libjson0-dev respectively.
make
or
make test
or
make debug.
The latter two also launches Pd with a sample patch and an instance of gdb.
TODO:
- Makefile for Mac OS X and Windows (MinGW)
- Implementing OAUTH
- Using library template for Pd-extended.
- JSON error when querying Twitter
Jump to Line
Something went wrong with that request. Please try again.