Saravanan666/pypi-org huggingface dataset:
Package: bookmd
# Install```pip install bookmd```# Usage```Usage: bookmd [OPTIONS] COMMAND [ARGS]...Options:--help  Show this message and exit.Commands:initquerytemplatetransform```## `init`initialize directory structure.```$ mkdir /some/directory$ cd /some/directory$ bookmd init$ ls -altotal 0drwxr-xr-x   4 haoxun  staff  136 Dec  8 21:58 .drwxr-xr-x  24 haoxun  staff  816 Dec  8 21:56 ..drwxr-xr-x   3 haoxun  staff  102 Dec  8 20:35 .bookmd-dbdrwxr-xr-x   3 haoxun  staff  102 Dec  8 17:50 isbn```## `query`drop one or more ISBN files to the `./isbn`, then run```$ bookmd query```this command would query douban api for book infos and cache the result to`./.bookmd-db`.## `template`generate markdown template.```$ bookmd template list ./template.md$ bookmd template list --keys='title,rating[average]' ./template.md$ bookmd template table ./template.md$ bookmd template table --keys='title,rating[average]' ./template.md```example of `list`:```* <!-- 算法设计与分析基础 --> {{ isbn="9787302311850" template="[{title}]({alt})" }}* <!-- 金领简历 --> {{ isbn="9787115279262" template="[{title}]({alt})" }}* <!-- R语言编程艺术 --> {{ isbn="9787111423140" template="[{title}]({alt})" }}* <!-- 计算广告 --> {{ isbn="9787115392497" template="[{title}]({alt})" }}* <!-- Word Power Made Easy --> {{ isbn="9781101873854" template="[{title}]({alt})" }}```example of `table`:```| title | author | rating || --- | --- | --- |{{ isbn="9787302311850" template="| <!-- 算法设计与分析基础 -->  [{title}]({alt}) | {author[0]} | {rating[average]} |" }}{{ isbn="9787115279262" template="| <!-- 金领简历 -->  [{title}]({alt}) | {author[0]} | {rating[average]} |" }}{{ isbn="9787111423140" template="| <!-- R语言编程艺术 -->  [{title}]({alt}) | {author[0]} | {rating[average]} |" }}{{ isbn="9787115392497" template="| <!-- 计算广告 -->  [{title}]({alt}) | {author[0]} | {rating[average]} |" }}{{ isbn="9781101873854" template="| <!-- Word Power Made Easy -->  [{title}]({alt}) | {author[0]} | {rating[average]} |" }}```## `transform`render templates.```$ bookmd transform ./template.md ./doc.md```example of generaeted:```* <!-- 算法设计与分析基础 --> [算法设计与分析基础](https://book.douban.com/subject/24708288/)* <!-- 金领简历 --> [金领简历](https://book.douban.com/subject/10779571/)* <!-- R语言编程艺术 --> [R语言编程艺术](https://book.douban.com/subject/24699632/)* <!-- 计算广告 --> [计算广告](https://book.douban.com/subject/26596778/)* <!-- Word Power Made Easy --> [Word Power Made Easy](https://book.douban.com/subject/25977798/)```
Package: bookocr
BookOcrOptical character recognition (OCR) tool for printed book pages.Usage examples:from bookocr.ocr import Ocr

ocr = Ocr()
image_path = "my_image.png"
nested_list_structure = ocr.image_ocr(image_path)  # pages > text areas > lines > words
text = ocr.get_data_as_text()  # the same result, but joined

print(text)from bookocr.config import OcrConfig
from bookocr.stats_config import OcrStatsConfig
from bookocr.ocr import Ocr

# optional
config = OcrConfig()
# ... set config values here

# optional as well
# provides intermediate results of image processing 
stats_config = OcrStatsConfig()
stats_config.set_enabled_true("stats_folder")
# ... set stats_config values here

ocr = Ocr(config, stats_config)
image_path = "my_image.png"
nested_list_structure = ocr.image_ocr(image_path)  # pages > text areas > lines > words
text = ocr.get_data_as_text()  # the same result, but joined

print(text)
Package: bookpam
BookPam is a typesetting system; it includes features designed for the production of technical documentation and book.
BookPam is available as free software.FeaturesSupport cover of bookAuto generate Contents listAuto generator to HTML documents (with minimal style for title, block, etc.)Highlight one own language syntaxeAuto generate Functions list at bottom of bookChange Log0.0.1 (17/03/2021)First Release
Package: book-post-generator
Book Post GeneratorThis is a command-line application that generates promotional content for books using data from Douban and custom promotional strategies.InstallationTo installbook_post_generator, run this command in your terminal:pipinstallbook_post_generatorThis is the preferred method to install book_post_generator, as it will always install the most recent stable release.If you have Poetry installed and prefer to use it for installation, run:poetryaddbook_post_generatorUsageOnce installed, you can run the application with the following command:book-post-generatorThe program will prompt you to enter the book title and then retrieve the book information to generate promotional content.ConfigurationBefore the first run, make sure to create a config.ini file in~/.book_post_generator/config.iniwith the following structure:[API]DOUBAN_API_KEY=your_douban_api_key_hereZHIPU_API_KEY=your_zhipu_api_key_hereReplace your_douban_api_key_here and your_zhipu_api_key_here with your actual API keys.LicenseThis project is licensed under the MIT License - see the LICENSE file for details.
Package: bookpy
bookpyRenames your e-books for better organization.Supported FilesFor now only pdf files.DependenciesPython PackagesisbnlibisbntoolsclickExtra DependenciespdftotextBasic Usagebookpy [OPTIONS] [SRCS]...

SRCS are the books sources (individual files or a directory).
If no source is given, the current directory will be taken.

Options:
  --version            Show the version and exit.
  -r, --recursive      Get all files recursively from a directory.
  -t, --template       Specify a template with which the books are renamed.
                       Default template is '{short_title} - {main_author} ({year})'
  -h, --help           Show the help and exit.ExampleBeforebooks/
├── 97.things.every.programmer.should.know.pdf
├── Algorithms.pdf
├── clean_code.pdf
├── intro algorithms.pdf
├── os - andrew tanenbaum.pdf
├── Refactoring.pdf
├── SoftSkills.pdf
└── the_pragmatic_programmer_Andrew_Hunt.pdfCommandbookpy books/Afterbooks/
├── 97 Things Every Programmer Should Know - Kevlin Henney (2010).pdf
├── Algorithms - Robert Sedgewick.pdf
├── Clean code - Robert C. Martin.pdf
├── Introduction To Algorithms - Thomas H. Cormen (2009).pdf
├── Operating Systems - Andrew S. Tanenbaum (2014).pdf
├── Refactoring - Martin Fowler (1999).pdf
├── Soft Skills - John Z. Sonmez (2014).pdf
└── The pragmatic programmer - Andrew Hunt.pdfInstallationUsing pippip3 install bookpyManual Installationgit clonehttps://github.com/stsewd/bookpycd bookpypip3 install-rrequirements.txtpip3 install .Coming SoonRename a file given a specific ISBN.Threads.Specify_a_separator_between_words.Full template support (templates for each element (autors, title,
etc.)).Specify text case.Support for epub files.Intensive search.
Package: book-queue
Book-QueueSimple tool to manage a collection of in-progress books to get a varied reading intake, written in Python withPoetry,Typer, andSQLAlchemy.FeaturesManage books in collectionPrioritise queue based on importance and time since last accessRead books (by default inZathura)> book-queue read
| No  | File                                                                                             | Acc Prio    | Prio | Modified                   |
| --- | ------------------------------------------------------------------------------------------------ | ----------- | ---- | -------------------------- |
| 1   | Introduction_to_algorithms-3rd Edition.pdf                                                       | 0.0107284   | 50   | 2022-04-01 15:00:57.944001 |
| 2   | Adrian Ostrowski_ Piotr Gaczkowski - Software Architecture with C++-Packt Publishing (2021).epub | 0.000870491 | 10   | 2022-04-01 15:01:08.961704 |
Package: bookrest
Bookrest - The easiest way to add rest API to an arbitrary DBBookrest allows you to add an API (and browsable htmls) to arbitrary databases -- well almost arbitrary, the tables must have PKs.
The databases do not need to be managed by Django.Installation and usagepipinstallbookrestThen in yoursettings.py,INSTALLED_APPS=[# ..."rest_framework","bookrest",]Add a key to yoursettings.DATABASESnamedbookrest, and point it to the DB you want to expose as an API. Keep yourdefaultdb as is, you can use it for user management and other Django apps.DATABASES={"default":{"ENGINE":"django.db.backends.sqlite3","NAME":os.path.join(BASE_DIR,"db.sqlite3"),},"bookrest":{"ENGINE":"django.db.backends.sqlite3","NAME":os.path.join(BASE_DIR,"data/sample.sqlite3"),},}Connect your urls tobookrest.urlsurlpatterns=[# ...path("api/",include("bookrest.urls"))]🚀 Boom! You are in business. All your tables will have a full read/write APITodoTest with SqlitePublish on PypiTest with PostgresTest with MysqlAdd setting to enable a read only APIEnable circleciSilently drop tables with no PKs rather than failing (bad idea??)Inspired byThis projects was inspired bydatasette. I loved datasette, but because DRF has a geat browsable API and Django has powerful introspection capabilities, I wanted to do it in Django+DRF.Bookrest gets all the power of DRF - browsable API, coreapi, filtering, pagination. Set aREST_FRAMEWORKsetting in yoursettings.pyandbookrestwill apply it.Whats with the name?You can put thebookreston table, and it makes reading simpler.
Package: bookscrape
[![PyPI](https://img.shields.io/pypi/v/bookscrape.svg)](https://pypi.python.org/pypi/bookscrape) [![Build Status](https://travis-ci.org/clemfromspace/bookscrape.svg?branch=master)](https://travis-ci.org/clemfromspace/bookscrape) [![Test Coverage](https://api.codeclimate.com/v1/badges/c716cb35ce542efa1bff/test_coverage)](https://codeclimate.com/github/clemfromspace/bookscrape/test_coverage) [![Maintainability](https://api.codeclimate.com/v1/badges/c716cb35ce542efa1bff/maintainability)](https://codeclimate.com/github/clemfromspace/bookscrape/maintainability)## BookscrapeScrape and build e-books from various websites### Usage```bookscrape kissmanga Akira 1-2 --output_dir=/Users/bookscrape/Documents/```The above command will download the volumes `1` and `2` from the `Akira` manga on the `kissmanga` website and save the pdfs files containing the extracted images to `/Users/bookscrape/Documents/````bookscrape --helpusage: bookscrape [-h] [--verbose] {kissmanga,readcomiconline} slug [volume_start-volume_end] output_dirDownload a book volume identified by its slug from the given providerpositional arguments:{kissmanga,readcomiconline} The provider to useslug                        The slug of the book to download[volume_start-volume_end]   The range of volume(s) of the book to downloadoutput_dir                  The full path of the directory to place the downloaded files```### Supported providers- kissmanga (http://kissmanga.com/)- readcomiconline (http://readcomiconline.to)### Install```pip install bookscrape```
Package: books-dl
books-dlКонсольная утилита для загрузки книжек содного замечательного сайта.Установкаpipinstallbooks-dlИспользованиеusage: books_dl [-h] [-i ID книги] [-d Директория] [-nc] [-l] [--max-file-name-length Длина] [Запрос ...]

Консольная утилита для загрузки книжек с одного замечательного сайта.

positional arguments:
  Запрос                Запрос для поиска

options:
  -h, --help            show this help message and exit
  -i ID книги, --id ID книги
  -d Директория, --directory Директория
                        Директория для загрузки книг. Если не указана, то используется текущая
  -nc, --no-cover       Не загружать обложку
  -l, --link            Вывести ссылку на книгу вместо загрузки
  --max-file-name-length Длина
                        Максимальная длина имени файла, по умолчанию 128 символов

Примечание: имя автора всегда следует вводить на русском языке, даже если искомая книжка не на нём.А если вам не хочется каждый раз указывать директорию для загрузки, то можете использовать эти скрипты:#!/usr/bin/env shbooks-dl-d~/documents/books/--no-cover"$*"#!/usr/bin/env shbooks-dl-d~/documents/books/--no-cover-i"$1"#!/usr/bin/env shbooks-dl-l"$*"
Package: bookshelf
Bookshelfbookshelfis how Climate Resource reuses datasets across projectsThebookshelfrepresents a shared collection of curated datasets orBooks. EachBookis a preprocessed, versioned dataset including the notebooks used to produce it.
As the underlying datasets or processing are updated, newBookscan be created (with
an updated version). A single dataset may produce multipleResourcesif different
representations are useful. TheseBookscan be deployed to a sharedBookshelfso that they are accessible by other users.Users are able to use specificBookswithin other projects. The dataset and associated
metadata is fetched and cached locally. Specific versions ofBookscan also be pinned for
reproducibility purposes.This repository contains the notebooks that are used to generate theBooksas well as a CLI tool for managing these datasets.This is a prototype and will likely change in future. Other potential ideas:Deployed data are made available viaapi.climateresource.com.auso that
they can be consumed queried smartlySimple web page to allow querying the dataEach Book consists of adatapackagedescription of the metadata. This datapackage contains the associatedResourcesand
their hashes. EachResourceis fetched when it is first used and then cached for later useInstallationbookshelfcan be installed via pip:pipinstallbookshelfFor developersFor development, we rely onpoetryfor all our
dependency management. To get started, you will need to make sure that poetry
is installed
(instructions here,
we found that pipx and pip worked better to install on a Mac).For all of work, we use ourMakefile.
You can read the instructions out and run the commands by hand if you wish,
but we generally discourage this because it can be error prone.
In order to create your environment, runmake virtual-environment.If there are any issues, the messages from theMakefileshould guide you
through. If not, please raise an issue in theissue tracker.For the rest of our developer docs, please see.
Package: bookshelf-cli
bookshelf📚 A CLI tool for tracking your stories in the software development lifecycle🔎 Tracking your productivity has never been easier🚀 Getting Started🛠️ InstallationUsepipto install bookshelf:pipinstallbookshelfTo optimally set up bookshelf, follow theGetting Started guide in the documentation.🧑‍💻 UsageThe documentation for bookshelf is available atbookshelf.docs.joss.devand contains a detailed guide on how to use bookshelf.To list available commands, either runbookshelfwith no parameters or executebookshelfhelp:
The base command for thebookshelfCLI.SubcommandsNameDescriptioncancelCancel the current chapter of a story on your bookshelfcreateCreate a new story for your bookshelffinishFinish writing a story on your bookshelfinfoDisplays the information for a given story on your bookshelflsList all the current stories on your bookshelfrmRemove a story from your bookshelfstartStart a new chapter for a story on your bookshelfstopStop the current chapter of a story on your bookshelftagAdd a new tag a story on your bookshelfuntagRemove a tag from a story on your bookshelf🤝 ContributingWe're excited that you want to contribute to bookshelf. Your help and contributions are greatly appreciated!
Read thecontribution guidelinesto get started.📜 Code of ConductWe value your contribution and participation in our community. To ensure a positive and inclusive environment for all, we have established a Code of Conduct.
Read theCode of Conductto learn more.
Package: booksnake
booksnakeBooksnake is a tool to search the web for ebooks and automagically send them to your Kindle (or email), all as simply as possible.NOTE: Please only use booksnake for legal download of public-domain resources!Pull-requests and GitHub Issues are always welcome!InstallationSpin up your favorite terminal, and boop this puppy right up in there:pipinstallbooksnakeQ.E.D. wut upSetupCreate a~/.config/booksnake.jsonfile with the following contents:{"from_email":"you@gmail.com","smtp_password":"your gmail password","to_email":"you@free.kindle.com"}If you don't feel comfortable leaving your password in plaintext in your home directory (and I can'tpossiblyimagine why that would be!), you can omit that keyvalue pair and enter it at runtime.You may also choose, like I did, to make a standalone gmail for just this purpose, and then the password is a moot point.Make sure that regardless of which email you use, you have added it to yourAuthorized Sendersin Amazon's Kindle settings, or else Amazon will refuse to send your documents to your device.UsageNo matter which command (send,download, orsearch) you use, Booksnake will show the same search results:booksnakesendconnecticutyankee1:<Book"A Connecticut Yankee In King Arthur's Court"byTwain,Mark>2:<Book"A Connecticut Yankee in King Arthur's Court"byTwain,Mark>3:<Book"A Connecticut Yankee in King Arthur's Court"byTwain,Mark>4:<Book"Connecticut Yankee in King Arthur's Court, A"byTwain,Mark>
>You are prompted to enter the ID number of the book you want to process. Enter an integer, and then hit Enter.Search for a book without downloadingbooksnakesearch"Moby Dick"Download a book without sendingbooksnakedownload"Moby Dick"Search for, download, and send a book to Kindle:booksnakesend"Moby Dick"
Package: bookstack
bookstackA Python wrapper forBookStack'sAPICurrent version: 0.2.0-post1InstallationTo installbookstack, run:pip install bookstackSetupTo use BookStack's API, you'll need to get a token ID and secret.You can find how to get these values from your BookStack instance's doc page athttp[s]://<example.com>/api/docsNote: Your account's user group must have API usage priveleges enabled.UsageOnce you've acquired your token ID and secret, you're ready to rock.>>>importbookstack# Input the appropriate values for these three variables>>>base_url='http[s]://<example.com>'>>>token_id='<token_id>'>>>token_secret='<token_secret>'>>>api=bookstack.BookStack(base_url,token_id=token_id,token_secret=token_secret)This wrapperdynamicallygenerates its API calls at runtime. To have the wrapper generate the methods, use:>>>api.generate_api_methods()>>>api.available_api_methods{'get_books_export_pdf','get_shelves_list','post_books_create','get_docs_display','delete_shelves_delete','get_books_list','get_docs_json','delete_books_delete','get_books_read','get_shelves_read','put_books_update','get_books_export_plain_text','get_books_export_html','post_shelves_create',...}The above are then the methods available to you, for example:>>>books_list=api.get_books_list()>>>books_list['data'][0]['name']'Mathematics'And to POST you can follow this example:>>>api.post_books_create({'name':'Sample Book','description':'Sample Description','tags':[{'name':'Sample-Name','value':'Sample-Value'}]})
Package: bookstack-dl
bookstack-dlPython module to help automatically export all pages in a bookstack instances.
This will crawl through the web api, listing all books, chapters, and pages.
Then, it will download them in a folder heirarchy.Installationpipinstallbookstack_dlUsagefrombookstack_dlimportBookstackAPI# Initiate and log in.bs=BookstackAPI("https://your.bookstackinstall.com","user@email.com","userpassword")# kick off gathering meta databs.get_all_books()# download allbs.download_all("<full_path_to_root_download_dir>")Python DependenciesCurrently, this requires Python 3.6+ due to the use of f-strings.
The os.makedirs exist_ok option requires 3.5+.
Contributions are welcome to help lower the minimum required version.
Package: bookstore
bookstore :books:bookstore:books: provides tooling and workflow recommendations for storing :cd:, scheduling :calendar:, and publishing :book: notebooks.The full documentation is hosted onReadTheDocs.How does bookstore workAutomatic Notebook VersioningEverysaveof a notebook creates animmutable copyof the notebook on object storage.To simplify implementation, we currently rely on S3 as the object store, usingversioned buckets.Storage PathsAll notebooks are archived to a single versioned S3 bucket with specific prefixes denoting the lifecycle of the notebook:/workspace- where users edit/published- public notebooks (to an organization)Each notebook path is a namespace that an external service ties into the schedule. We archive off versions, keeping the path intact (until a user changes them).PrefixIntent/workspace/kylek/notebooks/mine.ipynbNotebook in “draft”/published/kylek/notebooks/mine.ipynbCurrent published copyScheduled notebooks will also be referred to by the notebook key. In addition, we'll need to be able to surface version IDs as well.Transitioning to this Storage PlanSince most people are on a regular filesystem, we'll start with writing to the/workspaceprefix as Archival Storage (writing on save using apost_save_hookfor a Jupyter contents manager).PublishingThe bookstore publishing endpoint is aserverextensionto the classic Jupyter
server. This means you will need to explicitly enable theserverextensionto use the endpoint.To do so, run:jupyter serverextension enable --py bookstoreTo enable it only for the current environment, run:jupyter serverextension enable --py bookstore --sys-prefixInstallationbookstorerequires Python 3.6 or higher.Note: Supports installation on Jupyter servers running Python 3.6 and above.
Your notebooks can still be run in Python 2 or Python 3.Clone this repo.At the repo's root, enter in the Terminal:python3 -m pip install .(Tip: don't forget the dot at the end of the command)Configuration# jupyter config# At ~/.jupyter/jupyter_notebook_config.py for user installs on macOS# See https://jupyter.readthedocs.io/en/latest/projects/jupyter-directories.html for other places to plop thisfrombookstoreimportBookstoreContentsArchiverc.NotebookApp.contents_manager_class=BookstoreContentsArchiver# All Bookstore settings are centralized on one config object so you don't have to configure it for each classc.BookstoreSettings.workspace_prefix="/workspace/kylek/notebooks"c.BookstoreSettings.published_prefix="/published/kylek/notebooks"c.BookstoreSettings.s3_bucket="<bucket-name>"# Note: if bookstore is used from an EC2 instance with the right IAM role, you don't# have to specify thesec.BookstoreSettings.s3_access_key_id=<AWSAccessKeyID/IAMAccessKeyID>c.BookstoreSettings.s3_secret_access_key=<AWSSecretAccessKey/IAMSecretAccessKey>DevelopingIf you are developing on bookstore you will want to run the ci tests locally and to make releases.UseCONTRIBUTING.mdto learn more about contributing.
Userunning_ci_locally.mdto learn more about running ci tests locally.
Userunning_python_tests.mdto learn about running tests locally.
UseRELEASING.mdto learn more about releasing bookstore.