semvec/pypi-packages huggingface dataset:
media-hoard-cli 0.2.2
Top-level package for Media Hoard CLI.
License: MIT
Requires Python: >=3.8,<4.0


Media Hoard CLI

* Free software: MIT License

Features
--------

* TODO


Credits
-------

This package was created with Cookiecutter_ and the `midwatch/cc-py3-pkg`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`midwatch/cc-py3-pkg`: https://github.com/midwatch/cc-py3-pkg
DetaCache 0.0.6
Decorator to cache in Deta base
License: MIT
Requires Python: >=3.6
Keywords: deta,cache,deta base cache,cache api call,cache functions

# [DetaCache](https://github.com/vidyasagar1432/DetaCache)

#### Async and Sync Function Decorator to cache function call's to Deta base.

## Installing

```bash
pip3 install DetaCache
```

## Async and Sync Decorator to cache function
```python
import asyncio
import aiohttp
import requests

from DetaCache import detaCache

app = detaCache('projectKey')

@app.cacheAsyncFunction()
async def asyncgetjSON(url:str):
    async with aiohttp.ClientSession() as session:
        async with session.get(url) as response:
            return await response.json()

@app.cacheSyncFunction()
def syncgetjSON(url:str):
    return requests.get(url).json()

@app.cache()
async def _asyncgetjSON(url:str):
    async with aiohttp.ClientSession() as session:
        async with session.get(url) as response:
            return await response.json()

@app.cache()
def _syncgetjSON(url:str):
    return requests.get(url).json()

async def main():
    asyncdata = await asyncgetjSON('https://httpbin.org/json')
    print(asyncdata)
    syncdata = syncgetjSON('https://httpbin.org/json')
    print(syncdata)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```

## License

MIT License

Copyright (c) 2021 [Vidya Sagar](https://github.com/vidyasagar1432)
shape-detection-jdla 0.0.2
Shape detection using OpenCV
License: MIT
Requires Python: >=3.10


# Color Thief

A module for detecting shapes using OpenCV.

Installation

```bash
pip install shape-detection-jdla
```

# Overview

Square detection rules:

- There must be four corners
- All four lines must be the same length
- All four corners must be 90°
- Lines AB and CD must be horizontal lines
- Lines AC and BC must be vertical lines
- The contour must be concave

# Example


```python
from shape_detection.square import Square
import numpy as np

try:
    contour = np.array([[[368, 160]], [[391, 163]],
                        [[384, 200]], [[361, 194]]])

    square = Square.is_square(contour)

    print(square)

except Exception as e:
    print(e)
```

# Links
* [github](https://github.com/JosueDLA/ShapeDetection)