Skip to main content

wrapper for the Drukarnia API

Project description

drukarnia-api

License

Overview

drukarnia-api is a Python library designed as a wrapper for the Drukarnia API, providing various functionalities for interacting with the Drukarnia platform. It simplifies the process of accessing and manipulating data from the Drukarnia API, enabling users to seamlessly integrate Drukarnia's features into their applications. The library is actively being developed and already includes almost all of the necessary features. We are working diligently to implement the remaining features as quickly as possible.

Simple Usage

from drukarnia_api import Search


async def get_author_article_titles():
    # Retrieve all results
    authors = await Search().find_author('cupomanka')
    # Get the first search result
    author = authors[0]

    # Collect all data about the user
    await author.collect_data()

    # Get user articles
    articles = await author.articles

    # Print all titles
    for article in articles:
        print(article.title)

    # Close the session (we are still considering the best way to make it seamless)
    await author.close_session()


if __name__ == '__main__':
    import asyncio

    loop = asyncio.get_event_loop()
    loop.run_until_complete(get_author_article_titles())

Installation

You can install drukarnia-api using pip:

pip install drukarnia-api

Contributing

Contributions to drukarnia-api are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on the GitHub repository: https://github.com/androu-sys/drukarnia-api.

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

drukarnia-api-0.1.90.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.

drukarnia_api-0.1.90-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file drukarnia-api-0.1.90.tar.gz.

File metadata

  • Download URL: drukarnia-api-0.1.90.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for drukarnia-api-0.1.90.tar.gz
Algorithm Hash digest
SHA256 7caff32b2838314cbd44dfdb852091f4982989abfa569505690744fa986604ef
MD5 6f06035a378d53b4a352fe79c5d8e4c8
BLAKE2b-256 c55c8480b1a3bbdd52027ab64b0aba8fdb136f4c6bfa9b3357dfa57a047c717f

See more details on using hashes here.

File details

Details for the file drukarnia_api-0.1.90-py3-none-any.whl.

File metadata

  • Download URL: drukarnia_api-0.1.90-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for drukarnia_api-0.1.90-py3-none-any.whl
Algorithm Hash digest
SHA256 84717121b16c443c0fc0462d1c2f9d95a75f28efdeb8ec11a54b470d563a9b71
MD5 4d2e04b811b04ae11e8d6f41043c3113
BLAKE2b-256 6574f8051bf3b6f3011a2b21dee557a5a955683cad068f6eb352ffd2c2290340

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