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

Uploaded Python 3

File details

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

File metadata

  • Download URL: drukarnia-api-0.1.913.tar.gz
  • Upload date:
  • Size: 12.9 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.913.tar.gz
Algorithm Hash digest
SHA256 31ee68e032247fe3afd44ce0dc117b804b3614444f595fbde2a4cf4a0baf8f1c
MD5 f84b33a02df2c71804a910f44b543fe2
BLAKE2b-256 c52d3ab14faf449b0f1ae4b89556329c4f1cc11d8b8fc03a8f4014ba26d4eb77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for drukarnia_api-0.1.913-py3-none-any.whl
Algorithm Hash digest
SHA256 679d84156caabb1f517dbb8a0c2b77686fc9c0c0b85be76cedb98f1478dc0e05
MD5 b4de752c8628e3acfc58a59fb71581f2
BLAKE2b-256 90a2c92622b3b483085e5a560a0c4f735488fc2fdc0e485cd11a4513cf1f4230

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