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():
    async with Search() as search_engine:
        authors = await search_engine.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)


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-1.0.0.tar.gz (13.4 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-1.0.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for drukarnia-api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 40de17a86dc201a3cdaed84fea6d3801e2a3a0fd16cf116c14ad3eeb1e3a5aa8
MD5 a9c7351cae9cb32ec4610e7c841e0fb6
BLAKE2b-256 9f5c9b5a9777d0c8db250be13e449f003b7c981cb7e8b82e0ef8328d791fecf4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: drukarnia_api-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.9 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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3beabf8804a44c3e9e29f6367890bdbad4aaea663711ba9f68f8b0723b793e13
MD5 71ef29805e8867866f342ff10708e336
BLAKE2b-256 634dac6f18b86ab7a0aaeb4df09e9c69d095448967ec4f8e69a9dce21a55e9ff

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