Playing with embedding vectors
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wolne_lektury-0.1.0.tar.gz
(9.4 kB
view details)
Built Distribution
File details
Details for the file wolne_lektury-0.1.0.tar.gz
.
File metadata
- Download URL: wolne_lektury-0.1.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6701b758b19de47d12081559c0f046b528e3cab43be17a75000b81b777fb24a |
|
MD5 | 7a929ea9010d4975c52d87fee78dc173 |
|
BLAKE2b-256 | 15f0ef492440faf2f5795127875255a2f224a0fef3d7bdb2eb4233172ff0b2f8 |
File details
Details for the file wolne_lektury-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: wolne_lektury-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f74c16d8f3e1afebde351f2d34fd2158dd3558ada45b5fcf473989986e736424 |
|
MD5 | 6178f22ff6e89e4580cb1d4aec88b170 |
|
BLAKE2b-256 | 36b054bebaefbd8e1f02e24932b4e94fecf3db056df5ff1f4f3f70e476ac4ef9 |