semvec/pypi-packages huggingface dataset:
unsplash-rand-downloader 1.0.0
Python Unsplash random image downloader manager.
License: MIT
Keywords: unsplash,random,image

# UnsplashRandDownloader

Python Unsplash Random Image Downloader.

This component periodically download and store random images based of specified topics from Unsplash platform and allows the user to request one of the downloaded images. It keeps control of the Unsplash API requests limits, and using some kind of "image files rotate" of the storage (removing and replacing older images with newer ones), it also control and limit the maximum number of images downloaded in the filesytem.

## Installation

From Pypi:

```bash
python3 -m pip install unsplash_rand_downloader
```

From Sources:

```bash
git clone https://www.github.com/J-Rios/unsplash_rand_downloader
cd unsplash_rand_downloader
python3 -m pip install .
```

## Usage

```py

# Import the module
from unsplash_rand_downloader import UnsplashRandDownloader

# Set your Unsplash API access account identification parameters
# (Application Name, Client ID and Client Secret Key)
APP_NAME = "XXXXXXXXXXXXXXX"
CLIENT_ID = "XXXXXXXXXXX_XXXXX-XX-XXXXXXXXXXXXXXXXXXXXXX"
CLIENT_SECRET = "XXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

# Unsplash API mode to use (API_DEMO or API_PRODUCTION)
API_MODE = UnsplashRandDownloader.API_DEMO

# Limit the number of images to be downloaded (None, to use the maximum
# calculated number from Unsplash API request limits DEMO/PRODUCTION)
LIMIT_MAX_NUM_IMG = None

# Path of directory to store the downloaded images
IMAGES_DOWNLOAD_DIR = "./images"

# Size of images to download
IMG_WIDTH = 320
IMG_HEIGHT = 240

# Topics of images to download
TOPICS = ["bird", "halloween", "fire", "computer"]

# Setup the Downloader
unsplash = UnsplashRandDownloader(APP_NAME, CLIENT_ID, CLIENT_SECRET, API_MODE)
unsplash.setup(IMAGES_DOWNLOAD_DIR, TOPICS, IMG_WIDTH, IMG_HEIGHT,
               LIMIT_MAX_NUM_IMG)

# Launch the Downloader
unsplash.start()

# Wait some time to allow UnsplashRandDownloader download some images
# ...

# Request a random image from downloaded images
img = unsplash.get_random_image()
if img is not None:
    print("Image Topic: {}".format(img["topic"]))
    print("Image ID: {}".format(img["id"]))
    print("Image Attribution: {}".format(img["attribution"]))
    #print("Image Raw: {}".format(img["image"]))

# To exit your application, remember to stop the downloader before
unsplash.stop()
```
sqlalchemy-orm 1.2.10
Data Relation Mapping framework for Python.
License: MIT
Keywords: SQLAlchemy,ORM

# SQLAlchemy-ORM
ORM framework for Python. Designed for simplicity, based on [SQLAlchemy](https://www.sqlalchemy.org/).

[![coverage report](https://gitlab.com/parob/sqlalchemy-orm/badges/master/coverage.svg)](https://gitlab.com/parob/sqlalchemy-orm/commits/master)

[![pipeline status](https://gitlab.com/parob/sqlalchemy-orm/badges/master/pipeline.svg)](https://gitlab.com/parob/sqlalchemy-orm/commits/master)


Check out the tests directory for more examples.

## Basic Example
``` python
from sqlalachemy_orm import Model, Database

Base = Model()

class Animal(Base):
    name: str
    age: int

db = Database("sqlite:///:memory:") # use an in-memory SQLite database
db.create(Animal)  # Create the `Animal` table in the database

bea = Animal(name="bea", age=5)

session = db.session()
session.create(bea) # Create a row in the `Animal` table

print(session.query(Animal).filter(Animal.name == "bea").one())

session.commit() # commit the session to the database
```

``` text
$ python example.py
>>> Animal(name='bea', age=5)
```
sarf 1.0.0rc2
SARF CLI. A security assesment tool that serves as a glue between security tools. SARF also let you write vulnerabilities using vulnerability templates and store them inside reports of a project. SARF is prepared to be extended with in your own environment to satisfy your needs.
License: MIT

# SARF CLI

## Add the output of a tool to SARF

The output of any console tool can be redirected to sarf. It doesn't matter if
these are in plain text or binary.
In order for sarf to prepare to receive the output of a tool, the `--ingest`
flag must be added to it.

`nmap 192.168.1.0/24 | sarf --ingest --tags nmap,network:192.168.1.0 --report lbk`

`--tags` flag is optional. It adds tags to the received data that can be
    very useful to interconnect with other tools.

The received data must be associated with a report.
The chosen report will be obtained from the environment variable SARF_REPORT.
The chosen report can also be provided explicitly with the `--report` flag.

> This is all for now. SARF is at a very early stage of its development.
  Give it a star on [github](https://github.com/elchicodepython/SARF-Security-Assesment-and-Reporting-Framework) to find out all its progress.
pyMAdot2 0.0.3
Python library for MA Lighting dot2 console
License: MIT
Requires Python: >=3.9

# pyMAdot2

<img src="https://xom.malighting.com/xom-rest/assets/da4da7d0-4cfe-40da-9023-4fa866e38f25/preview?access_token=A9OYsVma9vxvXaaqzsVFtsR6K14&mimeType=image%2Fpng&width=1170&height=700" width=20% height=20%>

Asynchronous library to control [MA Lighting dot2](https://www.malighting.com/de/produktarchiv/produkt/dot2-core-120211/) light console.

**This library is under development**

## Requirements

- Python >= 3.10
- aiohttp

## Install
```bash
pip install pyMAdot2
```

## Example

```python
from pymadot2 import Dot2

import asyncio
import aiohttp

async def main():
    async with aiohttp.ClientSession() as session:
        await run(session)

async def run(session):
    console = await Dot2.create(
        session,
        "127.0.0.1",
        "test"
    )

    await console.command("Fixture 1")
    await console.command("At 100")
    await asyncio.sleep(1)
    await console.disconnect()

asyncio.run(main())
```