semvec/pypi-packages huggingface dataset:
spark-ai-cli 0.1.0
SparkAI on CLI
Requires Python: >=3.10,<4.0

# PySparkAI CLI

SparkAI on CLI

## Installation

### Prerequisites

Java JDK 8 is required as a dependency of spark/pyspark itself. Make sure to have the JAVA_HOME environment variable setup as well.

If your environment is already configured to run pyspark applications, you are good to go.

### Setup your environment

Setup OpenAI API key in environment variables:

```sh
export OPENAI_API_KEY='sk-...'
```

To use Google's search mechanism to find data on web, you must also setup Google API key in environment variables:

```sh
export GOOGLE_API_KEY='...'
```

### Install pyspark-ai-cli

```sh
pip install git+https://github.com/lucas-lm/spark-ai-cli
```

## Usage

Call CLI in your shell

```sh
python -m pyspark-ai "https://github.com/topics/google --limit=20"
```

Applying transformations over the source data:

```sh
pyspark-ai https://github.com/topics/google --transform "top 3 python repos with more stars"
```

By default the LLM used behind the scenes is `gpt-3.5-turbo`, but you can change it with `--gpt-model-name` flag:

```sh
pyspark-ai "https://github.com/topics/google" --transform "show me programming languages by stars from the most stared to the less stared" --gpt-model-name "gpt-4" --limit 20
```

Only OpenAI's LLMs are supported in the current version.

> **Warning**
>
> GPT-4 may be not be generally available, so you may face issues on it.
get-contribution 1.0.0
Get your contribution in a Git Repo.
Requires Python: >=3.10,<4.0

# Get contribution in a Git Repo

requires `python >= 3.10`

## Install
`pip install get-contribution`

## Usage
<br> `get-contribution`

Additionally, you can provide an *optional username* argument to yield the contribution of a specific user. <br> <br>
`get-contribution 'John Doe'` 

## Algorithms
The algorithm is very simple. It calculates the time spent in a repo based on the number of times people have pushed to it.

This time between "pushes" is the contribution time.

## Inspiration
This tool is not meant to be an *accurate* measure of contribution. Rather, it is meant to give people a rough sense of how much time they have spent on a project.
Folks who are applying to jobs might find this tool useful since it provides a useful **metric** to be put on resume.