Skip to main content

A python implementation of the Tilda API

Project description

Build Status Coverage Status PyPI PyPI - Python Version PyPI - License PyPI - Format PyPI - Status

Tilda API

A python implementation of Tilda API

Getting Started

The project provides full access to Tilda.cc API via an object-oriented Python interface using dataclasses.

Installation

Use the package manager pip to install package.

pip install tilda-wrapper-api

Use the package manager pipenv to install package.

pipenv install tilda-wrapper-api

Usage

# Standard libraries
import os

# Project
from tilda_wrapper_api.client import Client

# create a client object, default value secret=os.getenv('SECRET') and public=os.getenv('PUBLIC')
client = Client()

# get list of projects
projects = client.get_projects_list()
print(projects)

# get project information
project = client.get_project(projects.result[0].id)
print(project)

# get project information for export
project_export = client.get_project_export(projects.result[0].id)
print(project_export)

# get list of pages in the project
pages = client.get_pages_list(projects.result[0].id)
print(pages)

# get information about the page (+ body html-code)
page = client.get_page(pages.result[0].id)
print(page)

# get information about the page (+ full page html-code)
page_full = client.get_page_full(pages.result[0].id)
print(page_full)

# get information about the page for export (+ body html-code)
page_export = client.get_page_export(pages.result[0].id)
print(page_export)

# get information about the page for export (+ full page html-code)
page_full_export = client.get_page_full_export(pages.result[0].id)
print(page_full_export)

Built With

  • Requests - Python HTTP Requests for Humans™
  • dataclasses-json - Library provides a simple API for encoding and decoding dataclasses to and from JSON

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

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

tilda_wrapper_api-0.1.5.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tilda_wrapper_api-0.1.5-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file tilda_wrapper_api-0.1.5.tar.gz.

File metadata

  • Download URL: tilda_wrapper_api-0.1.5.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for tilda_wrapper_api-0.1.5.tar.gz
Algorithm Hash digest
SHA256 9a9a89d906ce4ec1804545ec16877561b757f418e9d703838011062e13851032
MD5 1eb1ca93dd34cf468c4d5d05ca2eb0cc
BLAKE2b-256 5a1af4685ba77bfffcb3d27eccd49dd1f784daf31bbff01528871112536c36bf

See more details on using hashes here.

File details

Details for the file tilda_wrapper_api-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: tilda_wrapper_api-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for tilda_wrapper_api-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aecaf82b4dc876b11fed35f3d5fef1931cfe25891a0b5c8ebd0903de15c1846a
MD5 da0cfc2e06d668215221563b7dc1d24d
BLAKE2b-256 f9c3a71f2355203c7fba384dc2a811ae300bd6f4438381879de71fbce3e899d5

See more details on using hashes here.

Supported by

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