semvec/pypi-packages huggingface dataset:
depends_python 0.0.1
Dependency injection for python functions
Requires Python: >=3.11

# python_depends

**python_depends** is a dependency injection library inspired by the `Depends` mechanism from FastAPI. It supports both asynchronous and synchronous functions, providing flexibility and ease of use.

## Installation

```bash
pip install depends_python
```

## Key Features

- Support for synchronous and asynchronous functions.
- Simple dependency annotation using the `@inject_dependencies` decorator.
- Support for nested dependencies.
- Ability to mix synchronous and asynchronous dependencies.

## Usage Examples

### Asynchronous Functions

```python
from python_depends import Depends, inject_dependencies
import asyncio

async def injected():
    return 1

@inject_dependencies
async def inject_value(value: int = Depends(injected)):
    print(value)

if __name__ == '__main__':
    asyncio.run(inject_value())
```

### Basic Example

```python
from python_depends import Depends, inject_dependencies

# Function to inject
def get_value():
    return 1

@inject_dependencies  # inject dependencies
def test_injection(value: int = Depends(get_value)):
    print(value)

if __name__ == '__main__':
    test_injection()
```

### Multiple Dependencies

```python
from python_depends import inject_dependencies, Depends

def injected1():
    return 1

def injected2():
    return 3

@inject_dependencies
def inject_value(value1: int = Depends(injected2), value2: int = Depends(injected1)):
    print(value1 + value2)

if __name__ == "__main__":
    inject_value()
```

### Nested Dependencies

```python
from python_depends import Depends, inject_dependencies

def injected1():
    return 1

@inject_dependencies
def injected2(value: int = Depends(injected1)):
    new_value = 3
    return new_value + value

@inject_dependencies
def inject_value(value: int = Depends(injected2)):
    print(value)

if __name__ == '__main__':
    inject_value()
```

### Mixing Synchronous and Asynchronous Dependencies

```python
from python_depends import Depends, inject_dependencies

async def injected():
    return 1

@inject_dependencies
def inject_value(value: int = Depends(injected)):
    print(value)

if __name__ == '__main__':
    inject_value()
```

## License

MIT License.

---

The **python_depends** library is designed to simplify the dependency injection process and make code cleaner and easier to test.

The name of package is **depends_python** because **python_depends** is already in use
skg-connector 0.1.16
Module to extract and store data into an SKG
Requires Python: <4.0,>=3.10

# System Knowledge Graphs (SKGs) to Automata 

## Description

Module developed within the [Auto-Twin](https://www.auto-twin-project.eu/) Horizon EU project 
to extract data from Neo4j SKGs for automata learning purposes and to store
learned automata into the SKG.

## Requirements

Follow instructions for the [promg-core](https://github.com/Ava-S/promg-core) project to create the SKG.

## Configuration

The default configuration file is available in the [`./resources/config/`](skg_main/resources/config) folder.

The module currently assumes the Neo4j instance to be running on [localhost:7687](http://localhost:7687): 
if this is not the case, update the [`config.ini`](skg_main/resources/config/config.ini) file accordingly.

## How to use

Available queries are implemented as methods of the [`Skg_Reader`](skg_main/skg_mgrs/skg_reader.py) class:

- *get_events()*: Returns all Event nodes.
- *get_events_by_date(start_t, end_t)*: Return Event nodes filtered by timestamp. If both start_t and end_t are given, it returns events such that the timestamp is within range [start_t, end_t]. If only one parameter is specified, it returns events such that the timestamp is greater than start_t or smaller than end_t. If no parameter is specified, it returns all events.
- *get_entities()*: Returns all Entity nodes.
- *get_sensors()*: Returns all Class nodes.
smdpy 1.0.1
It is download videos and audios from social media. That is why it is called smdpy
Requires Python: >=3.6

# SMDP - Social Media Downloader (PyPI Package)

**SMDP** is a Python package that simplifies downloading videos from **YouTube** and **Instagram**. It provides a lightweight, developer-friendly API for fetching videos at various resolutions on YouTube and quickly grabbing Reels or standard videos on Instagram.

## Installation

Install **SMDP** using `pip`:

```bash
pip install smdp
```