semvec/pypi-packages huggingface dataset:
noerr 1.0.0a0
Catch exceptions via a context manager in Python
Requires Python: >=3.6,<4.0

# noerr

Catch exceptions via context manager in Python.

Super simple to use:

```python
from noerr import no_err

with no_err:
    raise Exception("This won't crash my code!")

print("Yup, still going with no error!")
```

Also possible to log errors:


```python
from noerr import log_err

with log_err:
    raise Exception("Should probably warn the user about this one.")

print("We now see the error, but don't stop because of it")
```

Outputs:
```
Exception logged by "LogError"
Traceback (most recent call last):
  File "<input>", line 4, in <module>
Exception: Should probably warn the user about this one.

We now see the error, but don't stop because of it
```

## Install 

```
pip install noerr
```

## License 

MIT License - Copyright (c) 2020 Chris Griffith - See LICENSE
pgp-utils 1.0.1
A small utility to wrap up common pgp/yubikey operations.
Requires Python: >=3.6

# pgp-utils
This is a very simple command utility that just wraps up some common operations with pgp keys/a yubikey.

For example, you can sign, encrypt, decrypt, switch yubikey (and more) with short and simple commands.

## Configuration
The utility expects a small config file located at `$PGP_UTILS_HOME/config.json`. `$PGP_UTILS_HOME` defaults to `~/.config/pgp-utils`.
The format of the file is:
`
{
    "key_id": <YOUR_KEY_ID>
}
`

## Usage
- `pgp-utils --help`: Display help, available commands etc.
- `pgp-utils switch`: Switch yubikey to the one currently inserted into a USB port on your device.
- `pgp-utils encrypt FILE ...RECIPIENTS`: Encrypts a message. If no recipients are specified, ppg-utils uses the key specified in your config file.
- `pgp-utils decrypt FILE`: Decrypts a message.
- `ppg-utils sign FILE`: Signs a file.
- `ppg-utils verify FILE`: Verifies the signed file.
rightfoot 1.2.0a4
Python API client for Rightfoot student debt repayment.
Keywords: Rightfoot Student Loan Repayment,rightfoot,student,debt,payments

# rightfoot
Rightfoot's API generates student debt beneficiary accounts and transfers funds
to their loans.

[API Documentation](https://docs.rightfoot.com)

This repository provides Python bindings for Rightfoot's API.

## Installation
Install Rightfoot from PyPi with pip:
```
pip install rightfoot
```

## Getting Started
First create a client at the desired endpoint along with your credentials.
```python
import rightfoot

configuration = rightfoot.Configuration()
# Defaults to sandbox, but can be explicitly set to sandbox/production. 
configuration.host="https://sandbox.api.rightfoot.com/v1"
configuration.api_key['Authorization'] = os.env['RIGHTFOOT_API_KEY']
configuration.api_key_prefix['Authorization'] = 'Bearer'
rightfoot_client = rightfoot.RightfootApi(rightfoot.ApiClient(configuration))
```


Then a request to create a beneficiary can be made.
```python
import rightfoot
from rightfoot.rest import ApiException

mailing_address = rightfoot.models.MailingAddress(
    line1="123 Easy Street", city="Palo Alto", state="CA", zip_code="12345-0123")
request = rightfoot.CreateBeneficiaryRequest(
    first_name="John", last_name="Doe", date_of_birth="1970-01-01",
    phone_number="+1 650 555 5555", mailing_address=mailing_address)

try:
    response = rightfoot_client.create_beneficiary(request)
    print(response)
except ApiException as e:
    print("Exception when calling RightfootApi->create_beneficiary: %s\n" % e)
```

## Notes on API Client Source
Rightfoot uses [swagger-codegen](https://github.com/swagger-api/swagger-codegen)
to create and maintain its SDKs whenever possible. Requests for modifications
are accepted but required departing from the Swagger/OpenAPI templates for SDKs,
which we try to avoid as much as possible in the interest of stability and
ability to leverage improvements and security patches from those base templates
as much as possible.

# License
The MIT License (MIT)

Copyright (c) 2020 Charitize, Inc ("Rightfoot")

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
code128cgen 0.0.2
Generation of the Code128c barcode
Requires Python: >=3.6

# Code128c Generator

A simple barcode generator (full python solution)

This library makes use of Pillow  to generate the barcode image.

### Installation
```bash
python -m pip install code128cgen
```

### Usage
#### 
```python
from code128cgen import generate_bar_widths, write_barcode_to_image_file, write_barcode_to_image

test_str_unicode = '12345678'
bars = generate_bar_widths(test_str_unicode) # generates the bar widths for generating image.
pil_image = write_barcode_to_image(bars) # if you want to manipulation the image with PIL.
write_barcode_to_image_file(bars, 'test.png') # writes out file to specified file name.
```
code128agen 0.0.1
Generation of the Code128a barcode
Requires Python: >=3.6

# Code128a Generator

A simple barcode generator (full python solution)

This library makes use of Pillow  to generate the barcode image, 
it also fully supports extended ASCII which I found most other libraries did not support except GNU barcode in raw mode.


### Installation
```bash
python -m pip install code128agen
```

### Usage
#### 
```python
from code128agen import generate_bar_widths, write_barcode_to_image_file, write_barcode_to_image

test_str_unicode = '12345678ÐEª2345FD'
bars = generate_bar_widths(test_str_unicode) # generates the bar widths for generating image.
pil_image = write_barcode_to_image(bars) # if you want to manipulation the image with PIL.
write_barcode_to_image_file(bars, 'test.png') # writes out file to specified file name.
```
code128bgen 0.2.0
Generation of the Code128b barcode
Requires Python: >=3.6

# Code128b Generator

A simple barcode generator (full python solution)

This library makes use of Pillow  to generate the barcode image, 
it also fully supports extended ASCII which I found most other libraries did not support except GNU barcode in raw mode.


### Installation
```bash
python -m pip install code128bgen
```

### Usage
#### 
```python
from code128bgen import generate_bar_widths, write_barcode_to_image_file, write_barcode_to_image

test_str_unicode = '12345678ÐEª2345FD'
bars = generate_bar_widths(test_str_unicode) # generates the bar widths for generating image.
pil_image = write_barcode_to_image(bars) # if you want to manipulation the image with PIL.
write_barcode_to_image_file(bars, 'test.png') # writes out file to specified file name.
```
anki-ocr 0.3.1
Converts physical flashcards to digital anki flashcards


# anki_ocr

anki_ocr is a python program that converts physical flashcards into digital [Anki](https://apps.ankiweb.net)(Anki is a flashcard program that sychronizes your flashcards and uses spaced repetition for efficient memorization) decks. It uses [PyTesseract](https://pypi.org/project/pytesseract/) and [genanki](https://github.com/kerrickstaley/genanki) to turn your handwritten flashcards into digital anki ones.

There are several use cases, mainly its for you if you have a lot of flashcards and and want to digitize them. Anki does support image flashcards, but it would take a lot of time and you wouldn't be able to search the flashcards. Its also useful if you're not allowed to use a laptop/phone in class or prefer to handwrite your notes.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install anki_ocr.

```bash
pip install anki_ocr
```

## Usage
To use anki_ocr, you will need a directory with images of your flashcards. The program will automatically sort the images by date, so you should **capture the question followed by its answer(i.e question1>answer1>question2>answer2 and so on), and ensure the number of images is even**

```bash
anki_ocr [img_directory] [output_deck_name]
```

This will output an Anki deck package output_deck_name.apkg. This package can be imported into the Desktop or mobile Anki apps

## Contributing
This project is beginner friendly. The entire module is a small single file, and the only new package you might have to deal with is genanki just to see some other ways to generate notes.

Clone the project & you probably want a virtual environment
```bash
git clone https://github.com/madelesi/anki_ocr.git
cd anki_ocr
python3 -m venv venv_anki_ocr
source venv_anki_ocr/bin/activate
```
Then install an editable version (updates after every save)
```bash
pip install -e .
```


Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)
ImageToColors 1.1
Image color clustering library for extracting N dominant colors from image

# ImageToColors

ImageToColors is a Image color clustering library for extracting N dominant colors from image and provide list of extracted colors in HEX format.THe prime purpose of this library is to provide quick colors extraction. It has `ExtractColors()` function which deals with clustering it also operate image according to their sizes for fast and secure clustering. It also provides `HEXtoRGB()` conversion function.For Graphical analysis `ImageToColors` gives you `ClusterAnalaysis()` using this function one can analyze color values along with each color percentage present in given image 

## Installation

The easiest way to install the library is to execute

```
pip install ImageToColors
```

(note that you need network access to do it this way; if you do not have the *pip* tool installed -- see: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/).

Alternatively, you can `download`_ the library source archive, unpack it, `cd` to the unpacked directory and execute the following command
```
python setup.py install
```
It is also possible to use the library without installing it: as its code is contained in a single file (``IMageToColors.py``), you can just copy it into your project.

## Functions

#### ExtractColors()
It takes 2 arguments `image` and `cluster value` which is nothing but the integer value for number of colors want to extract.`ExtractColors()` takes any image having `.jpg`, `.jpeg`, `.png` any one of them extension.It returns a list of hex color code list.

```
['#46a947', '#ed3723', '#0b66b5', '#af60a8', '#fbbf10']
```

#### HEXtoRGB()

It takes single `HEX` colors list argument and convert returns a `RGB` colors code list
```
[(70, 169, 71), (237, 55, 35), (11, 102, 181), (175, 96, 168), (251, 191, 16)]
```

#### ClusterAnalysis()

It takes extracted `HEX` colors list and plot the donut graph showing color code and percentage of colors present in given image.

![Output](https://github.com/MayurSatav/ImageToColors/blob/master/ImageToColors/test/output.png)
https://github.com/MayurSatav/ImageToColors/blob/master/ImageToColors/test/output.png



## Usage

```python
from ImageToColors.ImageToColors import *

img = "image.jpg" # .png or .jpg
clust = 5 # Cluster value nothing but the how many dominant colors user want to extract

#to print extracted colors list use ExtractColors() function
HEXlist= ExtractColors(img,clust)
print(HEXlist)

# To convert Hex color list to RGB use HEXtoRGB
RGBlist = HEXtoRGB(HEXlist)
print(RGBlist)

#For graphical analysis use ClusterAnalysis()
ClusterAnalysis(HEXlist)
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
Distributed under the MIT License. See ![LICENSE]('https://github.com/MayurSatav/ImageToColors/blob/master/LICENSE.txt') for more information.
instaup 2020.6.29
An auto downloader and uploader for Instagram profiles.
Requires Python: >=3.5, <4

InstaUp
=======

An auto downloader and uploader for Instagram profiles.

**Requirements**
  `Instaloader <https://instaloader.github.io>`__ and `internetarchive <https://archive.org/services/docs/api/internetarchive/index.html>`__ on Python 3.

**How to use**
  Install with ``pip install instaup``.