semvec/pypi-packages huggingface dataset:
gg-release-notes 1.7.1
Python Interface for generating release notes for Github Actions
Requires Python: >=3.6

# GPT Release Notes

## Requirements
- .env file -> .env 
- python packages requirements.txt
- OPTIONAL - requirements-test.txt
- Github Repository
- OPENAI account

## pip installation
`pip install gg-release-notes`

## Installation
`python3 -m pip install -r requirements.txt`

## Dev installation
`python3 -m pip install -r dev.requirements.txt`


## Usage

### Example python script
```python
from release_notes.config.env_config import EnvConfig
from release_notes.config.github_config import GithubAPIConfig
from release_notes.config.prompt_config import PromptConfig

from release_notes.pull_request import ProdReleasePR
from release_notes.version import ReleaseVersion
from release_notes.generate_release_notes import ReleaseNotes

from release_notes.upload import UploadRelease, upload_release_notes


config = EnvConfig(".env")
github_api = GithubAPIConfig("DataWiz40", "gg-release-example", config)
prompt_config = PromptConfig(github_api)

prod_release_pr = ProdReleasePR(github_api)
release_version = ReleaseVersion(github_api)

release_notes_instance = ReleaseNotes(
    env_config=config, prompt_config=prompt_config, prod_release_pr=prod_release_pr
)

if __name__ == "__main__":
    generated_release_notes = release_notes_instance.create_release_notes()
    chosen_release = generated_release_notes.get("internal_release").get("response")
    upload_instance = UploadRelease(
        github_config=github_api,
        env_config=config,
        prod_release_pr=prod_release_pr,
        prod_release_version=release_version,
        release_notes_text=chosen_release,
    )
    upload_release_notes(
        prod_release_pr.issue_num, upload_instance, make_github_release=True
    )

```
### Example Github Actions workflow

```yaml
name: Generate Release notes

on:
  pull_request:
    types: [labeled]
    branches:
      - main
  workflow_dispatch:

jobs:
  test-release-notes:
    if: ${{ github.event.label.name == 'prod-release' }}
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3.8"]
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: |
          python3 -m pip install --upgrade pip
          python3 -m pip install -r requirements.txt

      - name: Decode base64 env
        run: echo ${{ secrets.INSERT_SECRETS_KEY }} | base64 --decode > .env

      - name: Generate Release Notes
        run: python3 ./path_to_script.py
```
todomdcli 0.0.1
TUI Todo Application, that converts all your records into pretty markdown
Requires Python: >=3.9

TODOMD
------

TUI Todo Application, that converts all your records into pretty markdown

```
NAME
    todomd - Scan markdown todo history, highlight days and priority

SYNOPSIS
    todomd FILENAME

DESCRIPTION
    Scan markdown todo history, highlight days and priority

POSITIONAL ARGUMENTS
    FILENAME
        Type: str

NOTES
    You can also use flags syntax for POSITIONAL ARGUMENTS
```
universal-common 1.2.0
Library that extends the Python base class library with utility functions.
Requires Python: >=3.9

# universal_common
Library that extends the base class library functionality.

### Dictionary
Drop in replacement for the built-in dict that supports either attribute access or indexing.
```python
dictionary: Dictionary = Dictionary({ "a": 1 })

assert dictionary.a == 1
assert dictionary["a"] == 1
assert dictionary.b is None # Does not raise errors.
```
django-dbbackup-admin 1.5.0
Get Backup From Database Through Admin Panel
Keywords: django, database, media, backup, amazon, s3, dropbox

# django-dbbackup-admin
get backup from database through admin panel

This is a simple and useful method to get backup from database through admin panel

### 1. install package
    pip install django-dbbackup-admin

### 2. add this packages in INSTALLED_APPS :
```
INSTALLED_APPS = [
    # ...
    'dbbackup',
    'solo',
    'dbbackup_admin'
    # ...
]
```
### 3.read documents of django-dbbackup library from this link :
    https://django-dbbackup.readthedocs.io/en/master/

### 4. set your desired config like this:
```
DBBACKUP_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'

DBBACKUP_STORAGE_OPTIONS = {
    'access_key': config("S3_ACCESS_KEY"),
    'secret_key':config("S3_SECRET_KEY"),
    'bucket_name': config("S3_BUCKET_NAME"),
    'default_acl': config("S3_DEFAULT_ACL"),
    'location':config("S3_BACKUP_FOLDER_NAME")
}
```
Note: If you use s3 storage you should install boto3 package.

### 5. create and migrate migrations in BASE_DIR: 
    python manage.py migrate dbbackup_admin

when you pass this missions toy will see this in your admin panel:
![Panel](https://github.com/HosseinSayyedMousavi/django-dbbackup-admin/assets/104124540/fca21688-e377-45f4-846d-7b2adede191b)


when you click on save button backup will be saved on your desired bucket or directory.

Thanks for attention