A python implementation of the Tilda.cc API
Project description
# Python Tilda.cc API
[](https://pypi.python.org/pypi/tilda-api) [](https://travis-ci.org/dotzero/tilda-api-python) [](https://travis-ci.org/dotzero/tilda-api-python) [](https://scrutinizer-ci.com/g/dotzero/tilda-api-python/?branch=master) [](https://scrutinizer-ci.com/g/dotzero/tilda-api-python/?branch=master)
As complete as possible implementation of Tilda.cc API.
The project provides an almost exhaustive access to the Tilda.cc API, through an object oriented Python interface.
## Features
- Get projects list 
- Get project info 
- Get project info for export 
- Get pages list 
- Get short page info and body html code 
- Get full page info and full html code 
- Get short page info for export and body html code 
- Get full page info for export and body html code 
## Requires
- python >= 2.6 
- python >= 3.2 
## Installation
### From Pypi
You can install tilda-api-python using:
pip install tilda-api
### From source
git clone https://github.com/dotzero/tilda-api-python cd tilda-api-python python setup.py install
## Usage
To create an instance of the tilda.Client:
>>> import tilda >>> api = tilda.Client(public='000000000000', secret='999999999999')
To get projects list:
>>> projects = api.get_projects_list() >>> projects[0].to_dict() ... or >>> projects[0].id >>> projects[0].title
To get project info:
>>> project = api.get_project(project_id=00000) >>> project.to_dict() ... or >>> project.id >>> project.title
To get project info for export:
>>> project = api.get_project_export(project_id=00000) >>> project.to_dict() ... or >>> project.id >>> project.title
To get pages list:
>>> pages = api.get_pages_list(project_id=00000) >>> pages[0].to_dict() ... or >>> pages[0].id >>> pages[0].title
To get short page info and body html code:
>>> page = api.get_page(page_id=00000) >>> page.to_dict() ... or >>> page.title >>> page.html
To get full page info and full html code:
>>> page = api.get_page_full(page_id=00000) >>> page.to_dict() ... or >>> page.title >>> page.html
To get short page info for export and body html code:
>>> page = api.get_page_export(page_id=00000) >>> page.to_dict() ... or >>> page.title >>> page.html
To get full page info for export and body html code:
>>> page = api.get_page_full_export(page_id=00000) >>> page.to_dict() ... or >>> page.title >>> page.html
## License
Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
 Details for the file tilda-api-0.2.1.tar.gz. 
File metadata
- Download URL: tilda-api-0.2.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | ec7a40e07b6aae4a4ca621c586163dd25cc1d3335f8d250f67b54ed80754fe9f | |
| MD5 | c30f149d4624c41348b2d06633bc9a20 | |
| BLAKE2b-256 | abd0f00789ccc905826cb426d6da3ded494c8a7d14e8b940fbfd0ddec811fdff | 
File details
 Details for the file tilda_api-0.2.1-py2-none-any.whl. 
File metadata
- Download URL: tilda_api-0.2.1-py2-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | a0b28bcc95ca27a302935c16e18346f27e5f05ca52223b247c78103813d8e2d1 | |
| MD5 | db35a93fb9e5ef328551d7d177a64127 | |
| BLAKE2b-256 | cd176b305e22844acb245346feb5eb405d4c1213a258bcd09cea0ecbb26526b9 |