semvec/pypi-packages huggingface dataset:
django-rest-test-case-generator 0.2.1
Django command to generate test case for rest apis.
License: MIT
Requires Python: >=3.6
Keywords: django, test case generator, rest apis, testing

# TestCaseGenerator for Django REST APIs
`django_rest_test_case_generator` is a Python library that helps developers automatically generate test cases for their 
Django REST Framework APIs. It crawls through the project, detects class-based views (CBVs), and creates 
corresponding test cases based on the HTTP methods (GET, POST, PUT, DELETE, etc.) defined in those views. 
This saves developers time and ensures that their API endpoints are well-covered by automated tests.

## Getting Started
These instructions will help you to set up the library on your working project and start generating test cases
for development and testing purposes.

### Prerequisites
Before you can use `django_rest_test_case_generator`, you'll need to have the following installed:

```
pip install django djangorestframework
django-admin startproject myproject
cd myproject
```

### Installation

Now, you can install this package.

```
pip install django-rest-test-case-generator
```

In your Django project, add the `test_case_generator_command` app to your `INSTALLED_APPS` in settings.py:

```
INSTALLED_APPS = [
    # Other apps
    'test_case_generator_command',
]
```

Now you're ready to generate test cases for your APIs. Use the following management command to crawl through your project and create the test cases:

```
python manage.py generate_test_case
```
This will scan for class-based views (CBVs) and generate corresponding test cases for each API method (GET, POST, PUT, DELETE).
gen_lambda 0.1.5
Create/Publish AWS Lambda CLI
License: MIT
Requires Python: <4.0,>=3.11

# Gen Lambda

Gen Lambda is a CLI tool designed to simplify the process of creating, publishing, and managing AWS Lambda functions.

## Features

- Create new AWS Lambda functions with customizable configurations.
- Publish Lambda functions to AWS.
- Remove Lambda functions from AWS.
- Zip Lambda functions for deployment.
- Interactive prompts for configuration selection.

## Requirements

Before using Gen Lambda, ensure you have the following installed and configured:

- **Python 3.11+**
- **Python 3.12+**
- **Python 3.13+**
- **Terraform**
- **Node.js 18**
- **Node.js 20**
- **Node.js 22**
- **AWS CLI** (configured with `aws configure`)

## Installation

You can install Gen Lambda via pip:

```sh
pip install gen_lambda
```

Alternatively, you can install it using Poetry:

```sh
pip install poetry
poetry install
```

## Usage

The CLI is powered by `typer`, providing an intuitive interface for managing Lambda functions.

### Setup Commands

```sh
lambda --help
```

#### Create a New Lambda Function

```sh
lambda --generate
```

This command will guide you through selecting:
- Lambda name
- Project name
- Environment (development, staging, production)
- Runtime (from available templates)
- AWS Region
- IAM Role creation

#### Publish an Existing Lambda Function

```sh
lambda --publish
```

#### Remove a Lambda Function

```sh
lambda --remove
```

#### Zip Lambda Function for Deployment

```sh
lambda --zip
```

## Configuration

### AWS Region Selection

You will be prompted to choose from the following AWS regions:

- us-east-1
- us-east-2
- us-west-1
- us-west-2
- eu-central-1
- eu-west-1
- eu-west-2
- eu-west-3
- ap-southeast-1
- ap-southeast-2
- ap-northeast-1
- ap-northeast-2
- ap-south-1
- sa-east-1

### IAM Role Management

Gen Lambda allows you to create a new IAM Role if necessary.

## Development

To contribute or modify the project, use the following setup:

```sh
git clone https://github.com/your-repo/gen_lambda.git
cd gen_lambda
poetry install
```

Run the CLI locally:

```sh
lambda --generate
```

## License

MIT License. See `LICENSE` for details.

## Author

Mikhail Dorokhovich