summaryrefslogtreecommitdiff
path: root/python-agility-cms.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-agility-cms.spec')
-rw-r--r--python-agility-cms.spec469
1 files changed, 469 insertions, 0 deletions
diff --git a/python-agility-cms.spec b/python-agility-cms.spec
new file mode 100644
index 0000000..4d81e80
--- /dev/null
+++ b/python-agility-cms.spec
@@ -0,0 +1,469 @@
+%global _empty_manifest_terminate_build 0
+Name: python-agility-cms
+Version: 0.1.0
+Release: 1
+Summary: Python Fetch SDK for Agility CMS
+License: MIT License
+URL: https://github.com/agility/agilitycms-python-sdk
+Source0: https://mirrors.aliyun.com/pypi/web/packages/1a/a3/dd532245c8445a549e2d7266abaf6ed64ec244e929d8b08c6f41e157cefb/agility-cms-0.1.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+
+%description
+# Agility CMS Python SDK
+
+This package is a Python library for calling the [Agility CMS Rest API.](https://api-dev.aglty.io/swagger/index.html)
+
+## Installation
+
+Use the package manager [pip](https://pip.pypa.io/en/stable/) to install agility-cms.
+
+```bash
+pip install agility-cms
+```
+
+## Initialization
+```python
+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)
+
+## Gallery
+```python
+client.gallery('<gallery id>')
+```
+### Required Arguments
+* gallery_id (int)
+
+## Item
+```python
+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
+```python
+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
+```python
+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
+```python
+client.sitemap('<channel name>', nested=False)
+```
+### Required Arguments
+* channel_name (str)
+
+### Optional Arguments
+* nested (bool)
+
+## Sync Items
+```python
+client.sync_items(sync_token=0, page_size=500)
+```
+### Optional Arguments
+* sync_token (int)
+* page_size (int)
+
+## Sync Pages
+```python
+client.sync_pages(sync_token=0, page_size=500)
+```
+### Optional Arguments
+* sync_token (int)
+* page_size (int)
+
+## Url Redirections
+```python
+client.url_redirections(last_access_date="")
+```
+### Optional Arguments
+* last_access_date (str)
+
+
+
+
+
+%package -n python3-agility-cms
+Summary: Python Fetch SDK for Agility CMS
+Provides: python-agility-cms
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-agility-cms
+# Agility CMS Python SDK
+
+This package is a Python library for calling the [Agility CMS Rest API.](https://api-dev.aglty.io/swagger/index.html)
+
+## Installation
+
+Use the package manager [pip](https://pip.pypa.io/en/stable/) to install agility-cms.
+
+```bash
+pip install agility-cms
+```
+
+## Initialization
+```python
+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)
+
+## Gallery
+```python
+client.gallery('<gallery id>')
+```
+### Required Arguments
+* gallery_id (int)
+
+## Item
+```python
+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
+```python
+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
+```python
+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
+```python
+client.sitemap('<channel name>', nested=False)
+```
+### Required Arguments
+* channel_name (str)
+
+### Optional Arguments
+* nested (bool)
+
+## Sync Items
+```python
+client.sync_items(sync_token=0, page_size=500)
+```
+### Optional Arguments
+* sync_token (int)
+* page_size (int)
+
+## Sync Pages
+```python
+client.sync_pages(sync_token=0, page_size=500)
+```
+### Optional Arguments
+* sync_token (int)
+* page_size (int)
+
+## Url Redirections
+```python
+client.url_redirections(last_access_date="")
+```
+### Optional Arguments
+* last_access_date (str)
+
+
+
+
+
+%package help
+Summary: Development documents and examples for agility-cms
+Provides: python3-agility-cms-doc
+%description help
+# Agility CMS Python SDK
+
+This package is a Python library for calling the [Agility CMS Rest API.](https://api-dev.aglty.io/swagger/index.html)
+
+## Installation
+
+Use the package manager [pip](https://pip.pypa.io/en/stable/) to install agility-cms.
+
+```bash
+pip install agility-cms
+```
+
+## Initialization
+```python
+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)
+
+## Gallery
+```python
+client.gallery('<gallery id>')
+```
+### Required Arguments
+* gallery_id (int)
+
+## Item
+```python
+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
+```python
+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
+```python
+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
+```python
+client.sitemap('<channel name>', nested=False)
+```
+### Required Arguments
+* channel_name (str)
+
+### Optional Arguments
+* nested (bool)
+
+## Sync Items
+```python
+client.sync_items(sync_token=0, page_size=500)
+```
+### Optional Arguments
+* sync_token (int)
+* page_size (int)
+
+## Sync Pages
+```python
+client.sync_pages(sync_token=0, page_size=500)
+```
+### Optional Arguments
+* sync_token (int)
+* page_size (int)
+
+## Url Redirections
+```python
+client.url_redirections(last_access_date="")
+```
+### Optional Arguments
+* last_access_date (str)
+
+
+
+
+
+%prep
+%autosetup -n agility-cms-0.1.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-agility-cms -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.0-1
+- Package Spec generated