Skip to main content

DjamBase

http://images.jambase.com/logos/jambase140x70.gif

A Python Jambase API Client Library

Getting Started

$ pip install DjamBase

Get a valid Developer API key at http://developer.jambase.com.

import DjamBase

db = DjamBase.API("your_api_key")

Usage

db.artist_search(params)

‘params’ is a dictionary, with: {"id": <int>, "name": <str>} as valid key, value options. These will serve as the JamBase Artist search parameters.

db.venue_search(params)

‘params’ is a dictionary, with: {"id": <int>, "zipCode": <int>, "radius"*: <int>} as valid key, value options. These are the JamBase Venue search parameters. * miles.

db.event_list(params)

params’ is a dictionary, with:

{
"id": <int>,
"artist": <str>,
"artistId": <int>,
"band": <str>,
"bandId": <int>,
"venueId": <int>,
"zipCode": <int>,
"radius": <int>,
"startDate": <YYYY-MM-DD>,
"endDate": <YYYY-MM-DD>
}

as possible valid key, value options. These are the JamBase Event search parameters.

Use any combination of a functions’ available parameters that you like, depending on the desired results. Notice that all keys are written in “camelCase”.

Use as below:

r = db.event_list( {"name": "the foobar fighters", "radius": 200} )

Response

Of course, you can use whatever variable name you like, but the above variable “r” will contain a response object. It’s that simple! The “.body” attribute of this object contains the response in JSON format. If you would like XML, pass “xml” as the optional 2nd argument when instantiating the client.

r.body

-Use this response object property retrieve the content of the search response. JSON by default.

r.status

-This property will give you access to the dialogues’ HTTP status code, in case there are issues.

r.text

-This property will give you a stringified version of the JSON/XML response.

r.binary

-This property will get you binary version of the response.

json = r.body
print json

Example

import DjamBase

db = DjamBase.API("your_api_key", "xml")

r = db.event_list( {"name": "the foobar fighters", "radius": 200} )
code = r.status
print code      **<Response-200>**

xml = r.body
print xml

Metadata

Release files for DjamBase 1.0.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DjamBase 1.0.16
File Size Uploaded
DjamBase-1.0.16.tar.gz 39.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DjamBase 1.0.16
File Interpreter ABI Platform
DjamBase-1.0.16.macosx-10.11-intel.exe Details

Total release size: 150.6 kB

Release files / DjamBase-1.0.16.tar.gz

Download URL DjamBase-1.0.16.tar.gz
Size 39.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6bb24fa7dda5f6980649dfad537527e7fa8001fd2594426ac6f7e056c819a29d
BLAKE2b-256 checksum
How to use checksums
224e02a3f0994709df4c33401bd3dcd9845fb87f10b4c710f0a4e3592f2271f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / DjamBase-1.0.16.macosx-10.11-intel.exe

Download URL DjamBase-1.0.16.macosx-10.11-intel.exe
Size 110.8 kB
Tags Source
SHA-256 checksum
How to use checksums
106de233ce54359799372e771797592eb463c7720d0d8b597b4b63f2a6663815
BLAKE2b-256 checksum
How to use checksums
2e3a7eabdfcad8408078da54a69a77f5d51f74e9c636e415ae89fed5aa8f9355
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.16 This release

2 release files

1.0.15

1 release file

1.0.14

1 release file

1.0.13

1 release file

1.0.12

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

1 release file

1.0.8

2 release files

1.0.7

1 release file

1.0.6

2 release files

1.0.5

2 release files

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page