semvec/pypi-packages huggingface dataset:
PANOU-CONVEX 0.1.0
Creates convex hulls of 2-d arrays
License: MIT

# PANOU
# the convex_hull is calculated using the graham algorithm
# When trying to find out wehther a 2-d point is into the convex _hull inserted (using the function point_is_in_polygon of convex_hull_graham method), if the point lies 
# in the boundaries of the polygon, it returns False as if the point is NOT into the polygon. Also the function does not check whether the points provided as a 2-d array 
#for the convex -hull polygon, actually do form a convex hull polygon.
# When using the function do_interesect of the convex_hull_graham method to check out whether two convex _hull polygons intersect, it does not check whether the two 2-d arrays
# forming a convex - hull polygon each, actuall do form a convex _hull polygon. Moreoverm if the first convex _hull _polygon lies completely into the other one, the function
#returns TRUE, as if those two polygons do intersect
pyapibp 0.1.1
Python boilerplate code generator to easily start building API's
License: MIT
Keywords: python flask fastapi django api boilerplate code blueprint generator

<div align="center">

<img src="https://github.com/markmelnic/pyapibp/blob/main/res/logo.png" alt="PYAPIBP Logo" width="400"/>

# `pyapibp` - Python boilerplate code generator to easily start building API\'s

![PyPI Version](https://img.shields.io/pypi/pyversions/dash.svg)
![PyPI Version](https://img.shields.io/pypi/v/pyapibp.svg)
![License](https://img.shields.io/pypi/l/pyapibp.svg)

</div>

This python script generates a folder structure along all default files for an API framework in the current directory, optionally creating a new one.

Currently supported frameworks:

- Flask
- FastAPI

Work in progress:

- Django

## Short backstory

When getting started on building an API, I found myself looking up an older project, copying the folder structure along the files and their contents. Then, remembering what environment variables I should include in the .env and their defaults for a local project. All in all, it was repetitive and annoying. Then let's be honest, why spend 5 minutes doing a repetitive task every now and then if you can spend 3 hours trying to automate it. Anyway, I hope you find this tool useful, and if you did, leave a star just so I know you found this tool useful.

## Installation

Installation is done using pip using the following command:

    pip install pyapibp

## Usage

In the desired folder, run the following command:

    $ pyapibp

That's about it, follow the instructions, choose your options and tada, you are ready to code!

I will write a more detailed description of the options after adding more frameworks, flags *etc... etc...*, but for now, enjoy.


# History

## 0.1.0 (2021-09-10)

* First release on Github.

## 0.1.1 (2021-09-15)

* FastAPI support added. You can now generate boilerplate code for your FastAPI project.
asyncio-context 0.0.1
Asyncio task context with logging support
License: MIT
Requires Python: >=3.8
Keywords: asyncio,aiohttp,context,trace,annotations

# asyncio-context

Tool for store data within asyncio task (for example, in all coroutines across handling aiohttp request) and enrich logging record with this data.  
Small, nice-looking and with annotations. 

Install
==========================
pip install asyncio-context

Example
==========================
It can be used for logging trace id and other info about request:
```python
...
    'formatters': {
        'standard': {
            'format': '[trace_id:%(trace_id)s] [user_id:%(user_id)s]:%(message)s'
        },
    },
    'filters': {
        'context2record': {
            '()': 'asyncio_context.logging.Context2Record',
            'ctx_name': 'ViewsCtx'
        },
    },
...
```
```python
from asyncio_context import Context

class ViewsCtx(Context):
    user_id: str = 'UNKNOWN'
    trace_id: str = 'NO_TRACE'
    
ctx = ViewsCtx()
log = logging.getLogger()

class MyView(web.View):
    async def get(self):
        
        ctx.trace_id = self.request.headers.get('X-Trace-Id', str(uuid.uuid4()))
        # or
        ViewsCtx().user_id = self.request.match_info.get('user_id')
        
        log.info('Test request')
        # GET http://localhost:8080/user/123
        # [trace_id:ea38e89d-fba1-40a3-899e-297c6cd76732] [user_id:123]:Test request
```

Context can be copied to another asyncio task:
```python
task = asyncio.get_running_loop().create_task(another_task())
ViewsCtx.copy_to_task(task)
```
sslinfo 0.0.2
Print the certificate information for a remote SSL/TLS enabled service
License: MIT

# sslinfo

sslinfo is a small uility (developed in Python) to print the SSL certificate info for a remote service

Expected to work on Windows, Linux and Mac .

## Motivation

Needed a quick way to verify remote TLS certificates


## Requirements
- Python3

## How to install
```sh
pip instal sslinfo
```

## How to use
```sh
sslinfo www.sapo.pt
```