semvec/pypi-packages huggingface dataset:
fortune-python 1.1.2
A Fortune clone in Python
Requires Python: >=3.8
Keywords: fortune

# Python Fortune

[![Repository](https://img.shields.io/badge/jamesansley%2Ffortune-102335?logo=codeberg&labelColor=07121A)](https://codeberg.org/jamesansley/fortune)
[![PyPi](https://img.shields.io/pypi/v/fortune-python?label=PyPi&labelColor=%23ffd343&color=%230073b7)](https://pypi.org/project/fortune-python/)
[![License](https://img.shields.io/badge/Apache--2.0-002d00?label=license)](https://codeberg.org/jamesansley/fortune/src/branch/main/LICENSE)

A simple self-contained clone of fortune. Try it out
with [cowsay](https://codeberg.org/jamesansley/cowsay)!

## Install

    pip install fortune-python

## Usage

### CLI

Currently, a `fortune` command line program is added on install.

```
fortune
```

This will select a random fortune. Adding the fortune command line arguments
is planned later.

### Programmatic

To use this package, import the `fortune` function and call:

```python
from fortune import fortune

print(fortune())
```

This will produce a random fortune.

# Notes

The fortune data for this package is taken
from [fortune-mod](https://github.com/shlomif/fortune-mod). Please see the
datfiles directory in this repo for their corresponding license.

The offensive fortunes in the 'off' directory are not included in this Python
package. However, the fortunes provided in this package are otherwise provided
as they were in the
original [fortune-mod](https://github.com/shlomif/fortune-mod) repository.
I do not take responsibility for the content of these fortunes.
getschema 0.2.11
Get jsonschema from sample records

[![Build Status](https://travis-ci.com/anelendata/getschema.svg?branch=main)](https://travis-ci.com/anelendata/getschema)

💥 New: jsonpath support for the record_level parameter in getschema.infer_schema function.

# getschema

Get jsonschema from sample records

Command line usage:
```
usage: getschema [-h] [--indent INDENT] [--type TYPE] [--skip SKIP] [--lower]
                 [--replace_special REPLACE_SPECIAL] [--snakecase]
                 data

positional arguments:
  data                  json record file

optional arguments:
  -h, --help            show this help message and exit
  --indent INDENT, -i INDENT
                        Number of spaces for indentation
  --type TYPE, -t TYPE  Record format (json, yaml, csv)
  --skip SKIP, -s SKIP  Skip first n records. Don't skip the header row.
  --lower, -l           Convert the keys to lower case'
  --replace_special REPLACE_SPECIAL, -r REPLACE_SPECIAL
                        Replace special characters in the keys with the
                        specified string
  --snakecase, -n       Convert the keys to 'snake_case'
getschema file.json
```

Module functions:
(See impl.py)
- infer_schema
- infer_from_json_file
- infer_from_yaml_file
- infer_from_csv_file
- fix_type

Example projects using getschema:
- https://github.com/anelendata/tap-rest-api
- https://github.com/anelendata/tap-bigquery

## Original repository

- https://github.com/anelendata/getschema

# About this project

This project is developed by
ANELEN and friends. Please check out the ANELEN's
[open innovation philosophy and other projects](https://anelen.co/open-source.html)

![ANELEN](https://avatars.githubusercontent.com/u/13533307?s=400&u=a0d24a7330d55ce6db695c5572faf8f490c63898&v=4)
---

Copyright &copy; 2020~ Anelen Co., LLC
kada-gx-plugin 2.0.18
kada-gx-plugin generates validation results in a format for loading into the K Platform.
Requires Python: <4.0,>=3.8

## kada-gx-plugin

kada-gx-plugin generates validation results in a format for loading into the K Platform.

Plugin has been tested for only Great Expectations versions `1.0.x - 1.1.x`.

Results will continue to be written to existing default validation stores, any additional actions defined for a Checkpoint is considered additional steps and does not overwrite existing steps.

### Steps to use the KadaStoreValidationResultsAction from the plugin

1. Install the plugin by `pip install kada-gx-plugin` to write to a local filesystem or `pip install kada-gx-plugin[azure]` to write to an Azure blob store. Additional azure dependencies will be required.

2. Import the Checkpoint class from the plugin as there are patches made to the default class to ensure the plugin is compatible.

>#### Import Checkpoint and KadaStoreValidationResultsAction
```python
    from kada_ge_store_plugin.kada_store_validation import KadaStoreValidationResultsAction, Checkpoint
```

3. In your required `checkpoint`, add the following action to your checkpoint actions when defining a checkpoint. `AZURE_BLOB_SAS_URL` is the container SAS token which is provided by KADA. `prefix` should be updated to the landing folder found in K Platform Source onboarding.

>#### Checkpoint action for writing to local filesystem
```python
    checkpoint_action_list = [
        KadaStoreValidationResultsAction(
            name='this can be any name',
            prefix='my-path/inside/test-results-directory',
            test_directory='/tmp/test-results-directory
        )
    ]
```
This will write validation result files to /tmp/test-results-directory/my-path/inside/test-results-directory

>#### Checkpoint action for writing to Azure blob store

```python
    checkpoint_action_list = [
        KadaStoreValidationResultsAction(
            name='this can be any name',
            prefix='my-path/inside/test-results-directory',
            azure_blob_sas_url='${AZURE_BLOB_SAS_URL}'
        )
    ]
```

4. Define the variable `AZURE_BLOB_SAS_URL`. In `uncommited/config_variables.yml` add the variable `AZURE_BLOB_SAS_URL: <SAS url blob >` or alternatively set `AZURE_BLOB_SAS_URL` in the environment variables. OR alternatively if you using a codified approach just define it as a standard python varaible and change the definition like so

```python
    checkpoint_action_list = [
        KadaStoreValidationResultsAction(
            name='this can be any name',
            prefix='my-path/inside/test-results-directory',
            azure_blob_sas_url=AZURE_BLOB_SAS_URL
        )
    ]
```