semvec/pypi-packages huggingface dataset:
sg-pdfparser 1.0.2
A Command Line tool for parsing PDFs.
License: MIT

# SaralGyaan PDF Parser
SaralGyaan PDF Parser is a command-line PDF parsing tool which allows you to:-
1. Delete Pages from a PDF
2. Merge PDFs
3. Sort Pages of a PDF
4. Split a PDF
## Installation
You can install SaralGyaan PDF Parser from [PyPI](https://pypi.org/project/sg-pdfparser/):
```pip install sg-pdfparser```
The PDF Parser supports Python 3.6 and above.
## How to use?
The SaralGyaan PDF Parser is a command line application, named pdfparser. To start it you can simply open the terminal, go to the folder containing the PDF file(s) to be parsed and call the program:-
```
$ pdfparser
Welcome to PDF Parser

What do you want to do?

1. Delete Pages from a PDF
2. Merge PDFs
3. Sort Pages of a PDF
4. Split a PDF

Press ctrl + C to exit.
Enter your choice (1-4):
```
## Delete Pages from a PDF
If you select the option to delete pages, it will ask for the filename followed by '.pdf'
```
Enter your choice (1-4): 1
Delete Pages from a PDF
Enter the name of file with extension(.pdf)
```
Make sure the pdf file exist at the location and once you provide a valid pdf file, it will give you two options:-
```
What do you want to do?
 1. Delete specific pages
 2. Keep Specific pages
 ```
 Both the options accept comma separated values of pages or page ranges or both e.g. 1, 2, 3-5 or 1-2 or 2-3, 4-6.
 One, thing you need to know that if you use Keep specific pages and change the order like 1-2, 6-4, then it will re-arrange the pages too.

 ## Merge PDFs
 This options accepts comma separated file names and it will merge the files in the order, it is provided as an input.

 ## Sort pages of a PDF
 Sort pages, give you three options
 ```
 What do you want to do?
 1. Reverse order of all the pages
 2. Swap Pages
 3. Move certain pages to a specific index
```
1. The first one, will simply reverse the order of the pages.
2. The second one will swap two pages, you can input multiple or single swaps e.g. 1-3, 2-7, 8-9, etc.
3. The third one will move the page to a certain page number (not index). It also accepts comma separated values. So 21-2 will move page number 21 to 2 and hence shifting the rest of the page to right.

## Split a PDF
This gives you two options:-
```
What do you want to do?
 1. Split all the pages
 2. Split specific pages
```
1. The first option will make n splits for n-paged PDF file.
2. The second one will split the pdf into the ranges or pages as provided. e.g. 1, 3, 9-22, will give three split files first page, third page and pages from nine to twenty two.

## Video Usage Guide
You can also check out our [Usage Guide](https://youtu.be/BenY3DeEaf4) on Youtube.

## License

© 2020 Udit Vashisht

This repository is licensed under the MIT license. See LICENSE for details.
async-weather-sdk 0.1.1
Async weather API wrapper for fetching weather and forecast data
License: MIT
Requires Python: >=3.6,<4.0
Keywords: weather,forecast,asyncio,python3

# Async Weather SDK

[![PyPI version](https://img.shields.io/pypi/v/async-weather-sdk?logo=python&logoColor=white)](https://badge.fury.io/py/async-weather-sdk)
[![GitHub Workflow Status for tests](https://img.shields.io/github/workflow/status/decentfox/async-weather-sdk/test?logo=github&logoColor=white)](https://github.com/decentfox/async-weather-sdk/actions?query=workflow%3Atest)
[![Codacy Badge](https://img.shields.io/codacy/coverage/f548667427c24fc394204b440166c26d?logo=Codacy)](https://www.codacy.com/gh/decentfox/async-weather-sdk?utm_source=github.com&utm_medium=referral&utm_content=decentfox/async-weather-sdk&utm_campaign=Badge_Coverage)

Async weather API wrapper for fetching weather and forecast data

## Core Dependencies

**Asyncio:** a library to write concurrent code using the async/await syntax.

**Aiohttp:** an asynchronous HTTP Client/Server for asyncio and Python.

## Install

```bash
pip install async-weather-sdk

OR

poetry add async-weather-sdk
```

## Usage

### QQ Weather API SDK

Get current weather/forecast data by province and city.

```python
from async_weather_sdk.qq import QQWeather

weather = QQWeather()

await weather.fetch_current_weather('北京市', '北京市')
await weather.fetch_weather_forecast('北京市', '北京市', 3)
```

Query current weather/forecast data with tencent map api key.

```python
from async_weather_sdk.qq import query_current_weather, query_weather_forecast

await query_current_weather('API_KEY', '北京市')
await query_weather_forecast('API_KEY', '39.90469,116.40717')
```