semvec/pypi-packages huggingface dataset:
atai-ebook-tool 0.0.6
A command-line tool for parsing ebooks (such as EPUB and MOBI) and converting them into a structured JSON file.
License: MIT
Requires Python: >=3.6
Keywords: pdf, ocr, text-extraction, document-processing

# atai-ebook-tool

A command-line tool for parsing ebooks (such as EPUB and MOBI) and converting them into a structured JSON file.

## Installation

```bash
pip install atai-ebook-tool
```

## Usage
Run the CLI tool from the command line:

```bash
atai-ebook-tool path/to/ebook.epub -o output.json
```

This command will parse the specified ebook and output the result to book folder

## Supported Formats
- EPUB
- Mobi

## License
This project is licensed under the MIT License.
tosql 0.2.1
tosql - pipe data to sql queries
License: MIT

# tosql - run sql queries on CLI data

`tosql` is a cli tool for running SQL queries on CLI data and outputting results to json
format. It can read/write from stdin/stdout so it should work fairly naturally.
It can also perform joins for data that comes from multiple input files.

## Setup

Install via pip:

```bash
pip install tosql
```

## Quick Start

Pipe any tabular data in and use `tosql` to run a sql query on it. The default table
name to select from is "a"

```bash
df | tosql "SELECT * FROM a LIMIT 2"
```

If you run `tosql` with no arguments it will "SELECT * FROM a" by default.

```bash
df | tosql
```

## Joins

`tosql` reads multiple input files into tables called a,b,c,... , which you can perform join on.

For example:

```bash
# join a csv of daily prices with a json file of sales on different days
tosql -i examples/daily-price.csv -i examples/daily-sells.json "SELECT a.Open as price, b.amount, b.day FROM a JOIN b ON a.Date = b.day LIMIT 10"

# calculate the total sold
tosql -i examples/daily-price.csv -i examples/daily-sells.json "SELECT SUM(Open*amount) FROM a JOIN b ON a.Date = b.day"
```


### CLI Options

`tosql` has several command line options to choose from, displyed by running with the
"--help" flag.

```bash
$ tosql --help
Usage: tosql [OPTIONS] [SQL]

Options:
  --version              Show the version and exit.
  -i, --input FILENAME   Input file, default stdin
  -o, --output TEXT      Output file, default stdout
  -f, --sql-file TEXT    File containing SQL query
  -t, --table-name TEXT  Table name  [default: df]
  -c, --cols TEXT        Column names, comma separated
  --auto                 Autogenerate column names: a b c ...
  --save                 Save the sql file to .tosql.db
  --help                 Show this message and exit.
```