semvec/pypi-packages huggingface dataset:
pyshapearea 0.0.1
Module for calculating the area of shapes
Requires Python: >=3.6

# PyShapeArea

The module needs for calculating area of geometrical shapes

## Using

First, import library:

```python
import pyshapearea
```

Than you can use all functions of the library like this:

Calculating circle area - `print(circle(1))`  
Calculating triangle area - `print(triangle(3,4,5))`  
Checking, if a triangle is right triangle - `print(right_triangle(3,4,5))`


## Developer ##
My [github](https://github.com/V1sl3t)
bindme 0.3.0
Simple DI Framework for Python 3.x 🐍
Requires Python: >=3.6

<h1 align="center">BindMe</h1>

<p align="center">
  <img src="assets/technologies/bindme-logo.png" alt="BindMe Logo" height="300">
</p>

<p align="center">
  <strong>Simple DI Framework for Python 3.x 🐍</strong>
</p>

<hr>

<h1 align="center">Usage</h1>

<p align="center">
  <strong>Installation Instructions:</strong>
</p>

<p align="center">
  To install the package, run:
</p>

<p align="center">
  <code>pip install bindme</code>
</p>

<hr>

<h1 align="center">Features</h1>

<p align="center">
  <strong>Interesting Highlights:</strong>
</p>

<ul align="center">
  <p><strong>Simple 📕</strong> - everything you need is here!</p>
  <p><strong>Fast ⚡</strong> - awesome work speed!</p>
  <p><strong>Low 🍃</strong> - weighs nothing at all!</p>
</ul>

<p align="center">
  <img src="assets/common/di_meme_1.png" alt="DI meme 1 Logo" height="250">
</p>

<hr>

<h1 align="center">Use Cases</h1>

<p align="center">
  <strong>Examples:</strong>
</p>

<h3 align="center"> project structure </h3>
<p align="center">
   <img src="assets/technologies/example_structure.png" height="160">
</p>

```python
# create interface

from abc import ABC, abstractmethod
from typing import Any, NoReturn


class ItemServiceInterface:
    @abstractmethod
    def create_one(self, dto: dict[str, Any]) -> NoReturn:
        raise NotImplementedError("<create one> method is not implemented!")

    @abstractmethod
    def get_one(self, dto: dict[str, Any]) -> NoReturn:
        raise NotImplementedError("<get one> method is not implemented!")


# create implement

from src.interfaces import ItemServiceInterface


class ItemServiceImplement(ItemServiceInterface):
    def create_one(self, dto: dict[str, Any]) -> None:
        print(f"Item with {dto} is created!")

    def get_one(self, dto: dict[str, Any]) -> None:
        print(f"Item with {dto} is get!")


# configure bindme


from bindme import container

from src.interfaces.item import ItemServiceInterface
from src.implements.item import ItemServiceImplement

container.register(abstract_class=ItemServiceInterface, concrete_class=ItemServiceImplement)

# use container directly from code

from bindme import container

from src.implements.item import ItemServiceInterface


def get_item_service():
    item_service = container.resolve(abstract_class=ItemServiceInterface)
    item_service.create_one({"name": "Bob"})
    # item_service.get_one({"name": "Bob"})


get_item_service()

# use @injection decorator

from bindme import inject

from src.implements.item import ItemServiceInterface


@inject
def get_item_service(item_service: ItemServiceInterface):
    item_service.create_one(dto={"name": "Bob"})
    # item_service.get_one(dto={"name": "Bob"})


get_item_service(item_service=ItemServiceImplement)



```