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 platform. It simplifies the process of accessing and manipulating data from the web, enabling users to seamlessly work with Drukarnia. 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():
    search = Search()
    
    async with search:
        cupomanka, *_ = await search.find_author('cupomanka') 

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

        # Get user articles
        articles = await cupomanka.articles

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


if __name__ == '__main__':
    import asyncio

    loop = asyncio.get_event_loop()
    loop.run_until_complete(get_author_article_titles())
Advance Examples: usage.ipynb

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 contact me.

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.1.1.tar.gz (17.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.1.1-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for drukarnia-api-1.1.1.tar.gz
Algorithm Hash digest
SHA256 fcf393791722beee8ed38c6542a039b075c7f4c1653b733db6e76061f9e177dc
MD5 446498117aed849a2423747864ab1524
BLAKE2b-256 ea3825bd4814cd6cfa17ed3727d14404db3197dc237656f15dea6e51f61e3528

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for drukarnia_api-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6462dae16c115284addb048b1c253eaeba0d67da8ac53c0817d3e47d770eb6f8
MD5 f9c75682804a30df66e2197fefed6a11
BLAKE2b-256 f6f3af9da5ad73dba31175e2203d00f8309a2d6cdcd12c29a30cbfb3f9e103b7

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