semvec/pypi-packages huggingface dataset:
csplookup 1.4
Client library for CSP Lookup API.
License: MIT

# csplookup
Client library for CSP Lookup API.


### Install
```
pip install csplookup
```

### Usage

```python
from csplookup import CSPClient
from csplookup.errors import MaxLimitReached

client = CSPClient(api_key="YOUR_API_KEY")
res = client.lookup("4.2.2.4")

# check for api errors
try:
    res.check_api_errors()
except MaxLimitReached:
    print("max limit reached")
except Exception as err:
    print("other errors")
# NOTE: check errors file for more exceptions

# get json data:
json_data = res.get_json()
print(json_data)
# country code:
print(json_data["Result"]["Country"]["IsoCode"])
# or
print(res.get_country_code())

```

#### Methods

Some helper methods that can help you get the data you need faster:
```python
# get country iso code
print(res.get_country_code())

# get country name (in english):
print(res.get_country_en_name())

# get city name (in english):
print(res.get_city_en_name())
```

License
----

MIT
scanbook 0.1.1
Tool that processes page images for easier reading
License: MIT
Requires Python: >=3.6

# Scanbook

A Python command-line tool for turning page scans into a nice black-and-white PDF.


## Installation

1. Install Imagemagick
2. `pip install scanbook`
3. Make sure the Python binary path is in your $PATH.

### Pipless installation

1. `python setup.py install` instead of `pip install scanbook`

### Dependencies

- `click`
- `opencv-python`
- `scikit-image`
- Imagemagick (`convert`)


## Usage

`scanbook BOOKNAME FILENAMES...`

Example: `scanbook war-and-peace *.jpg`

Options:

- `--threshold NUM` -- set the threshold value, if the images are turning out too light or too dark; must be an odd number (default: 19)
- `--no-cleanup` -- leave the `__BOOKNAME` folder (handy if you want to do anything with the processed image files)
- `--verbose`

Example: `scanbook --verbose --threshold 27 --no-cleanup war-and-peace *.jpg`
assart 0.2.0
A simple s3 analytics reporting tool
License: MIT
Requires Python: >=3.6

# assart

According to Wikipedia, [Assarting](https://en.wikipedia.org/wiki/Assarting) is the act of clearing forested lands for use in agriculture or other purposes. In English land law, it was illegal to assart any part of a royal forest without permission.

In our case, `assart` is **A simple S3 analytic reporting tool_**

**Note: This is an experimental project and the codebase is not yet ready for serious usage.**

## Getting started

### Installation

Due to the experimental nature of the project, it is recommended that `assart` be installed into a virtual environment like so:

```
$ cd ~/venvs
$ python3 -m venv assartenv
$ source assartenv/bin/activate
$ pip install assart
```

### Configuration

`assart` utilizes the AWS Python SDK (`boto3`). By convention, `boto3` sources your AWS credentials and default region from the following locations:

```
$ cat ~/.aws/credentials
[default]
aws_access_key_id = YOUR_AWS_ACCESS_KEY_ID
aws_secret_access_key = YOUR_AWS_SECRET_ACCESS_KEY

$ cat ~/.aws/config
[default]
region = us-east-1
```

### Usage

```
$ assart -h
usage: assart [-h] [-u {KB,MB,GB}]

A simple S3 analytics reporting tool

optional arguments:
  -h, --help            show this help message and exit
  -u {KB,MB,GB}, --unit {KB,MB,GB}
                        Unit of Size

```

### Running

With your credentials configured, the program can be run like so:

```
$ assart
```

By default the program will output a list of the user's s3 buckets, and for each bucket will provide:

- The Bucket name
- The Creation date of the bucket
- The Number of files in the bucket
- The Total size of the files in the bucket
- The Last modified date of the most recent file

## Contributing

The `assart` package is available under a permissive MIT License. Feedback and suggestions are welcome. The package can be built like so:

```
python setup.py sdist bdist_wheel
```

---
terminology 1.0.16
An intuitive way to color terminal text
License: MIT
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*

# Terminology

[![Build Status](https://travis-ci.org/juanrgon/terminology.svg?branch=master)](https://travis-ci.org/juanrgon/terminology)

A simple way to color terminal text! ❤️ �� �� �� ��

## Color Text

```python
from terminology import in_red, in_yellow, in_green, in_blue, in_magenta

print(in_red("it's"), in_yellow("a"), in_green("double"), in_blue("rainbow"), in_magenta("dude..."))
```

_Output_

![alt text][coloring]

[coloring]: https://raw.githubusercontent.com/juanrgon/terminology/master/pics/coloring.png
 "Coloring"

## Color Text Background

```python
from terminology import on_green, on_yellow, on_red

print(on_green("OK"), on_yellow("WARNING"), on_red("DANGER")
```

_Output_

![alt text][background colors]

[background colors]: https://raw.githubusercontent.com/juanrgon/terminology/master/pics/background.png
 "Background Colors"

## Emphasize Text with Bold and Underlining

```python
from terminology import in_bold, underlined

print(in_bold("Chapter 1"))
print("- ", underlined("Section i"))
print("- ", underlined("Section ii"), "\n")

print(in_bold("Chapter 2"))
print("- ", underlined("Section i"), '\n')
```

_Output_

![alt text][bold and underline]

[bold and underline]: https://raw.githubusercontent.com/juanrgon/terminology/master/pics/bold_and_underline.png
 "Bold and Underline"