Skip to main content

A declarative system to consume the NVP api.

Project description

A declarative system to consume the NVP api.

Current Build Status

https://api.travis-ci.org/jkoelker/aiclib.png

Use of AIC wrapper lib

The AIC wrapper command, or sentence, consists of two parts: - An object and its parameters - A verb that acts on that object

Typical use looks as follows: library.[possible parameters].object.[params].verb

It is possible for the object to be a collection of the same type of object. The AIC wrapper lib will perform a bulk operation on all of the objects.

If an object is not given it is assumed that the user wishes to create an object (this is finalized through the CREATE verb).

Object’s parameters are completely optional if they are set through a ‘dot’ function. Parameters that are required are set during the declaration of the object.

A verb works on the object and is always the last portion of a normal command.

Querying using the wrapper lib

The exception to the normal command pattern is when a user wishes to query. A query works much like the typical use but acts works as a modifer to the verb (an adverb).

Typical query use is as follows: library.[params].object.query.[params].verb

The object stated in the command is what query is looking for. Parameters may be passed to the query to make the search more precise.

Extending the wrapper lib

The creation of a custom entity requires that the entity, somewhere in its inheritance chain, inherit from core.Entity. For it to properly return responses from the server it also needs to overload unroll.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiclib-0.83.tar.gz (13.5 kB view details)

Uploaded Source

File details

Details for the file aiclib-0.83.tar.gz.

File metadata

  • Download URL: aiclib-0.83.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for aiclib-0.83.tar.gz
Algorithm Hash digest
SHA256 cd32aca7accdee5016988693646c131f6e4b48f62c5b94456a67859e04d2a238
MD5 3e7decfc7a601627d9c86787cbb17a96
BLAKE2b-256 74b6271323f9d2637a3e2c7a4949acfa9d5ea2de5bca846cc8a14c02f41a2d67

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page