semvec/pypi-packages huggingface dataset:
PyThreadkiller 0.1.1
A utility to manage and kill threads in Python applications
Requires Python: >=3.8

# PyThreadkiller
A utility to manage and kill threads in Python applications.
* ***[README.md](..%2F..%2F..%2F..%2FDownloads%2FPrivateLogic-main%2FPythonLogic%2FPyThreadKiller%2FREADME.md)
[![GitHub Repo](https://img.shields.io/badge/GitHub-Repository-181717?style=for-the-badge&logo=github)](https://github.com/kumarmuthu)
![GitHub License](https://img.shields.io/github/license/kumarmuthu/kumarmuthu?style=for-the-badge)
![GitHub Forks](https://img.shields.io/github/forks/kumarmuthu/kumarmuthu?style=for-the-badge)
![GitHub Stars](https://img.shields.io/github/stars/kumarmuthu/kumarmuthu?style=for-the-badge)
![GitHub Contributors](https://img.shields.io/github/contributors/kumarmuthu/kumarmuthu?style=for-the-badge)


[![Build Status](https://travis-ci.org/kumarmuthu/PyThreadkiller.svg?branch=master)](https://travis-ci.org/kumarmuthu/PyThreadkiller)
[![Coverage Status](https://coveralls.io/repos/github/kumarmuthu/PrivateLogic/tree/main/PythonLogic/PyThreadKiller/badge.svg?branch=master)](https://coveralls.io/github/kumarmuthu/PrivateLogic/tree/main/PythonLogic/PyThreadKiller?branch=master)
[![PyPI version](https://badge.fury.io/py/PyThreadkiller.svg)](https://badge.fury.io/py/PyThreadkiller)


![GitHub Image](https://avatars.githubusercontent.com/u/53684606?v=4&s=40)

* **

## Overview

`PyThreadkiller` is a utility designed to manage and kill threads in Python applications. This package provides a simple and effective way to terminate threads safely and retrieve return values from target functions.

## Directory Structure
```
PyThreadKiller/
    ├── PyThreadKiller/
    │   ├── __init__.py
    │   ├── main.py
    ├── tests/
    │   ├── TestPyThreadKiller.py
    ├── CHANGELOG.md
    ├── README.md
    ├── requirements.txt
    └── setup.py
```

## Installation

You can install the package using pip:

```sh
pip install PyThreadkiller
```

# Usage
* Here is an example of how to use PyThreadkiller:
```
import time
from PyThreadKiller import PyThreadKiller

def example_target():
    for i in range(5):
        print(f"Thread is running... {i}")
        time.sleep(1)
    return 5

# Create an instance of PyThreadKiller
thread = PyThreadKiller(target=example_target)
thread.start()

# Allow the thread to run for 3 seconds
time.sleep(3)

# Kill the thread
result = thread.kill()
print(f"Return value after killing the thread: {result}")

# Output:
# Thread is running... 0
# Thread is running... 1
# Thread is running... 2
# Thread killed successfully
# Return value after killing the thread: None
```

### License:
* This project is licensed under the MIT License - see the LICENSE file for details.

* This updated `README.md` includes the new project name, badges, a brief overview, the directory structure, installation instructions, usage example, changelog, and the main code for the `PyThreadKiller` class. Make sure to adjust any URLs and links to point to the correct resources for your project.



# Changelog

## [0.1] - 2024-05-19

### Added
- Initial draft of `PyThreadkiller` with basic thread management and killing functionality.
sgchemist 0.0.6
An ORM for Autodesk Shotgrid
Requires Python: >=3.7
Keywords: Shotgrid, Shotgun, Slow Production Tracker, ORM

# sgchemist

[![Tests](https://github.com/PoloB/sgchemist/actions/workflows/test.yml/badge.svg)](https://github.com/PoloB/sgchemist/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/PoloB/sgchemist/graph/badge.svg?token=KNWN8UT6OK)](https://codecov.io/gh/PoloB/sgchemist)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](https://mypy-lang.org/)

An Object Relation Mapper for Autodesk Flow Production Tracker (previously Shotgrid and Shotgun) inspired by SQLAlchemy.


## Declaring entities

You can declare all the entities and fields using a dataclass like structure:

```python
from __future__ import annotations

from sgchemist.orm import SgBaseEntity
from sgchemist.orm import TextField
from sgchemist.orm import EntityField
from sgchemist.orm import MultiEntityField


class SgEntity(SgBaseEntity):
    """Base class for all the entities."""

    
class Project(SgEntity):
    __sg_type__ = "Project"

    name: TextField = TextField(name="code")
    title: TextField
    assets: MultiEntityField[Asset]


class Asset(SgEntity):
    __sg_type__ = "Asset"

    name: TextField = TextField(name="code")
    description: TextField
    project: EntityField[Project]

```

## Query building

To make a query using sgchemist, you need to use two elements:
* an engine: responsible for communicating with your Shotgrid instance.
`sgchemist` provides an engine implementation using the `shotgun-api3`.
* and a session: responsible for converting raw data from the engine back to objects.
In case of creation and update querying it also implements the unit of work pattern.

```python

from shotgun_api3 import Shotgun
from sgchemist.orm import ShotgunAPIEngine
from sgchemist.orm import select
from sgchemist.orm import Session

from myentities import Asset, Project

# Create the engine
shotgun = Shotgun("https://mysite.shotgunstudio.com", script_name="xyz", api_key="abc")
engine = ShotgunAPIEngine(shotgun)

# Create the session
session = Session(engine)

# Create the query
query = select(Asset).where(Asset.project.f(Project.name).eq("myproject"))

# Perform the query using the session
assets = list(session.exec(query))

# Update the description of the assets
with session:
    for asset in assets:
        asset.description = "This is an awesome asset"
        session.add(asset)
# Assets are now updated
```
sphinx-argparse 0.5.2
A sphinx extension that automatically documents argparse commands and options
Requires Python: >=3.10

=================
 sphinx-argparse
=================

.. image:: https://img.shields.io/pypi/v/sphinx-argparse.svg
   :target: https://pypi.org/project/sphinx-argparse/
   :alt: PyPI version

.. image:: https://img.shields.io/conda/vn/conda-forge/sphinx-argparse.svg
   :target: https://github.com/conda-forge/sphinx-argparse-feedstock/
   :alt: Conda version

.. image:: https://github.com/sphinx-doc/sphinx/actions/workflows/main.yml/badge.svg
   :target: https://github.com/sphinx-doc/sphinx/actions/workflows/main.yml
   :alt: Build Status

.. image:: https://readthedocs.org/projects/sphinx-argparse/badge/?version=stable
   :target: https://sphinx-argparse.readthedocs.org/
   :alt: Documentation Status

.. image:: https://img.shields.io/badge/License-MIT-blue.svg
   :target: https://opensource.org/licenses/MIT
   :alt: MIT

A Sphinx extension to automatically document argparse_ commands and options.

For installation and usage details see the documentation_.
The changelog is also `found there`_.

.. _argparse: https://docs.python.org/3/library/argparse.html
.. _documentation: https://sphinx-argparse.readthedocs.org/
.. _found there: https://sphinx-argparse.readthedocs.org/en/latest/changelog.html

.. note::
   This project used to live at `alex-rudakov/sphinx-argparse`_,
   and has been revived and moved to this `new home`_.

   .. _alex-rudakov/sphinx-argparse: https://github.com/alex-rudakov/sphinx-argparse/
   .. _new home: https://github.com/sphinx-doc/sphinx-argparse/
nrdrch-ezdl 1.2.1
yt-dlp wrapper for ultimate simplicity
Requires Python: >=3.9

# ezdl
### just another yt-dlp wrapper for even more simplicity with rich styling and loading animations.

![](https://i.imgur.com/HHTUNv5.png)

### Dependencies
[Python](https://www.python.org/downloads/)

<details>
<summary> 
more deps</summary> 

- pip dependencies (these will be installed automatically)
```python
toml, rich, yt-dlp
```
- install or upgrade the dependencies seperate from ezdl
```python
pip install --upgarde toml rich yt-dlp
```


</details>

## Installation

You can install ezdl using pip:

```pwsh
pip install --upgrade nrdrch-ezdl
```

## usage examples:
- Help pages:
```pwsh
ezdl --help or -h
```
- Display a Helpful Table für Configuration

```pwsh
ezdl --help-settings or -hs
```
- Download a Youtube video (this will Ignore the rest of the playlist by default)
```pwsh
ezdl video https://youtu.be/dQw4w9WgXcQ
```
- just the audio
```pwsh
ezdl audio https://youtu.be/dQw4w9WgXcQ
```
- Download the whole playlist if the link leads to a playlist
```pwsh
ezdl video https://youtu.be/dQw4w9WgXcQ?list=PLE0hg-LdSfycrpTtMImPSqFLle4yYNzWD wp
```
- just the audio but the whole playlist
```pwsh
ezdl audio https://youtu.be/dQw4w9WgXcQ?list=PLE0hg-LdSfycrpTtMImPSqFLle4yYNzWD wp
```
- open locations by their name (settings, audio or video)
```pwsh
ezdl open settings
```