semvec/pypi-packages huggingface dataset:
lpar-activation-work 0.0.1
lpar-activation-work is a Python package designed to take details like, lpar, ipaddress, script directory and script command as the input, and perform below activities
Requires Python: >=3.8

# lpar-activation-work

[![PyPI version](https://pypi.org/project/lpar-activation-work/)]

## Overview

lpar-activation-work is a Python package designed to:
Takes details like, lpar, ipaddress, script directory and script command as the input, and perform below activities

1. To call the zhmclient to activate the lpar, Sleep for 10 minutes
2. ssh to the ipaddress (Linux guest ip address)
3. download the script file to, local machine, from given source path
4. upload the dowloaded script file to the dir(/ffdc/u/eATS_automation) on the ssh session
5. invoke the script command (ex: sh make_loop.sh) on the ssh session
6. collect the output printed on the ssh session and print it


## Installation

You can install the package using pip:

```bash
pip install lpar-activation-work
```
## config JSON format

```bash
{
    "host_name": "ip address of host",
    "hmcm_user_name": "user name of HMC",
    "hmcm_pwd": "password of HMC",
    "cpc": "cpc details",
    "lpar": "lpar details",
    "system_host": "ip address of host system",
    "userid": "user id",
    "user_pwd": "user password",
    "ssh_key_path": "SSH_KEY_PATH",
    "script_details": {
        "token": "",
        "name": "example.sh",
        "url": "path to script file",
        "exec_path": "path to execution",
        "local_path": "./"
    }
}

```
## Usage example

``` bash
main.py
*******
from activation import Activation


activation_obj = Activation(sys.argv[1])
activation_obj.entry_point()

```
## Running the Python code

``` bash

python main.py config.json

```

## Python package creation

[REFERENCE](https://www.geeksforgeeks.org/what-is-a-python-wheel/)
django-gen 0.1.0
🚀 **Django Project Generator** - bu interaktiv CLI vositasi bo‘lib, u yangi Django loyihalarini tez va soddalashtirilgan

# Django Project Generator

🚀 **Django Project Generator** - bu interaktiv CLI vositasi bo‘lib, u yangi Django loyihalarini tez va soddalashtirilgan
tarzda yaratishga yordam beradi. Bu vosita turli konfiguratsiya variantlarini taklif qiladi va foydalanuvchining
tanloviga qarab kerakli kutubxonalarni avtomatik o‘rnatadi.

---

## ⚙️ O‘rnatish

```bash
pip install django-gen
```

---

## 🚀 Ishga tushirish

Yangi Django loyihasini yaratish uchun quyidagi buyruqni bajaring:

```bash
django-gen <project_name>
```

So‘ng, terminalda bir nechta interaktiv savollarga javob berishingiz kerak bo‘ladi:

```bash
❓ Django REST Framework ishlatiladimi? (y/n)
❓ JWT Authentication kerakmi? (y/n)
❓ Docker orqali ishga tushirasizmi? (y/n)
❓ Django Debug Toolbar o‘rnatilsinmi? (y/n)
❓ Black formatter o‘rnatilsinmi? (y/n)
❓ Flake8 linter o‘rnatilsinmi? (y/n)

🔹 Qaysi database-ni ishlatmoqchisiz?
   1. PostgreSQL
   2. MySQL
   3. SQLite (default)
```

Tanlangan variantlarga qarab loyiha avtomatik yaratiladi va kerakli konfiguratsiyalar bajariladi.

---

## 🔧 Konfiguratsiya

Agar barchasiga Ha deb javob bergan bo'lsangi loyihangiz shu korinishda generatsya boladi.

```
project_name
├── config
│   ├── asgi.py
│   ├── __init__.py
│   ├── settings
│   │   ├── base.py
│   │   ├── deployment.py
│   │   └── __init__.py
│   ├── urls.py
│   └── wsgi.py
├── manage.py
├── requirements.txt
├── setup.cfg
├── src
│   ├── api
│   │   ├── include_routers.py
│   │   └── __init__.py
│   ├── apps
│   │   ├── __init__.py
│   │   ├── serializers
│   │   │   ├── base.py
│   │   │   └── __init__.py
│   │   ├── urls
│   │   │   └── __init__.py
│   │   └── views
│   │       └── __init__.py
│   ├── core
│   │   ├── admin
│   │   │   └── __init__.py
│   │   ├── apps.py
│   │   ├── __init__.py
│   │   ├── migrations
│   │   │   └── __init__.py
│   │   └── models
│   │       ├── base.py
│   │       └── __init__.py
│   └── shared
│       ├── drf_yasg.py
│       └── __init__.py
└── templates
    └── base.html
```

---

## 🛠 Hissa qo‘shish

Hissa qo‘shmoqchi bo‘lsangiz ([Github]):

1. **Fork qiling** – [GitHub repo](https://github.com/zohidillo/django-project-generator) sahifasiga kiring va `Fork` tugmasini bosing.
2. O‘zingizning branch-ni qo'shing (`feature/new-feature`).
3. O‘zgarishlaringizni push qiling.
4. Pull request yuboring.

---

## 📄 Litsenziya

Ushbu loyiha MIT License ostida tarqatiladi. Siz koddan erkin foydalanishingiz, uni o‘zgartirishingiz va tarqatishingiz
mumkin. Agar loyihaga o‘z hissangizni qo‘shmoqchi bo‘lsangiz, pull request yoki issue oching! 🎉