semvec/pypi-packages huggingface dataset:
kindle-sdr-cleaner 0.1.1
Clean useless .sdr folders in your Kindle.
License: MIT
Requires Python: >=3.6,<4.0

# Kindle SDR Cleaner

Clean useless `.sdr` folders in your Kindle.

## Installation

```bash
pipx install kindle-sdr-cleaner
```

## Usage

```bash
kindle-sdr-cleaner # clean in current folder
kindle-sdr-cleaner /Volumes/Kindle # clean in /Volumes/Kindle
```

## Changelog

### v0.1.1

- Fix: Ignore PermissionError when iter dirs

### v0.1.0

- Initial release
randomstuff.py 2.0.0
An easy to use & feature-rich python API wrapper for Random Stuff API.
License: MIT
Requires Python: >=3.6
Keywords: api-wrapper randomstuff api wrapper

<div>
  <h1 align='center'>
    randomstuff.py
  </h1>
</div>
<div>
  <p align='center'>
    <img src=https://img.shields.io/pypi/dm/randomstuff.py?color=success&label=PyPi%20Downloads&style=flat-square>
    <img src=https://img.shields.io/github/issues/nerdguyahmad/randomstuff.py?color=success&label=Active%20Issues&style=flat-square>
    <img src=https://img.shields.io/badge/License-MIT-informational>
    <img src=https://img.shields.io/badge/Stable_Version-1.6.0-informational>
  </p>
  <p align='center'>
    An easy to use, feature rich, highly customisable and async pythonic API wrapper for the Random Stuff API.
  </p>
</div>
<br>

## Features
- Easy-to-use & Organized
- Designed to be as optimized as possible
- Implements the entire API including all supported versions
- Supports both async and sync
- Supports all type of API plans
- All classes are well [documented](https://nerdguyahmad.gitbook.io/randomstuff)
- Actively maintained, Remains up-to-date with all updates.

## Installation
Installation can be done easily using the python package manager `pip`
```bash
pip install randomstuff.py
```

## Quickstart
Firstly make sure to [get the API key from here](https://api.pgamerx.com/register)

Here are few examples to get you started.

### Getting AI response
```py
import randomstuff

with randomstuff.Client(api_key='api-key-here') as client:
  response = client.get_ai_response("Hi there")
  print(response.message)
```

### Getting random joke
```py
import randomstuff

with randomstuff.Client(api_key='api-key-here') as client:
  joke = client.get_joke(type="any")
  print(response.joke)
```

### Getting random image
```py
import randomstuff

with randomstuff.Client(api_key='api-key-here') as client:
  image = client.get_image(type="any")
  print(response)
```

### Getting weather
```py
import randomstuff

with randomstuff.Client(api_key='api-key-here') as client:
  weather = client.get_weather("new york")
  # print(weather) # Uncomment to see full object.
  print("Current weather in {} is {} degree centigrade".format(weather.location.name, weather.current.temperature))
```

## Async Support
This library also supports async usage.
```py
import randomstuff
import asyncio

async def coro():
  async with randomstuff.AsyncClient(api_key="api-key-here") as client:
    response = await client.get_ai_response("Hello world")
    print(response.message)

loop = asyncio.get_event_loop()
loop.run_until_complete(coro())
```

## Contribution
This library is powered by community contributions. Feel free to open a pull request to contribute.
aioscrapy 0.1.10
Python asynchronous library for web scraping
License: MIT
Requires Python: >=3.6.0
Keywords: python3 aioscrapy crawler scraper python-library

# Python async library for web scraping

[![PyPI version](https://badge.fury.io/py/aioscrapy.svg)](https://badge.fury.io/py/aioscrapy)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/eugen1j/aioscrapy/blob/master/LICENSE)

[![Build Status](https://travis-ci.org/eugen1j/aioscrapy.svg?branch=master)](https://travis-ci.org/eugen1j/aioscrapy)
[![codecov](https://codecov.io/gh/eugen1j/aioscrapy/branch/master/graph/badge.svg)](https://codecov.io/gh/eugen1j/aioscrapy)
[![codebeat badge](https://codebeat.co/badges/c494c251-c554-4f61-be57-6ca484ae7ba9)](https://codebeat.co/projects/github-com-eugen1j-aioscrapy-master) 
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/54e3d1b41bed4c9fb62e25483d1fe1eb)](https://www.codacy.com/app/eugen1j/aioscrapy?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=eugen1j/aioscrapy&amp;utm_campaign=Badge_Grade)

## Installing

    pip install aioscrapy

## Usage

Plain text scraping
```python
import asyncio
import json

from aioscrapy import Client, WebTextClient, SingleSessionPool, Dispatcher, SimpleWorker


class CustomClient(Client[str, dict]):
    def __init__(self, client: WebTextClient):
        self._client = client

    async def fetch(self, key: str) -> dict:
        data = await self._client.fetch(key)
        return json.loads(data)


async def main():
    pool = SingleSessionPool()
    dispatcher = Dispatcher(['https://httpbin.org/get'])
    client = CustomClient(WebTextClient(pool))
    worker = SimpleWorker(dispatcher, client)

    result = await worker.run()
    return result

loop = asyncio.get_event_loop()
print(loop.run_until_complete(main()))
```

Byte content downloading
```python
import asyncio

from aioscrapy import Client, WebByteClient, SingleSessionPool, Dispatcher, SimpleWorker


class CustomClient(Client[str, bytes]):
    def __init__(self, client: WebByteClient):
        self._client = client

    async def fetch(self, key: str) -> bytes:
        data = await self._client.fetch(key)
        return data


async def main():
    pool = SingleSessionPool()
    dispatcher = Dispatcher(['https://httpbin.org/image'])
    client = CustomClient(WebByteClient(pool))
    worker = SimpleWorker(dispatcher, client)

    result = await worker.run()
    return result

loop = asyncio.get_event_loop()
data: dict = loop.run_until_complete(main())
for url, byte_content in data.items():
    print(url + ": " + str(len(byte_content)) + " bytes")
```