Developer Interface

Licenses

class koordinates.licenses.LicenseManager(client)

Bases: koordinates.base.Manager

Accessor for querying licenses.

Access via the licenses property of a koordinates.client.Client instance.

get(id, expand=[])

Fetches a Token determined by the value of id.

Parameters:id – ID for the new Token object.
get_creative_commons(slug, jurisdiction=None)

Returns the Creative Commons license for the given attributes.

Parameters:
  • slug (str) – the type of Creative Commons license. It must start with cc-by and can optionally contain nc (non-commercial), sa (share-alike), nd (no derivatives) terms, seperated by hyphens. Note that a CC license cannot be both sa and nd
  • jurisdiction (str) – The jurisdiction for a ported Creative Commons license (eg. nz), or None for unported/international licenses.
Return type:

License

list()

Fetches a set of Tokens

model

alias of License