Skip to main content

Kan_Alexandria is Python 3.5+ library for searching book details using Google Books API. It's based on the original Kan module but optimized for consumption of more data and returns the data in a more usable format (Python dicts).

Reason this release was yanked:

broken release

Project description

(看) Kan: To Read

Build Status GitHub version PyPI version Documentation Status

Kan is book search utility so you spend less time searching and more time reading.

Installation

Install from PyPi

$ pip install kan

From Source

To get the latest version to try out, clone the github repo.

$ git clone https://github.com/jjangsangy/kan.git

Use setup.py to install

# For Python 2.x Install
$ python setup.py install

# For Python 3.x
$ python3 setup.py install

Usage

# Print Out Help Instructions
$ kan -h
Usage: kan [-h] [-v] [--title name] [--author name] [--max n]
           [--subject topic] [--language code]
           {title,isbn,author} ...

Kan helps you find the book

positional arguments:
  {title,isbn,author}  Search by
    title              Book title
    isbn               ISBN code
    author             Book author

optional arguments:
  -h, --help           show this help message and exit
  -v, --version        show program's version number and exit
  --title name         Title of the book
  --author name        Name of the author
  --max n              Maximum results to get per query: default=10, max=40
  --subject topic      Specify subject matter by category
  --language code      Restrict the search results to those with a certain
                       language code

Simplest way is to search for book by title. By default, you’ll get the top 3 matches.

$ kan title 'Fifty Shades'
Title: Fifty Shades of Grey
Author: E L James
ISBN_13: 9781448149452

Title: Fifty Shades Darker
Author: E. L. James
ISBN_10: 0385537689

Title: Fifty Shades Freed
Author: E L James
ISBN: N/A

Search more generally and tweak your search parameters.

$ kan --language ko --max 5 author 'J. K. Rowling' --top
Title: 해리포터와마법사의돌
Author: J. K. Rowling, 김혜원
OTHER: OCLC:226262132

Title: 해리포터와혼혈왕자
Author: J. K. Rowling, 최인자
OTHER: OCLC:226262119

Title: 해리포터와비밀의방
Author: J. K. Rowling, 김혜원
OTHER: OCLC:226262164

Title: 해리포터와불의잔
Author: 조앤 K. 롤링, 김혜원
ISBN_10: 8983920955

Title: 해리포터와죽음의성물
Author: J. K. Rowling, 최인자
ISBN_10: 898392067X

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

kan_alexandria-0.0.4.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

kan_alexandria-0.0.4-py2.py3-none-any.whl (16.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file kan_alexandria-0.0.4.tar.gz.

File metadata

  • Download URL: kan_alexandria-0.0.4.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for kan_alexandria-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3386c33f9e2c353b78a6a871cf837d897ec8518878635174eb7415aa343d0494
MD5 1fd1a67d6ec640ab1ae689c06f9c9732
BLAKE2b-256 7acb0fecd37bd37df7b1b2a8e8d46d0865fb3255eece93f1e90718e0d5827ad5

See more details on using hashes here.

File details

Details for the file kan_alexandria-0.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: kan_alexandria-0.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for kan_alexandria-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 353f07b98299418ecc94f4d26174479783d931a8b5396189d8b3aaa0f79c762d
MD5 4ad3c541fe35d5f276b86036b6316bec
BLAKE2b-256 c2a3a6171906f0d82a30d27acac48871f8cb49ea7e74b5cd1d357ba16f3df0d8

See more details on using hashes here.

Supported by

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