Skip to main content

Python wrapper for it-ebooks-api.

Project description

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Description: pyebooks : A python wrapper around http://it-ebooks-api.info/ API
===================================================================

**What is it?**
****************

pyebooks is a Python wrapper for the it-ebooks API.

It allows quick and easy comsumption of it-ebooks API from your Python application.

pyebooks reqires Python 3.


**Install**
***********

You can install pyebooks using:

.. code ::

$ pip3 install pyebooks

Build from source

.. code ::

$ git clone https://github.com/aksbuzz/pyebooks.git

$ cd pyebooks

$ make


**Usage**
*********

*API Key*
^^^^^^^^^
For access to the eBook API you would need a API Key.

You can get the API Key from here http://api.eBook.in/

*Using the module*
^^^^^^^^^^^^^^^^^^



.. code :: python

>>> eBook = pyebooks.Ebook()

>>> '''
Search the books
'''

>>> search_ = eBook.search("php mysql")

>>> print(search_.error)
>>> print(search_.time)
>>> print(search_.total)
>>> print(search_.page)

>>> print(search_.books)

>>> '''
This will return a list of dictionary with following details:

ID,
Title,
SubTitle (optional),
Description,
Image
'''
Get book detail


>>> book_ = eBook.book_detail(869476162)

>>> print(book_.download)

**Examples**
************

You can find example usage in the examples folder.

**Contribution**
****************

Contributions are welcome!.

**Documentation**
*****************

Documentation at http://it-ebooks-api.info/

**Todo**
********

- Add Python 2 support
- Add detailed documentation
Platform: UNKNOWN

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pyebooks-0.1.0-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyebooks-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyebooks-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 15254fcb9b6653cffb2f51b805be5e35e93b6dc28c9e7b0ee876d0cf1583a628
MD5 7d45ec563fcd299faf246bc030c12aba
BLAKE2b-256 c4bc57d982aa87a6406b3cc26e3fae081330754e7ab55a1d9988a70d34381f89

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