Skip to main content

Official CocoyoyoLibrairie API packages

Project description

Cocoyoyo_Librairie_Python_Api

Official Cocoyoyolibrairie Python Api

Search books and users in the cocoyoyolibrairie with this package !

Getting Started:

Install:

pip3 install cocoyoyo-librairie-api

Upgrade:

pip3 install cocoyoyo-librairie-api --upgrade

Starting code:

from pprint import pprint
from cocoyoyo_librairie_api.api import CocoyoyoLibrairie, CocoyoyoLibrairie_Exception

""" If you want to disable the message on init: """
# module = CocoyoyoLibrairie(False)
""" else: """
module = CocoyoyoLibrairie()

# search a book
search = module.search('Petit')
""" Uncomment below to view result """
# pprint(search)

# search a book by his id
search_id = module.search_id(search['resultat_livres'][0]['id'])
""" Uncomment below to view result """
# pprint(search_id)

# search a book by his isbn (WARNING !!! ALL BOOKS FIND WITH THIS METHOD AREN'T NECESSARILY IN THE COCOYOYOLIBRAIRIE)
search_isbn = module.search_isbn(9791035204396)
""" Uncomment below to view result """
# pprint(search_isbn)

search_user = module.search_user('No Token')
""" Uncomment below to view result """
# pprint(search_user)

"""
I want to have doc of library
Uncomment below to view result
"""
# print(module.__doc__)

"""
I want to have doc of search() method
Uncomment below to view result
"""
# print(module.search.__doc__)


""" You can catch exceptions of API: """
try:
    search_user = module.search_user('00')
except CocoyoyoLibrairie_Exception as e:
    print(f'An exception occurred !\n{e.__class__}: {"".join(e.args)} !')

Links / Developer / Contribute:

CocoyoyoLibrairie Official API made with ❤️ by CAMARM-DEV for CAMARM-DEV, inc

###- Repository ###- Contributors ###- Pypi ###- CAMARM-DEV Website ###- Gitlab Profile ###- Pypi Profile ###- Discord ###- Version History

Copyright 2021 CAMARM-DEV, inc

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

cocoyoyo_librairie_api-1.5.6.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file cocoyoyo_librairie_api-1.5.6.tar.gz.

File metadata

  • Download URL: cocoyoyo_librairie_api-1.5.6.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/2.7.17

File hashes

Hashes for cocoyoyo_librairie_api-1.5.6.tar.gz
Algorithm Hash digest
SHA256 039968ee17ba4fdf5331221da95608ef0682475b51792c2c66e058d188c681c2
MD5 870ef1c21e28a58f7543a82ddb274eaf
BLAKE2b-256 ca2d59a3fcb9202251dd99870a10dc4a8b6023022475090f298d86aa07a3c7d7

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