semvec/pypi-packages huggingface dataset:
unified-database 0.0.6
A python package for connecting with database.
License: MIT
Requires Python: >=3.7

# requirements_dev.txt we use for the testing
It makes it easier to install and manage dependencies for development and testing, separate from the dependencies required for production.

# difference between requirements_dev.txt and requirements.txt

requirements.txt is used to specify the dependencies required to run the production code of a Python project, while requirements_dev.txt is used to specify the dependencies required for development and testing purposes.

# tox.ini
We use if for the testing in the python package testing against different version of the python 

## how tox works tox enviornment creation
1. Install depedencies and packages 
2. Run commands
3. Its a combination of the (virtualenvwrapper and makefile)
4. It creates a .tox


# pyproject.toml
it is being used for configuration the python project it is a alternative of the setup.cfg file. its containts configuration related to the build system
such as the build tool used package name version author license and dependencies

# setup.cfg
In summary, setup.cfg is used by setuptools to configure the packaging and installation of a Python projec

# Testing python application
*types of testing*
1. Automated testing 
2. Manual testing

*Mode of testing*
1. Unit testing
2. Integration tests

*Testing frameworks*

1. pytest
2. unittest
3. robotframework
4. selenium
5. behave
6. doctest

# check with the code style formatting and syntax(coding standard)

1. pylint
2. flake8(it is best because it containt 3 library pylint pycodestyle mccabe)
3. pycodestyle
draws 1.0.0a3
Lightweight AWS Diagram Automation
License: MIT

# draws: lightweight AWS Diagram Automation

[**draws**](https://pypi.org/project/draws/) is a dependency-free tool for automating AWS architecture diagram creation.

<img alt="Example AWS architecture diagram generated by draws from AppSync GraphQL DynamoDB template" src="https://raw.githubusercontent.com/jessicalynch/draws/787f82a2424c02c9098cfb14213b7d6c9b7ee839/examples/output/app-sync-graphql-dynamodb.diagram.svg" />

<img alt="Example AWS architecture diagram generated by draws from S3 trigger template" src="https://raw.githubusercontent.com/jessicalynch/draws/787f82a2424c02c9098cfb14213b7d6c9b7ee839/examples/output/s3-trigger.diagram.svg" />

<img alt="Example AWS architecture diagram generated by draws from serverless backend stack template" src="https://raw.githubusercontent.com/jessicalynch/draws/787f82a2424c02c9098cfb14213b7d6c9b7ee839/examples/output/serverless-backend.diagram.svg" />

## Install

```bash
pip install draws
```

## Example Usage (from cdk app)

Add `Diagrams.of(app)` before `app.synth()`.

_app.py:_

```python
from aws_cdk import App

from draws import Diagrams
from infra.api_to_s3_stack import ApiToS3Stack
from infra.s3_bucket_stack import S3BucketStack

app = App()

bucket_stack = S3BucketStack(app, f"draws-dev-bucket", public_prefix="public")
docs_ui_stack = ApiToS3Stack(app, f"draws-dev-docs-ui", bucket=bucket_stack.bucket)

# Pass the cdk app into Diagrams.of() (directory defaults to app.py location)
Diagrams.of(app, directory="examples/output")

app.synth()
```

Run `cdk ls` to generate diagrams for each stack.

_output:_

```bash
$ cdk ls
Diagram saved to: examples/output/draws-dev-bucket.diagram.svg
Diagram saved to: examples/output/draws-dev-docs-ui.diagram.svg
```

## Example Usage (from template)

```python
import os
from pathlib import Path

from draws import Diagram


if __name__ == "__main__":
    curr_dir = Path(os.path.abspath(os.path.dirname(__file__)))
    templates_dir = curr_dir / "cdk.out"

    D = Diagram.from_template(
        filename=templates_dir / "my-stack.template.json",
        title="My AWS Stack",
    )

    D.to_svg()
```

## Example Usage (manual)

```python
import os
from pathlib import Path

from draws import Diagram, Elem


if __name__ == "__main__":
    with Diagram(title="My AWS Stack") as D:
        rest_api = Elem("AWS::ApiGateway::RestApi", "Rest API")
        lambda_func = Elem("AWS::Lambda::Function", "Lambda")
        bucket = Elem("AWS::S3::Bucket", "Bucket")

        rest_api >> lambda_func
        rest_api << lambda_func
        lambda_func >> bucket

        D.to_svg()
```

<p align="center">
    <img src="https://raw.githubusercontent.com/jessicalynch/draws/787f82a2424c02c9098cfb14213b7d6c9b7ee839/examples/output/manual.svg" width="300" />
</p>