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.912.tar.gz (13.0 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.912-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: drukarnia-api-0.1.912.tar.gz
  • Upload date:
  • Size: 13.0 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.912.tar.gz
Algorithm Hash digest
SHA256 807d86f7d2657a9531f22971108614eda922c9fd2deb722744e24aca651c93f2
MD5 e774490e56c2176f8944c6bda8ce39ac
BLAKE2b-256 d4cad628e36398b172471677789d327d8ecb9edd12f8a4664392e9a363c5cba0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for drukarnia_api-0.1.912-py3-none-any.whl
Algorithm Hash digest
SHA256 a66ed5f8e8f776bbba793d53ddb880e3f616de539ca92be2079b5e1e4cfc12f2
MD5 9323e9cf462069337a4d990769a34632
BLAKE2b-256 93e40997acd6f2d420e69ad8367441b9764383c76a78b9e8242bd3f9279df5cd

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