semvec/pypi-packages huggingface dataset:
krazy-utils 0.0.1.dev2
My own small package of uitilities I use.
Requires Python: >=3.9.5

# krazy-utils

I am a beginner in programming and have recently started programming in python. krazy-utils is a simple package containing following functions I use frequently. I just wrote some of them so that I dont forget how to write them ;p

Thought of sharing it as it may help beginners like me:

1. Basic pandas operations on columns like retaining columns passed as list, renaming columns passed as dictionery, etc. It contains one line pandas command to retain columns given to this function. For me, it was easier to do it throuh one word functin rather then half screen length command :p

2. Read and write from CSV.

3. Import from multiple excel files if a directory is given.

4. Getting file list of entire tree under a given directory.

5. Excel to pdf converter

6. Date converter: accepts date (based on d/m/y sequence) written as string with / or - as separators and convert to proper date. 

7. Timekeeper to keep time during runtimes... print command inbuilt.

8. OCR function using pytesseract. For this to work you will need pytesseract and Tesseract installed.

9. Some other small basic stuff.

10. A simple tkinter frontend ready for use with app label, button bar frame and content frame.

I havent explained them a lot here as the code itself is simple and self explanatory.

Suggestions are most welcome.
farrow-and-ball 0.0.3
Port of the R farrowandball palette implementation.
Requires Python: >=3
Keywords: matplotlib,colormap,palette

# Farrow&Ball Matplotlib

[![pypi Badge](https://img.shields.io/badge/pypi-0.0.3-blue)](https://pypi.org/project/farrow-and-ball/)

This is a python port for the matplotlib library of the [R Package](https://github.com/km4htc/farrowandball) for ggplot2.

![spec palette charts](https://github.com/vork/farrowandball/raw/master/images/chart/spec.png)
![tonka palette charts](https://github.com/vork/farrowandball/raw/master/images/chart/tonka.png)

The style for the charts is provided in the [styles](https://github.com/vork/farrowandball/tree/master/styles) folder

# Installation

A python version >= 3 is required.
```bash
pip install farrow-and-ball
```

# Usage

The usage is quite simple:

```python
from farrow_and_ball import *
import numpy as np
import matplotlib.pyplot as plt

# Define a gray scale image
x = np.arange(0, np.pi, 0.1)
y = np.arange(0, 2 * np.pi, 0.1)
X, Y = np.meshgrid(x, y)
Z = np.cos(X) * np.sin(Y) * 10

# Get the color map
cmap = build_colormap(DivergentPalette.DAY, True)

# Draw image
plt.imshow(Z, origin="lower", cmap=cmap)
plt.show()
```

One can also directly get the color map definition as a list of strings with `farrow_and_ball.get_palette(DivergentPalette.DAY)` or an interpolated one with `farrow_and_ball.get_interpolated_palette(DivergentPalette.DAY, num_classes)`.

# Palettes

The palettes are organized in Enums:

```python
class SpectralPalette(Enum):
    DEEPSPEC = "deepspec"
    SPEC = "spec"
    LIGHTSPEC = "lightspec"
    LIGHTERSPEC = "lighterspec"


class DivergentPalette(Enum):
    DAY = "day"
    DAYLONG = "daylong"
    ARMY = "army"
    MONO = "mono"


class BaseColorPalette(Enum):
    PINKS = "pinks"
    PINKS_VAR = "pinks2"
    REDS = "reds"
    YELLOWS = "yellows"
    GREENS = "greens"
    GREENS_VAR = "greens2"
    BLUES = "blues"
    BLUES_VAR = "blues2"


class MiscPalette(Enum):
    TONKA = "tonka"
    BELLSPOUT = "bellsprout"
    DOCKERS = "dockers"
    FRUITYPEBBLES = "fruitypebbles"
```

One can also directly enter the name as a string, e.g. `build_colormap("day", True)`.

## Color Maps

### Continuous
![Spectral Palette](https://github.com/vork/farrowandball/raw/master/images/continuous/SpectralPalette.png)
![Divergent Palette](https://github.com/vork/farrowandball/raw/master/images/continuous/DivergentPalette.png)
![Base Color Palette](https://github.com/vork/farrowandball/raw/master/images/continuous/BaseColorPalette.png)
![Misc Palette](https://github.com/vork/farrowandball/raw/master/images/continuous/MiscPalette.png)

### Discrete
![Spectral Palette](https://github.com/vork/farrowandball/raw/master/images/discrete/SpectralPalette.png)
![Divergent Palette](https://github.com/vork/farrowandball/raw/master/images/discrete/DivergentPalette.png)
![Base Color Palette](https://github.com/vork/farrowandball/raw/master/images/discrete/BaseColorPalette.png)
![Misc Palette](https://github.com/vork/farrowandball/raw/master/images/discrete/MiscPalette.png)
kdrive-upload 0.6.1
Upload files to kDrive

kdrive\_upload
==============

Upload files to `kDrive -
Infomaniak <https://www.infomaniak.com/kdrive>`__

Installation
------------

.. code:: shell

    python3 setup.py install

Configuration
-------------

Create an app password here:
https://manager.infomaniak.com/v3/profile/application-password

Then you create a file ``kdrive-upload.cfg`` inside current directory,
or ``~/.config/kdrive-upload.cfg`` or ``/etc/kdrive-upload.cfg`` like
this:

.. code:: ini

    [credentials]
    username = xxx
    password = xxx

You can also export ``KDRIVE_USERNAME`` or ``KDRIVE_PASSWORD``
environment variables to override these

Usage
-----

.. code:: shell

    $ kdrive-upload --help
    usage: kdrive_upload [-h] [--drive DRIVE] [--keep] dest file

    Upload to kDrive

    positional arguments:
      dest           destination directory
      file           file to upload

    optional arguments:
      -h, --help     show this help message and exit
      --drive DRIVE
      --keep         keep files after upload

As you can see, by default it deletes local file after upload
python-lvis 1.1.0
Easy to use redis queue
Requires Python: >=2.7

# python-lvis

[![pypi Status](https://badge.fury.io/py/python-lvis.png)](https://badge.fury.io/py/python-lvis)
[![Build Status](https://travis-ci.org/thorgate/python-lvis.svg?branch=master)](https://travis-ci.org/thorgate/python-lvis)

Python bindings for https://www.veoseleht.ee API (aka ELVIS), requires ELVIS proxy that translates requests from 
rest to SOAP (you can use https://gitlab.com/thorgate-public/lvisproxy/ proxy for this)


# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.0] - 2021-07-07

### Added

- Requests timing out in 2 minutes (can be overridden by subclassing the `ElvisClient`), 
  previously, there was no timeout and requests could hang for long time causing resource
  leaks
- Add helper to provide choices tuples from Enums (can be used with Django)
- This changelog

### Changed

- Date fields are now properly parsed to datetime
- Elvis proxy exception formatting is improved so that exceptions can actually
  be read

### Fixed

- ElvisModel was mutating its constructor argument, sometimes causing undesired data changes
- Getting transport orders now works in python 3

## [1.0.1] - 2017-01-05

### Added

- Released to PyPi

### Fixed

- Misc fixes related to automated deploys and quality checks

[1.1.0]: https://github.com/thorgate/python-lvis/compare/v1.0.1...v1.1.0
[1.0.1]: https://github.com/thorgate/python-lvis/compare/1.0.0-rc3...v1.0.1