Skip to main content

wolne_lektury

An unofficial REST API client for Wolne Lektury

Installation

You can install this library from PyPI

pip install wolne_lektury

or from the GitHub repo:

pip install git+https://github.com/krzjoa/wolne_lektury.git

Usage

import wolne_lektury as wl

# Query is automatically slugified, so you can type author names in natural language
wl.get_books(authors = "Juliusz Słowacki")
wl.get_books(authors = "adam-mickiewicz")

# Use more complex queries. You can specify language as well
wl.get_books(epoch="Romantyzm", genre="Powieść")
wl.get_books(epoch="Modernizm", kind="Liryka", language="pol")

# Get lists of authors, epochs, genres, kinds, themes and collenctions
wl.get_authors()
wl.get_epochs()
wl.get_genres()
wl.get_kinds()
wl.get_themes()
wl.get_collections()

# Retrieve full textes or download them as files
books = wl.get_texts(author="Ignacy Krasicki")
print(list(books.values())[4][:60])
'Dwa żółwie\r\n\r\n\r\n\r\nNie żałując sił własnych i ciężkiej fatygi'

wl.download("output_dir", author="Henryk Sienkiewicz", book_format=wl.BookFormat.PDF)

Metadata

Release files for wolne-lektury 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wolne-lektury 0.1.0
File Size Uploaded Provenance Actions
wolne_lektury-0.1.0.tar.gz 9.4 kB Without provenance Details for wolne_lektury-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wolne-lektury 0.1.0
File Interpreter ABI Platform Actions
wolne_lektury-0.1.0-py3-none-any.whl Python 3 none any Details for wolne_lektury-0.1.0-py3-none-any.whl

Total release size: 20.8 kB

Release files / wolne_lektury-0.1.0.tar.gz

Download URL wolne_lektury-0.1.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e6701b758b19de47d12081559c0f046b528e3cab43be17a75000b81b777fb24a
BLAKE2b-256 checksum
How to use checksums
15f0ef492440faf2f5795127875255a2f224a0fef3d7bdb2eb4233172ff0b2f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release files / wolne_lektury-0.1.0-py3-none-any.whl

Download URL wolne_lektury-0.1.0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f74c16d8f3e1afebde351f2d34fd2158dd3558ada45b5fcf473989986e736424
BLAKE2b-256 checksum
How to use checksums
36b054bebaefbd8e1f02e24932b4e94fecf3db056df5ff1f4f3f70e476ac4ef9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Security for wolne-lektury 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page