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:
        search_res = await search.find_author('cupomanka')
        # most probable
        cupomanka = search_res[0]

        # 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.2.tar.gz (17.5 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.2-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: drukarnia-api-1.1.2.tar.gz
  • Upload date:
  • Size: 17.5 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.2.tar.gz
Algorithm Hash digest
SHA256 e39327f9f92cde9874872dd2bbec231dfc43f0802759fdfcf3950847bde878a9
MD5 4152aa1e940f7d38de91ecd93874f130
BLAKE2b-256 bb2bbde0d1c2f1adae6dc5f8944761569f2a4d24a784d9f6910b38caadf38af3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: drukarnia_api-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 22.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d733972e225706980893ab999052d969c3fc2d12d9c37c1f80020abadb8e5d77
MD5 b609c1f84fe18555caabf1bf830ba379
BLAKE2b-256 936b7178cacc18c674c2eef9af70620e996202562b821753aa90f1d49dcfeadc

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