Catalog PyPI
PACKAGE EXPLORERView in registry

agility-cms

PyPI

Python Fetch SDK for Agility CMS

Versions collected1
Direct dependencies1From release 0.1.0
Last observed21 Oct, 09:08 UTC

README

Version 0.1.0 documentation

Agility CMS Python SDK

This package is a Python library for calling the Agility CMS Rest API.

Installation

Use the package manager pip to install agility-cms.

pip install agility-cms

Initialization

import Client from agility_cms

client = Client(
    '<your guid>', 
    '<your api key>', 
    locale="en-us", 
    preview=True, 
    url="api.aglty.io"
)

Required Arguments

  • guid (str)
  • api_key (str)

Optional Arguments

  • locale (str)
  • preview (bool)
  • url (str)
client.gallery('<gallery id>')

Required Arguments

  • gallery_id (int)

Item

client.item(
    '<item id>', 
    content_link_depth=1, 
    expand_all_content_links=False
)

Required Arguments

  • item_id (int)

Optional Arguments

  • content_link_depth (int)
  • expand_all_content_links (bool)

List

client.list(
    '<reference name>', 
    fields="", 
    take=10, 
    skip=0, 
    filter_="", 
    sort="", 
    direction='asc', 
    content_link_depth=1, 
    expand_all_content_links=False
)

Required Arguments

  • reference_name (str)

Optional Arguments

  • fields (str)
  • take (int)
  • skip (int)
  • filter (str)
  • sort (str)
  • direction (str)
  • content_link_depth (int)
  • expand_all_content_links (bool)

Page

client.page(
    '<page id>', 
    content_link_depth=2, 
    expand_all_content_links=False
)

Required Arguments

  • page_id (int)

Optional Arguments

  • content_link_depth (int)
  • expand_all_content_links (bool)

Sitemap

client.sitemap('<channel name>', nested=False)

Required Arguments

  • channel_name (str)

Optional Arguments

  • nested (bool)

Sync Items

client.sync_items(sync_token=0, page_size=500)

Optional Arguments

  • sync_token (int)
  • page_size (int)

Sync Pages

client.sync_pages(sync_token=0, page_size=500)

Optional Arguments

  • sync_token (int)
  • page_size (int)

Url Redirections

client.url_redirections(last_access_date="")

Optional Arguments

  • last_access_date (str)

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.030 Sept 20211

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
agility/agilitycms-python-sdk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:08 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:6db7e331f3144c4a63e1f413d268cf02ecb39ce142bdaa02ebb43c4f95a2e39f